X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/75e25f19dcf7f61080a1e728affd40e5ee7dcea0..0bdaf799927d3d663247f2506f23f28497dbdd37:/procmail/tickle diff --git a/procmail/tickle b/procmail/tickle index bc4572d..6b0276a 100644 --- a/procmail/tickle +++ b/procmail/tickle @@ -1,18 +1,22 @@ +# The X-Tickle header has priority over the Original-To address :0 -* ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$ -* ORIGINAL_TO ?? ^\/[^@]+ -{ TICKLE="$MATCH" } +*$ ^X-Tickle:${RE_SPACE}+\/${RE_NOT_SPACE}+ +{ + TICKLE="$MATCH" + :0 fw + |$FORMAIL -IX-Tickle +} :0 E -*$ ^X-Tickle:${RE_SPACE}+\/${RE_NOT_SPACE}+ +* ! POSTPONED ?? . +* ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$ +* ORIGINAL_TO ?? ^\/[^@]+ { TICKLE="$MATCH" } :0 * TICKLE ?? . * ! DEST ?? . -* ! TICKLE_DELIVERED ?? . { - LOG="tickle: '$TICKLE'$NL" DAILY_DELIVERY_TIME=04:20 JUST_DATE="`$BIN_DATE -d \"$DATE\" +%x`"