Ajout : roundcube.
[lhc/ateliers.git] / etc / dovecot / sieve / global.d / list.sieve
1 require
2 [ "date"
3 , "fileinto"
4 , "mailbox"
5 , "variables"
6 ];
7
8 if currentdate :matches "year" "*" { set "year" "${1}"; }
9 if currentdate :matches "month" "*" { set "month" "${1}"; }
10
11 if exists "List-ID" {
12 if header :matches "List-ID" "*<*.*.*>*" {
13 set "list" "${2}";
14 set "domain" "${3}";
15 }
16 fileinto :create "Lists.${domain}.${list}.${year}.${month}";
17 stop;
18 }