}
}
elsif exists "List-Id" {
- if header :matches "List-Id" "*<*.*.*.*>*" {
+ if header :matches "List-Id" "*<*/*.*.lists.sr.ht>*" {
+ if allof (not string :is "${2}" "", not string :is "${3}" "", not string :is "${4}" "") {
+ fileinto :create "Listes+sr.ht+${2}+${3}+${4}";
+ stop;
+ }
+ }
+ elsif header :matches "List-Id" "*<*/*.lists.sr.ht>*" {
+ if allof (not string :is "${2}" "", not string :is "${3}" "") {
+ fileinto :create "Listes+sr.ht+${2}+${3}";
+ stop;
+ }
+ }
+ elsif header :matches "List-Id" "*<*.*.*.*>*" {
if allof (not string :is "${2}" "", not string :is "${3}" "", not string :is "${4}" "") {
fileinto :create "Listes+${4}+${3}+${2}";
stop;