1 require [ "date", "envelope", "fileinto", "mailbox", "subaddress", "variables" ];
3 #if currentdate :matches "year" "*" { set "year" "${1}"; }
4 #if currentdate :matches "month" "*" { set "month" "${1}"; }
6 if exists "X-MC-User" {
7 if header :matches "From" "*<*@*.asso.fr>*" {
8 fileinto :create "Listes+${3}";
11 elsif header :matches "From" "*<*@*.*>*" {
12 fileinto :create "Listes+${3}+${2}";
16 elsif exists "List-Id" {
17 if header :matches "List-Id" "*<*.*.*.*>*" {
18 if allof (not string :is "${2}" "", not string :is "${3}" "", not string :is "${4}" "") {
19 fileinto :create "Listes+${4}+${3}+${2}";
23 elsif header :matches "List-Id" "*<*.*.*>*" {
24 if allof (not string :is "${2}" "", not string :is "${3}" "") {
25 fileinto :create "Listes+${3}+${2}";
31 if envelope :matches :detail "TO" "*" { set "extension" "${1}"; }
32 if not string :is "${extension}" "" {
33 fileinto :create "Listes+${extension}";