]> 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:

add and cleanup X-Resubmitted header
authormartin f. krafft <madduck@madduck.net>
Sun, 23 Sep 2007 20:34:14 +0000 (22:34 +0200)
committermartin f. krafft <madduck@madduck.net>
Sun, 23 Sep 2007 20:34:14 +0000 (22:34 +0200)
bin/resubmit
procmail/cleanup

index 8405e772f15b51c910dc415616811c10eaf9add0..5ef823721e7b2100b1cad3afebda2c1cd6f4d05a 100755 (executable)
@@ -2,11 +2,12 @@
 set -eu
 
 PROCMAIL=$HOME/.etc/mailfilter/procmail/procmailrc
 set -eu
 
 PROCMAIL=$HOME/.etc/mailfilter/procmail/procmailrc
+FORMAIL="formail -I 'X-Resubmitted: $(date -R)'"
 
 if [ -z "${1:-}" ]; then
 
 if [ -z "${1:-}" ]; then
-  cat | exec $PROCMAIL
+  $FORMAIL | exec $PROCMAIL
 else
 else
-  $PROCMAIL < "$1" && rm -f "$1"
+  $FORMAIL "$1" | $PROCMAIL && rm -f "$1"
 fi
 
 exit 0
 fi
 
 exit 0
index be6dd86038dc8b4cb8bf0c7ec46435677506264c..0c57cc865a2e11b07f600557f2cda9860745f760 100644 (file)
@@ -6,7 +6,7 @@
 :0 fw
 |$FORMAIL \
           -IX-EqDomain -IX-EqTo -IX-Justme -IX-Spamtrapped \
 :0 fw
 |$FORMAIL \
           -IX-EqDomain -IX-EqTo -IX-Justme -IX-Spamtrapped \
-          -IX-Delayed -IX-Tickle \
+          -IX-Delayed -IX-Tickle -IX-Resubmitted \
           -IX-Trained-As \
           -IX-UID -IX-OfflineIMAP- \
           -IX-Status -IStatus -IX-Keywords -IContent-Length
           -IX-Trained-As \
           -IX-UID -IX-OfflineIMAP- \
           -IX-Status -IStatus -IX-Keywords -IContent-Length