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

Lev Serebryakov lev at serebryakov.spb.ru
Fri Sep 12 19:48:48 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 09/12/2014 23:40, Dominik Breu wrote:

 Looks like it should work, only should be tinkered for different
number of parts in ID. But it is better than full-manual :)

 Thank you.

> 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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJUE04fXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF
QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePoHkP/2Q+YYlrBDOlsRcmc4HaeWOV
NvbIuWx390deikxaXmD7YiHaE58m1sOzjLzUiySgfV1zA4BoXlD8AyzcSMeNMJz4
hH6XUlRG9iLUt8PikHBNyzoqWR/xEsQK7ELxdKhX7pAk66TG1h+pUj9L11Bmy4wb
lkZ2em7HtDudQSg+GYAVEvb3UW79FzEAaWlyyy3qOmDpahGGOIJgQfqN9+m3TNU0
BTHvhI6NQNoodyq4G6VqsrAnO2bOjkbbdKG2lYg/TnfcoW9gy6AinEzVaE9QepO5
qebrRBj1RGfkqvBRm9dAfTtG1qrL7LfCKZFuQBAnwmG6/Wgot/bIWM2S8YGApY9X
WfukwzAOmX16YQAmAZB+WGuKw3RFCwvT7NXi5/2xzf+Njzpj1UmVBjPIBCZ6fk85
k3ljYXbmF0deHBkpMpTc7hBFYJcU+nJhPArNQE3jpcVtmk28+k/PZkbLBL1AK9Lu
rwBCNYRXVa/k7YtE6g2H9s21tP7lrepVj1YeD8ZyPlfgDZ2cPmFLZJ73hEdoPBCZ
YBU7ViQ/zzV/PTtW1T66uz9N+Ex1LfwDI079T0b4kCZuABjq4bCuXKxVqAu52bWW
eL4MytN5jjbrJ9jRGrCimhQwZTENBS5JdornOIOH82I/lhEN/Y9TJWRWMYWyR01p
LitgYGm4t45cYf1SvA+j
=Q7U7
-----END PGP SIGNATURE-----


More information about the dovecot mailing list