On Tue, 9 Oct 2018 09:31:36 +0200 Gerald Galster <list+dovecot at gcore.biz> wrote:> most imap clients don't delete mails immediately, instead they are marked as deleted and expunged a few days or weeks later. > > From Sylpheed docs / Interface tab: https://sylpheed.sraoss.jp/doc/manual/en/sylpheed-8.html > > ? If Execute immediately when moving or deleting messages is not selected, a new button appears in the button bar marked Execute. When deleting or moving messages, they are first marked as deleted or moved but Sylpheed does not move or delete them until you press the Execute button (or the Execute entry of the Tools menu).This setting is enabled in my Slypheed and mails don't disappear. Even if I switch this off and try to manually execute the expunge operation, the mails still remain.> You could check if the filename of a deleted email has changed in your maildir.Perhaps I wasn't clear enough, Dovecot is using mbox files on my machine.> This is old and may have been fixed: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208139I don't think it's relevant, since with the very same Sylpheed an older Dovecot (1.x) could erase the unneeded mails. Perhaps some file permission issue on my server...? Regards, -- Selmeci Tam?s http://www.486.hu/
On 09/10/2018 10:54, tselmeci at 486.hu wrote:> I don't think it's relevant, since with the very same Sylpheed an > older Dovecot (1.x) could erase the unneeded mails. Perhaps some file > permission issue on my server...?Do you see anything in Dovecot logs? It should definitely log if there were permission issues. Good luck, Reio
On Tue, 9 Oct 2018 11:09:53 +0300 Reio Remma <reio at mrstuudio.ee> wrote:> Do you see anything in Dovecot logs? It should definitely log if there > were permission issues.With 'mail_debug=yes' I see nothing relevant. Just something like this when I want to expunge deleted mails: Oct 09 10:40:01 imap(tselmeci)<15816><ZwHSosd3NL/AqAFm>: Debug: Mailbox INBOX: Opened mail UID=25188 because: header stream Oct 09 10:40:01 imap(tselmeci)<15816><ZwHSosd3NL/AqAFm>: Debug: Mailbox INBOX: Opened mail UID=25189 because: header stream Oct 09 10:40:01 imap(tselmeci)<15816><ZwHSosd3NL/AqAFm>: Debug: Mailbox INBOX: Opened mail UID=25190 because: header stream Oct 09 10:40:01 imap(tselmeci)<15816><ZwHSosd3NL/AqAFm>: Debug: Mailbox INBOX: Opened mail UID=25191 because: header stream Oct 09 10:40:01 imap(tselmeci)<15816><ZwHSosd3NL/AqAFm>: Debug: Mailbox INBOX: Opened mail UID=25192 because: header stream Oct 09 10:40:01 imap(tselmeci)<15816><ZwHSosd3NL/AqAFm>: Debug: Mailbox INBOX: Opened mail UID=25147 because: full mail Oct 09 10:40:04 imap(tselmeci)<15816><ZwHSosd3NL/AqAFm>: Debug: Mailbox INBOX: Opened mail UID=25192 because: full mail Oct 09 10:40:18 imap(tselmeci)<15816><ZwHSosd3NL/AqAFm>: Debug: dovecot: Mailbox opened because: SELECT -- Selmeci Tam?s http://www.486.hu/
Martin Johannes Dauser
2018-Oct-09 09:18 UTC
cronjob hack to expunge deleted mails of USERNAME
Well, some dirty cronjob could periodically expunge all emails marked as DELETED from a specific user. You would need to exchange USERNAME with the real username in this little bash script. This should work, use at your own risk. (^.~) #!/bin/bash doveadm mailbox list?-u USERNAME | while read -r i? do doveadm expunge -u USERNAME mailbox $i DELETED done Finding the real issue would be best of course. Martin