Re: 2 Messages in Sent Folder After Sending Email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 17, 2008 at 4:47 PM, metamorph <brown2235a@xxxxxxx> wrote:
>
>
> metamorph wrote:
>>
>>
>>
>> Paul Lesniewski wrote:
>>>
>>> On Tue, Jun 17, 2008 at 6:46 AM, metamorph <brown2235a@xxxxxxx> wrote:
>>>>
>>>>
>>>>
>>>> Paul Lesniewski wrote:
>>>>>
>>>>>> I was wondering if someone could help me with an issue in my setup
>>>>>> that
>>>>>> places 2 copies of any sent email into the sent message folder (one
>>>>>> marked
>>>>>> as read and one marked as unread).
>>>>>>
>>>>>> My config:
>>>>>> $default_folder_prefix          = 'INBOX/';
>>>>>> $trash_folder                   = 'Trash';
>>>>>> $sent_folder                    = 'Sent Items';
>>>>>> $draft_folder                   = 'Drafts';
>>>>>> $default_move_to_trash          = true;
>>>>>> $default_move_to_sent           = true;
>>>>>> $default_save_as_draft          = true;
>>>>>> $show_prefix_option             = false;
>>>>>> $list_special_folders_first     = true;
>>>>>> $use_special_folder_color       = true;
>>>>>> $auto_expunge                   = true;
>>>>>> $default_sub_of_inbox           = true;
>>>>>> $show_contain_subfolders_option = false;
>>>>>> $default_unseen_notify          = 2;
>>>>>> $default_unseen_type            = 1;
>>>>>> $auto_create_special            = true;
>>>>>> $delete_folder                  = false;
>>>>>> $noselect_fix_enable            = false;
>>>>>>
>>>>>> setup:citadel/SM/Apache/PHP 5/Ubuntu
>>>>>> citadel and all users are set to restrict access to internet mail.
>>>>>
>>>>> Please always state the SM version.  Use 1.4.15 if possible.
>>>>>
>>>>>> Any suggestions or requests for additional info are greatly
>>>>>> appreciated-
>>>>>> SM
>>>>>> Rocks.
>>>>>
>>>>> Try to see if any sent messages are saved in the Sent folder if you
>>>>> turn off your sent folder in your folder prefs.  *Make sure* to
>>>>> disable all plugins (are you using "Sent Subfolders"?).  Otherwise,
>>>>> I'd try inserting some exit statements near the bottom of
>>>>> src/compose.php and seeing which parts of the code are adding multiple
>>>>> copies.  Might be a Citadel bug too.
>>>>
>>>> Per your advice I turned off the sent folder option in folder prefs and
>>>> now
>>>> there is only one saved message in the sent folder-seems to be fixed.
>>>> Could
>>>> you explain what was happening?
>>>>
>>>> Thanks for your help, you knew exactly what was going on--amazing!
>>>
>>> I don't know what is going on.  I am wondering if Citadel tries to
>>> outsmart the user by automatically saving sent messages for you when
>>> you use its SMTP server to send something.  You should check the
>>> SMTP/Sendmail server you are using to verify that this is or is not
>>> the case.  You can also see if it is a SquirrelMail problem by putting
>>> some output at the bottom of src/compose.php, near line 1654 you can
>>> put something like "echo 'COPYING TO SENT FOLDER'; exit;".  Also you
>>> did not follow up my informational requests: you have to state your SM
>>> version and please verify that you have disabled all plugins.
>>
>> SM 1.4.15, plugins disabled--sorry, I got a little click happy.
>> I will try to add  some output at the bottom of src/compose.php, near line
>> 1654 and as soon as I can I will post the results.
>>
>> Thanks for your patience.

We prefer in-line posting, not top, nor bottom posting.  Your posts
are OK except that you put them below all the junk that gets added at
the bottom of mailing list posts.  Please remove that stuff.  Thanks.

> Test #1
> I added echo 'COPYING TO SENT FOLDER'; exit; to line 1654 and reloaded SM.
> Previously, I had changed a line in the config file to $sent_folder  =' ';,
> so I left it for the first test.  Sent an email and the mail was delivered
> correctly with only one copy in the sent items folder.

Did anything show "COPYING TO SENT FOLDER" when you did?  If not, then
the message in the sent folder is likely being placed there by some
other part of the mail server and not SM.  This also presumes you
still have all plugins turned off.

> Test #2
> I left everything the same except for the config file which was changed to
> $sent_folder  ='Sent Items';
> The mail was delivered correctly except that two copies were placed in the
> sent items folder.

Did it show "COPYING TO SENT FOLDER" on the page after you clicked
send?  If not, you probably didn't put the code in correctly or in the
right place and you need to do both tests again.  Here is what the
very bottom of that file should look like (the placement this time
allows SM to save a copy in the sent folder before dying):

        if (($fld_sent && $svr_allow_sent && !$lcl_allow_sent) ||
($fld_sent && $lcl_allow_sent)) {
            require_once(SM_PATH . 'class/deliver/Deliver_IMAP.class.php');
            $imap_deliver = new Deliver_IMAP();
            $imap_deliver->mail($composeMessage, $imap_stream,
$reply_id, $reply_ent_id, $imap_stream, $sent_folder);
            unset ($imap_deliver);
echo 'COPYING TO SENT FOLDER'; exit;
        }
        $composeMessage->purgeAttachments();
        sqimap_logout($imap_stream);
    }
    return $succes;
}

> Did I do this right and complete everything you wanted?
> I changed the config file back to config file to $sent_folder  =' ';.
>
> Additional info:
> $default_folder_prefix          = 'INBOX/'; was kept constant in both tests
> When a draft is saved, it works correctly, ie only one copy is saved.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux