]> 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 tickler receiver
authormartin f. krafft <madduck@madduck.net>
Wed, 22 Aug 2007 15:14:16 +0000 (17:14 +0200)
committermartin f. krafft <madduck@madduck.net>
Wed, 22 Aug 2007 15:14:16 +0000 (17:14 +0200)
config/skip-spamchecks
procmail/procmailrc
procmail/tickle [new file with mode: 0644]

index 560c55e725f0392761b3b97d2bd0b5a6a38b27b1..f14f4597b633b099b91b4eb7a4c462156add29d7 100644 (file)
@@ -1,7 +1,7 @@
 ^X-Mailer: swaks v20[[:digit:].]+ jetmore\.org/john/code/#swaks$
 ^User-Agent: rss2email$
 ^X-madduck-test: yes$
 ^X-Mailer: swaks v20[[:digit:].]+ jetmore\.org/john/code/#swaks$
 ^User-Agent: rss2email$
 ^X-madduck-test: yes$
-^From:.*\<logcheck@
+^X-Original-To: [[:digit:]]+@tickle\.madduck\.net$
 ^To:.*\<ebay\.com@pobox\.madduck\.net\>
 ^To:.*\<paypal\.com-(us|de)@pobox\.madduck\.net\>
 ^To:.*\<myspace\.com@pobox\.madduck\.net\>
 ^To:.*\<ebay\.com@pobox\.madduck\.net\>
 ^To:.*\<paypal\.com-(us|de)@pobox\.madduck\.net\>
 ^To:.*\<myspace\.com@pobox\.madduck\.net\>
@@ -21,6 +21,7 @@
 ^To:.*\<immoscout24\.ch@pobox\.madduck\.net\>
 ^To:.*\<amazon\.com@pobox\.madduck\.net\>
 ^To:.*\<klarmobil.de@pobox\.madduck\.net\>
 ^To:.*\<immoscout24\.ch@pobox\.madduck\.net\>
 ^To:.*\<amazon\.com@pobox\.madduck\.net\>
 ^To:.*\<klarmobil.de@pobox\.madduck\.net\>
+^From:.*\<logcheck@
 ^From:.*\<installer@ftp-master\.debian\.org\>
 ^From:.*\<owner@bugs\.debian\.org\>
 ^From:.*\<swsupport@pimlicosoftware\.com\>
 ^From:.*\<installer@ftp-master\.debian\.org\>
 ^From:.*\<owner@bugs\.debian\.org\>
 ^From:.*\<swsupport@pimlicosoftware\.com\>
index 372cb9b890b421e969a659e5cd1ff46fab61ef95..12a9bdc6f1592b9a29f4b0ba98683b704f90dc56 100755 (executable)
@@ -36,6 +36,7 @@ INCLUDERC=$PMDIR/addheaders
 INCLUDERC=$PMDIR/handlespam
 
 #INCLUDERC=$PMDIR/autoreplies
 INCLUDERC=$PMDIR/handlespam
 
 #INCLUDERC=$PMDIR/autoreplies
+INCLUDERC=$PMDIR/tickle
 
 INCLUDERC=$PMDIR/lurker
 INCLUDERC=$PMDIR/spool
 
 INCLUDERC=$PMDIR/lurker
 INCLUDERC=$PMDIR/spool
diff --git a/procmail/tickle b/procmail/tickle
new file mode 100644 (file)
index 0000000..71edef6
--- /dev/null
@@ -0,0 +1,21 @@
+:0
+* ORIGINAL_TO ?? ^[0-9]+@tickle\.madduck\.net$
+* ORIGINAL_TO ?? ^\/[0-9]+
+{
+  TICKLEDIR=$BASE/.tickle.$MATCH
+
+  :0
+  * ? test ! -d $TICKLEDIR/cur
+  {
+    LOG="tickle:      received message outside tickle range: $MATCH$NL"
+
+    :0
+    $DISCARD
+  }
+
+  LOG="tickle:      file message and tickle in $MATCH day(s)$NL"
+
+  :0
+  $TICKLEDIR/
+  TICKLEDIR
+}