]>
git.madduck.net Git - etc/mailfilter.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (parent:
a9f9f1f )
# remove all headers added in the *local* mail chain:
# 1. added by this mailfilter
# remove all headers added in the *local* mail chain:
# 1. added by this mailfilter
-# (but not X-Tickle, X-Delay ed, or X-Resubmitted)
+# (but not X-Tickle, X-Postpon ed, or X-Resubmitted)
# 2. added by the retraining system
# 3. added by offlineimap
# 4. added by the MUA
# 2. added by the retraining system
# 3. added by offlineimap
# 4. added by the MUA
{ TRAINED_AS="$MATCH" }
:0
{ TRAINED_AS="$MATCH" }
:0
-*$ ^X-Tickle-Delivered:$RE_EXTRACT_HEADER_VALUE
-{ TICKLE_DELIVERED="$MATCH" }
-
-:0
-*$ ^X-Delayed:$RE_EXTRACT_HEADER_VALUE
+*$ ^X-Postponed:$RE_EXTRACT_HEADER_VALUE
{ DELAYED="$MATCH" }
# fix variable values for special cases
{ DELAYED="$MATCH" }
# fix variable values for special cases
* DELAY ?? .
* ! DELAYED ?? .
{
* DELAY ?? .
* ! DELAYED ?? .
{
- :0
- * DELAY ?? ^[0-9]
- { DELAY="now + $DELAY" }
-
#TODO: for tickling, use header date
RELEASE="`$BIN_DATE -d \"$DELAY\" +'%s %c'`"
#TODO: for tickling, use header date
RELEASE="`$BIN_DATE -d \"$DELAY\" +'%s %c'`"
LOG="delay: delay delivery of $MSGID until $RELEASE_TIME$NL"
:0 fw
LOG="delay: delay delivery of $MSGID until $RELEASE_TIME$NL"
:0 fw
- |$FORMAIL -I "X-Delay ed: $RELEASE_TS ($RELEASE_TIME)"
+ |$FORMAIL -I "X-Postpon ed: $RELEASE_TS ($RELEASE_TIME)"
INCLUDERC=$PMDIR/record-delayed-mail
INCLUDERC=$PMDIR/record-delayed-mail
+# The X-Tickle header has priority over the Original-To address
-* ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$
-* ORIGINAL_TO ?? ^\/[^@]+
+*$ ^X-Tickle:${RE_SPACE}+\/${RE_NOT_SPACE}+
-*$ ^X-Tickle:${RE_SPACE}+\/${RE_NOT_SPACE}+
+* ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$
+* ORIGINAL_TO ?? ^\/[^@]+
{ TICKLE="$MATCH" }
:0
* TICKLE ?? .
* ! DEST ?? .
{ TICKLE="$MATCH" }
:0
* TICKLE ?? .
* ! DEST ?? .
-* ! TICKLE_DELIVERED ?? .
{
DAILY_DELIVERY_TIME=04:20
JUST_DATE="`$BIN_DATE -d \"$DATE\" +%x`"
{
DAILY_DELIVERY_TIME=04:20
JUST_DATE="`$BIN_DATE -d \"$DATE\" +%x`"