X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/c665eae75cbe272fbaca4a69135eebcc290b3278..60fe2cf976619c3621b2f6aaffaa745c32d18d17:/procmail/cleanup diff --git a/procmail/cleanup b/procmail/cleanup index 3eacdd7..e22b58b 100644 --- a/procmail/cleanup +++ b/procmail/cleanup @@ -1,17 +1,14 @@ -:0 -* ^X-Trained-As: \/(h|sp)am -{ TRAINED_AS=$MATCH } - -# remove all headers added in the *local* mail chain +# remove all headers added in the *local* mail chain: +# 1. added by this mailfilter +# (but not X-Tickle, X-Postponed, or X-Resubmitted) +# 2. added by the retraining system +# 3. added by offlineimap +# 4. added by the MUA :0 fw |$FORMAIL \ - # headers added by this mailfilter - -IX-EqDomain -IX-EqTo -IX-Justme \ - # headers added by the retraining system + -IX-EqDomain -IX-EqTo -IX-Justme -IX-Spamtrapped \ -IX-Trained-As \ - # headers added by offlineimap -IX-UID -IX-OfflineIMAP- \ - # headers added by the MUA -IX-Status -IStatus -IX-Keywords -IContent-Length # now should be idempotent