sieve: is it possible to filter ALL mailing lists (with header List-Id) to their folders with ONE rule?

Dominik Breu dominik at dominikbreu.de
Fri Sep 12 19:40:25 UTC 2014


Hello list,

just a quick guess from my side:

     if header :matches "List-ID" "<*.*.*>" {
          fileinto "INBOX.${3}.${2}.${1}"; stop;
      }

this should do the trick 

-dominik

Am Freitag, den 12.09.2014, 20:37 +0200 schrieb A. Schulze:
> Lev Serebryakov:
> 
> > List-Id: This is decription of list <list-name.host.org>
> >
> >  will be put into folder "org.host.list-name" where "." is namespace
> > separator (so, such folders will be shown as hierarchy in mail client)?
> 
> :-)
> had the same idea while writing my sieve file ...
> 
> Another idea would be a key -> value map
> key  : list-id
> value: foldername
> 
> Andreas




More information about the dovecot mailing list