]>
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 (from parent 1:
31877ac )
: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-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
*$ ^X-Tickle-Delivered:$RE_EXTRACT_HEADER_VALUE
{ TICKLE_DELIVERED="$MATCH" }
*$ ^X-Tickle-Delivered:$RE_EXTRACT_HEADER_VALUE
{ TICKLE_DELIVERED="$MATCH" }
+:0
+*$ ^X-Delayed:$RE_EXTRACT_HEADER_VALUE
+{ DELAYED="$MATCH" }
+
# fix variable values for special cases
INCLUDERC=$PMDIR/normalise
# fix variable values for special cases
INCLUDERC=$PMDIR/normalise
LOG="dejavu: re-processing message $MSGID$NL"
MSG_DEJAVU
}
LOG="dejavu: re-processing message $MSGID$NL"
MSG_DEJAVU
}
+
+:0 E
+* DELAYED ?? .
+{
+ LOG="dejavu: processing delayed message $MSGID$NL"
+ MSG_DEJAVU
+}
-:0
-* ^X-Mailer: swaks
-{ DELAY="30 seconds" }
-
# create table messages (msgid text unique not null, filename text
# primary key not null unique, release_ts integer not null);
:0
* DELAY ?? .
# create table messages (msgid text unique not null, filename text
# primary key not null unique, release_ts integer not null);
:0
* DELAY ?? .
{
#TODO: for tickling, use header date
RELEASE="`date -d \"now + $DELAY\" +'%s %c'`"
{
#TODO: for tickling, use header date
RELEASE="`date -d \"now + $DELAY\" +'%s %c'`"
TRAP="$TRAP; $DO_QUERY '$Q'"
:0 fw
TRAP="$TRAP; $DO_QUERY '$Q'"
:0 fw
- |$FORMAIL -I "X-Delay: $RELEASE_TS ($RELEASE_TIME)"
+ |$FORMAIL -I "X-Delayed : $RELEASE_TS ($RELEASE_TIME)"
INCLUDERC=$PMDIR/handlespam
#INCLUDERC=$PMDIR/autoreplies
INCLUDERC=$PMDIR/handlespam
#INCLUDERC=$PMDIR/autoreplies
-INCLUDERC=$PMDIR/delay-delivery
INCLUDERC=$PMDIR/listquirks
INCLUDERC=$PMDIR/listquirks
+INCLUDERC=$PMRULES/all
+
+INCLUDERC=$PMDIR/addheaders
+
#INCLUDERC=$PMDIR/lurker
INCLUDERC=$PMDIR/spool
#INCLUDERC=$PMDIR/lurker
INCLUDERC=$PMDIR/spool
+INCLUDERC=$PMDIR/delay-delivery
-INCLUDERC=$PMDIR/addheaders