Created attachment 2518 [details] Network trace Dear Sirs, I have an issue with claws V4.1.1. Claws is linked to an IMAP & SMTP server (dovecot + postfix) ; I can parse IMAP folders content wihtout any issue an send mail through SMTP as needed by the mail sent is not copied to a folder as expected (for example SENT) before being expunged. The attached network trace shows this behavior just after the mail has been sent by SMTP: * Message envoyé avec succès. [2024-11-02 15:59:05] SMTP> QUIT [2024-11-02 15:59:05] SMTP< 221 2.0.0 Bye [2024-11-02 15:59:05] IMAP> 679 UID STORE 29 +FLAGS.SILENT (\Deleted) [2024-11-02 15:59:05] IMAP< 679 OK Store completed (0.002 + 0.000 + 0.001 secs). [2024-11-02 15:59:05] IMAP> 680 EXPUNGE [2024-11-02 15:59:05] IMAP< * 1 EXPUNGE [2024-11-02 15:59:05] IMAP< * 0 RECENT [2024-11-02 15:59:05] IMAP< 680 OK Expunge completed (0.002 + 0.000 + 0.001 secs). I have tried saving in various folders using advanced tab in account preferences without much success.
Preferences --> Mail Handling --> Sending --> Save sent messages. My messages are being saved in IMAP folders (Sent).
Dear All, I have finally found the issue leading to sent messages being deleted before being copied to specified IMAP folder. The problem seems to be related naming of the account : spaces and / have been introduced in the name field (for example Me@MyOwnSever / mailserver2.localdomain) and this seems to preclude the execution of 'Saving sent messages' to the specified IMAP folder (for example #imap/Me@MyOwnSever / mailserver2.localdomain/Sent). Renaming the account name (for example Me@MyOwnSever_mailserver2.localdomain) solve the issue. To reproduce: 1. Create an account with name Me@MyOwnSever / mailserver2.localdomain and set the general parameters for connection to the IMAP and SMTP servers. 2. In advanced tab, specify the location of the folders to save sent messages by using the button on the left of the text box 3. Check that 'Preferences --> Mail Handling --> Sending --> Save sent messages' is checked (it should be the case by default) 4. Send a test message 5. Check the network traces ; after the indication that message have been successfully sent, the IMAP commands sent by claws to the server after quitting SMTP sequence is only EXPUNGE while the expected sequence should be COPY (for example IMAP> 133 UID COPY 31 "Sent") followed by EXPUNGE (for example IMAP> 134 UID STORE 31 +FLAGS.SILENT (\Deleted) and IMAP> 135 EXPUNGE) The documentation does not seem to specify exclusion of special character ; maybe this could be included.
There has been a change in the Claws Mail code since the last release which is related to your problem - messages that cannot be saved due to an unreachable save folder are not silently discarded. Instead the user is warned and given a chance to remedy the situation. However, we do need to disallow a / in an IMAP account name. This is because on Linux (of course) a forward slash is part of a file path, and the IMAP cache directory uses the account name as the directory name.
*** Bug 4839 has been marked as a duplicate of this bug. ***