immediate delete of mails

Steffen Kaiser skdovecot at inf.h-brs.de
Tue Oct 9 16:44:14 EEST 2018


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 9 Oct 2018, Selmeci Tamás wrote:

> On Tue, 9 Oct 2018 12:08:00 +0200 Sami Ketola <sami.ketola at dovecot.fi>
> wrote:
>
>> 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.
>
> OpenSMTPD and Dovecot run on the same machine. OpenSMTPD receives
> incoming mails and stores them in a mailbox (/var/spool/mail/user).
> Dovecot then fetches mails from this mailbox file.
>
> Mailbox file is indeed very unoptimal, but at this moment I'm more
> curious about the reason why I can't expunge mails... perhaps it'd
> simpler with maildir, where it just means a simple file deletion.

try out pure IMAP via telnet:

https://wiki2.dovecot.org/TestInstallation?highlight=(telnet)#Check_out_some_other_IMAP_commands

telnet server 143
1 login user pwd
2 select inbox
4 CREATE Trash
5 COPY 1 Trash
3 STORE 1 +FLAGS \Deleted
4 EXPUNGE

Try with another mailbox,

7 select Trash
3 STORE 1 +FLAGS \Deleted
4 EXPUNGE

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBW7ywrsQnQQNheMxiAQJKNgf/SqbCxUHv7Ga6COtUVeFxv51e5YGBJzrE
IDjD1bG/DAweaYDkWG+sJvwihpcYU7LRIX7nGGx7LiCOuFatWoQ2r/yIh1FSnMny
SBjRdaDP/V+JaM3t+wAQ8AS8ObLi3RSy5GXrSbQvxrXzillVC6lKl37jQ4vbxevm
MEazFDFubV9OSVs1n8oAUdKTvQVFL19xc2PYn8jkxXZMtED8a9Z7EAlwXFIbCQ/M
WMkRE2G2WFy5sxchEgxDdrXwHnr7fe6mIEm1fyp+1ed6NytDNEwXDCryh0PmR5p5
XT95amjqRlCc3YVB+Q3R8W5AcrG9/bWfaPTglA3o3MBR8iH7xkbQPg==
=znSD
-----END PGP SIGNATURE-----


More information about the dovecot mailing list