On 4.5.2013, at 13.32, Odhiambo Washington <[email protected]> wrote:

> What happens to quotas in places where it is enforced? Where does the
> undeleted mail go? Does it still count towards the quota?

Good point. It does count towards quota. Worth mentioning also in the setting 
docs. The mail isn't really "deleted" from the IMAP point of view, it simply 
gets added that $POP3Deleted flag, so "undelete" is simply removing that flag 
with IMAP protocol.

Also if wanted this could be combined with cronjob scripts and such to delete 
old mails, e.g.:

doveadm expunge -A savedsince 1week keyword $POP3Deleted

> On 3 May 2013 19:14, Timo Sirainen <[email protected]> wrote:
> 
>> GMail doesn't delete mails when POP3 client issues a DELE command for it.
>> Instead they just become invisible for future POP3 sessions, but they still
>> exist for IMAP/webmail. The same could be implemented pretty easily for
>> Dovecot:
>> 
>> - Add a new setting to enable this: pop3_deleted_flag = $POP3Deleted
>> - When DELEting a message, add this flag to the message.
>> - When listing messages, skip all messages that have this flag.
>> - Also hide this flag from IMAP clients(?)
>> 
>> Thoughts? Probably 20 lines of new code.
>> 
>> 
> 
> 
> -- 
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254733744121/+254722743223
> "I can't hear you -- I'm using the scrambler."

Reply via email to