]>
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:
954a6ea )
15 files changed:
-* DEST ?? .
-{
- :0
- * DEST ?? .+[^/]$
- { DEST="$DEST/" }
+* ! DEST ?? .
+{ DEST="$DEFAULT" }
- :0
- *$ DEST ?? ^$BASE/\/.+
- { DEST="$MATCH" }
-
- :0
- *$ DEST ?? ^\.
- { }
+:0
+* DEST ?? .+[^/]$
+{ DEST="$DEST/" }
- :0 E
- { DEST=".$DEST" }
+:0
+*$ DEST ?? ^$BASE/\/.+
+{ DEST="$MATCH" }
- LOG="deliver: delivering message $MSGID to $DEST$NL"
- DEST="$BASE/$DEST"
- :0
- $DEST
-}
-{
- LOG="deliver: delivering message $MSGID to default destination$NL"
- :0
- $DEFAULT
-}
+{ DEST=".$DEST" }
+
+TRAP="DEST=\"\${LASTFOLDER#$BASE/}\";
+ echo \"delivered: \$DEST\" >> '$THISLOGFILE';
+ $TRAP"
+
+LOG="deliver: delivering message $MSGID to $DEST$NL"
+:0
+$BASE/$DEST
{
LOG="spamfilter: filing as unsure$NL"
:0
{
LOG="spamfilter: filing as unsure$NL"
:0
+ { DEST=retrain.unsure }
{
LOG="spamfilter: filing as disagreed$NL"
:0
{
LOG="spamfilter: filing as disagreed$NL"
:0
- $BASE/.retrain.disagree/
+ { DEST=retrain.disagree }
{
LOG="spamfilter: filing as spam$NL"
:0
{
LOG="spamfilter: filing as spam$NL"
:0
# send-hook '~C git@vger\.kernel\.org' 'unset followup_to'
#
:0
# send-hook '~C git@vger\.kernel\.org' 'unset followup_to'
#
:0
* ? echo "$EQ_TO" | $EGREP -qif $CONF/cclists
* ! ^Mail-Followup-To:
{
* ? echo "$EQ_TO" | $EGREP -qif $CONF/cclists
* ! ^Mail-Followup-To:
{
original-to: $ORIGINAL_TO
subject: $SUBJECT$NL"
original-to: $ORIGINAL_TO
subject: $SUBJECT$NL"
-TRAP="DEST=\"\${LASTFOLDER#$BASE/}\";
- echo \"delivered: \$DEST\" >> '$THISLOGFILE';
- echo >> '$THISLOGFILE';
+TRAP="echo >> '$THISLOGFILE';
egrep -v '^XX(procmail:)?[[:space:]\"]' '$THISLOGFILE' >> $MASTERLOGFILE"
#VERBOSE=yes
egrep -v '^XX(procmail:)?[[:space:]\"]' '$THISLOGFILE' >> $MASTERLOGFILE"
#VERBOSE=yes
-INCLUDERC=$PMDIR/spamtraps
-INCLUDERC=$PMDIR/spammers
INCLUDERC=$PMDIR/spamfilter
INCLUDERC=$PMDIR/spamfilter
-INCLUDERC=$PMDIR/addheaders
-
INCLUDERC=$PMDIR/handlespam
#INCLUDERC=$PMDIR/autoreplies
INCLUDERC=$PMDIR/handlespam
#INCLUDERC=$PMDIR/autoreplies
+INCLUDERC=$PMDIR/addheaders
# DESTDIR="$BASE/.admin.`echo $EQ_DOMAIN | tr . _"
#
# DESTDIR="$BASE/.admin.`echo $EQ_DOMAIN | tr . _"
#
-INCLUDERC=$PMRULES/feeds
-INCLUDERC=$PMRULES/admin
-INCLUDERC=$PMRULES/ul
-INCLUDERC=$PMRULES/debian
-INCLUDERC=$PMRULES/sudetia
-INCLUDERC=$PMRULES/mass
+:0
+* ! DEST ?? .
+{
+ INCLUDERC=$PMRULES/feeds
+ INCLUDERC=$PMRULES/admin
+ INCLUDERC=$PMRULES/ul
+ INCLUDERC=$PMRULES/debian
+ INCLUDERC=$PMRULES/sudetia
+ INCLUDERC=$PMRULES/mass
+}
:0
* ^X-Debian-PR-Source: \/.+
* ? grep -q "^${MATCH}$" $CONF/debian-packages
:0
* ^X-Debian-PR-Source: \/.+
* ? grep -q "^${MATCH}$" $CONF/debian-packages
:0
* ORIGINAL_TO ?? ^logcheck-(devel|commits)=lists\.alioth\.debian\.org@mass\.madduck\.net$
:0
* ORIGINAL_TO ?? ^logcheck-(devel|commits)=lists\.alioth\.debian\.org@mass\.madduck\.net$
+{ DEST=debian.logcheck }
:0
* ORIGINAL_TO ?? ^pkg-mdadm-(devel|commits)=lists\.alioth\.debian\.org@mass\.madduck\.net$
:0
* ORIGINAL_TO ?? ^pkg-mdadm-(devel|commits)=lists\.alioth\.debian\.org@mass\.madduck\.net$
:0
* ORIGINAL_TO ?? ^netconf-(devel|commits)=lists\.alioth\.debian\.org@mass\.madduck\.net$
:0
* ORIGINAL_TO ?? ^netconf-(devel|commits)=lists\.alioth\.debian\.org@mass\.madduck\.net$
:0
* ORIGINAL_TO ?? ^madduck=debian\.org@forward\.madduck\.net$
:0
* ORIGINAL_TO ?? ^madduck=debian\.org@forward\.madduck\.net$
:0
* ORIG_DOMAIN ?? ^r2e\.madduck\.net$
:0
* ORIG_DOMAIN ?? ^r2e\.madduck\.net$
-{
- DESTDIR=$BASE/.feeds
-
- :0
- ${DESTDIR}/
-}
:0
* ORIG_DOMAIN ?? ^mass\.madduck\.net$
:0
* ORIG_DOMAIN ?? ^mass\.madduck\.net$
-{
- DESTDIR=$BASE/.mass
-
- :0
- ${DESTDIR}/
-}
:0
* ORIGINAL_TO ?? ^m(artin\.)?krafft@sudetia\.de$
:0
* ORIGINAL_TO ?? ^m(artin\.)?krafft@sudetia\.de$
{ LOG="spamfilter: skipping resubmitted message$NL" }
}
{ LOG="spamfilter: skipping resubmitted message$NL" }
}
+# do not run spamfilters if the message destination is already set
+:0 E
+* DEST ?? .
+{
+ LOG="spamfilter: message already routed to '$DEST'$NL"
+ SPAM_UNKNOWN=already-destined
+}
+
# let earlier parts of the mailfilter cause bypassing the checks
:0 E
* SKIP_SPAMCHECKS ?? .
# let earlier parts of the mailfilter cause bypassing the checks
:0 E
* SKIP_SPAMCHECKS ?? .
# now run the spamfilters
:0 E
{
# now run the spamfilters
:0 E
{
+ INCLUDERC=$PMDIR/spamtraps
+ INCLUDERC=$PMDIR/spammers
INCLUDERC=$PMDIR/pre-spam-cleanup
# crm114
INCLUDERC=$PMDIR/pre-spam-cleanup
# crm114
* ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$
* ORIGINAL_TO ?? ^\/[^@]+
{
* ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$
* ORIGINAL_TO ?? ^\/[^@]+
{
{
LOG="gmail: archiving message $MSGID with gmail$NL"
SENDMAILFLAGS="$SENDMAILFLAGS -f $ID"
{
LOG="gmail: archiving message $MSGID with gmail$NL"
SENDMAILFLAGS="$SENDMAILFLAGS -f $ID"
:0
! martin.krafft@gmail.com
:0
! martin.krafft@gmail.com