[Dovecot] Forcibly emptying a POP3 mailbox

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Thu Feb 4 15:10:55 EET 2010


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

On Thu, 4 Feb 2010, Răzvan Sandu wrote:

> Thanks a lot, but the problem here are not the IMAP users accessing the 
> server via squirrelmail. Few people use this.

Er, it doesn't matter if just few users use IMAP, but that the solution 
has to cope with it, did I misunderstood something?

> What I mainly want to avoid are *POP3* users checking the „Leave a copy on 
> the server” checkmark.

Yeah, did you've read the responses you got?

> I need a way of automatically performing the DELE command at server level, 
> just after a POP3 user *succesfully* downloaded his messages via POP3...

Well, I know that the client knows it has *successfully* downloaded 
messages, but how does the server know? Just to sent down some packets 
through the wire does not mean success.

The only logic I currently can think of is:

a plugin monitors POP sessions and deletes all messages the client does 
not download up to the newest one the client downloaded. One could argue, 
that the fact, that the client does not request message X, but message Y 
and arrivalOf(X) < arrivalOf(Y), implies, that X has been downloaded 
successfully already.

Because you do not seem to need such a high resultion, I think my idea 
with the postlogin script for IMAP users is a nice workaround, which also 
does not need much extra performance, esp. during user-access time. 
Moreover, because just few users use IMAP.

Regards,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBS2rHYb+Vh58GPL/cAQKzyQf+Nicmtl/NugGXw2QXLLyipX4Bduv41eBs
iwViTHeEuflpk90K7iN5e4UEYVewbDRgoddGkb5Wdg0O93XggLvll7y9Lq2dvD72
jtDPjDw0+PSSY2lVMAnU/uWOW/ZwCSIXGRhzZicbWxf22ZBSpeBGXvNiPFCjMhKm
hcR9uRxOeKmkKi8xGnw8flUltF3aa9gGKLa7ayuwQVF0vRW82DeaGmxDPbn0FWHa
Jl+03scvDqOysjLplsYRLKBeWXvfEqvZtdxWnS5MBW2V+gipVjP/06HjeqjDJFhf
Q7NwQLejEE1obq1bJHcqv+wI/T36nXI+DIReAayH3JG26MJcGnwX4w==
=+Ya4
-----END PGP SIGNATURE-----


More information about the dovecot mailing list