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

generalise list quirks for dealing with lists with cc-all policy
authormartin f. krafft <madduck@seamus.madduck.net>
Fri, 17 Aug 2007 15:05:02 +0000 (17:05 +0200)
committermartin f. krafft <madduck@seamus.madduck.net>
Fri, 17 Aug 2007 15:05:08 +0000 (17:05 +0200)
config/cclists [new file with mode: 0644]
config/ignore-lists
procmail/listquirks [new file with mode: 0644]
procmail/procmailrc
procmail/rules/mass

diff --git a/config/cclists b/config/cclists
new file mode 100644 (file)
index 0000000..931115f
--- /dev/null
@@ -0,0 +1 @@
+^git@vger\.kernel\.org$
index 9d22f50f4860973d83fbec3e672fac5e78660226..03cded3379c9c9d294f8c57238b3a960452d2299 100644 (file)
@@ -1,2 +1,4 @@
 ^Sender: owner-mutt-users@mutt\.org$
 ^Sender: owner-postfix-users@postfix\.org$
+$^ prevent CCs from git mailing list.
+^([Tt]o|[Cc]{2}):.*git@vger\.kernel.org
diff --git a/procmail/listquirks b/procmail/listquirks
new file mode 100644 (file)
index 0000000..ffb540f
--- /dev/null
@@ -0,0 +1,10 @@
+:0
+* ? echo "$EQ_TO" | $EGREP -qif $CONF/cclists
+{
+  CORRESPONDENTS=`formail -cxTo: -xCc: -xFrom: | tr -s '\n' ,`
+  LOG="listquirks:   adding M-F-T header for message on list $EQ_TO$NL"
+  :0 fw
+  |$FORMAIL -a "Mail-Followup-To: $CORRESPONDENTS"
+}
+
+# vim:ft=procmail
index 9b66ceea7be628127aa99cb36330707b1e76992d..fc4b83dcba3145adb3a52a58dd6be72139cb7314 100755 (executable)
@@ -72,4 +72,6 @@ INCLUDERC=$PMDIR/handlespam
 
 INCLUDERC=$PMDIR/lurker
 
+INCLUDERC=$PMDIR/listquirks
+
 INCLUDERC=$PMRULES/all
index f7d539fc4694c0aae384cd45f14f06875775d225..59b6bd3ee9515b7a2d2c918fef946b71510023d3 100644 (file)
@@ -2,14 +2,7 @@
 * ORIG_DOMAIN ?? ^mass\.madduck\.net$
 {
   DESTDIR=$BASE/.mass
-
-  :0
-  * ORIG_LOCAL ?? ^git=vger\.kernel\.org$
-  {
-    CORRESPONDENTS=`formail -cxTo: -xCc: -xFrom: | tr -s '\n' ,`
-    :0 fw
-    |$FORMAIL -a "Mail-Followup-To: $CORRESPONDENTS"
-  }
+  
   :0
   ${DESTDIR}/
 }