[Dovecot] Gettings mails recently moved to a folder

Florian Lindner mailinglists at xgm.de
Mon Dec 2 16:24:47 EET 2013

Am Donnerstag, 21. November 2013, 17:28:18 schrieb Pascal Volk:
> On 11/21/2013 11:11 AM Florian Lindner wrote:
> > Hello,
> > 
> > some spam training tools learn the same message over and over again.
> > Since I want to use a daily cronjob to train messages and I do not want
> > to have the same messages trained multiple times, I need to way to get
> > new messages in a folder.
> > 
> > Is there a (consolish) way to get a list of messages that were recently
> > moved to a folder? dovecot does not modify mtime, according to RFC 3501.
> Does `doveadm search -u spam at xgm.de mailbox INBOX SAVEDSINCE 2013-11-21`
> list the wanted messages? For more details see doveadm-search(1) and
> doveadm-search-query(7).

Not really:

% doveadm search -u mailinglists at xgm.de mailbox INBOX  SAVEDSINCE 2013-11-21

doveadm(mailinglists at xgm.de): Error: user mailinglists at xgm.de: Initialization 
failed: Namespace '': Mail storage autodetection failed with 
home=/home/flindner/Mail/mailinglists at xgm.de
doveadm(mailinglists at xgm.de): Fatal: User init failed

Which seems to be another problem. IMAP and POP3 work fine, but on occasions 
like that dovecot fails to detect that it is a maildir.

Problem may be that in my database home and mail location is identical (and 
there is no way to change that). Is there a way to tell dovecot that every 
mailbox is a maildir without modifying the database?


More information about the dovecot mailing list