immediate delete of mails

Sami Ketola sami.ketola at dovecot.fi
Tue Oct 9 13:08:00 EEST 2018



> On 9 Oct 2018, at 11.19, Tamas Selmeci <tselmeci at 486.hu> wrote:
> 
> When I press DEL on a mail, the file /home/tselmeci/mail/Trash increases and the deleted mail is appended to it. But it doesn't disappear from /var/spool/mail/tselmeci. Once I expunge, /home/tselmeci/mail/Trash becomes empty but the original mail is still present in /var/spool/mail/tselmeci.
> 
> Maybe the SMTP server holds a write lock on the spool file thus preventing Dovecot from erasing the mail?

How do you deliver then mails to the server? 

also mbox is very unoptimised mailbox format for this. Each time mail is deleted from mbox mailbox the whole mbox while needs to be rewritten to remove the mail.

Sami




More information about the dovecot mailing list