if currentdate :matches "month" "*" { set "month" "${1}"; }
if exists "List-ID" {
- if header :matches "List-ID" "*<*.*.*>*" {
+ if header :matches "List-ID" "*<*.heureux-cyclage.org>*" {
+ set "list" "${2}";
+ set "domain" "LHC";
+ }
+ elsif header :matches "List-ID" "*<*.*.cyclocoop.org>*" {
+ set "list" "${2}+${3}";
+ set "domain" "cyclocoop";
+ }
+ elsif header :matches "List-ID" "*<*.cyclocoop.org>*" {
+ set "list" "${2}";
+ set "domain" "cyclocoop";
+ }
+ elsif header :matches "List-ID" "*<*.*.*.*>*" {
+ set "list" "${2}";
+ set "domain" "${4}";
+ }
+ elsif header :matches "List-ID" "*<*.*.*>*" {
set "list" "${2}";
set "domain" "${3}";
}
- fileinto :create "Lists.${domain}.${list}.${year}.${month}";
+ fileinto :create "Listes+${domain}+${list}+${year}+${month}";
stop;
}