From 09d4ef213c4a6e5588c1944107a94da0ab44ee8c Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 23 Sep 2007 21:51:26 +0200 Subject: [PATCH] fix up ourdate variables --- procmail/defines | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/procmail/defines b/procmail/defines index 2e8c1f5..f9f6ff8 100644 --- a/procmail/defines +++ b/procmail/defines @@ -36,9 +36,6 @@ TRAINER="$NICE $MAILFILT/bin/train" SQLITE="$NICE /usr/bin/sqlite3" -OURDATE="`date -R`" -OURDATE_SHORT=`date +%Y.%m.%d.%H.%M.%N` - BASE=$HOME/.maildir #DEFAULT="|$DELIVER" @@ -81,6 +78,17 @@ TICKLER_QUEUE=$BASE/.tickler/ DISCARD=$BASE/.discard/ #DISCARD="'|$DELIVER -m BASE.discard'" +OURDATE="`date +'%s %Y.%m.%d.%H.%M.%N %a, %d %b %Y %T %z'`" +:0 +*$ OURDATE ?? ^\/${RE_NOT_SPACE}+ +{ OURDATE_TS="$MATCH" } +:0 +*$ OURDATE ?? ^[0-9]+${RE_SPACE}+\/${RE_NOT_SPACE}+ +{ OURDATE_SHORT="$MATCH" } +:0 +*$ OURDATE ?? ^[0-9]+${RE_SPACE}+[0-9.]+${RE_SPACE}+\/${RE_NOT_SPACE}+ +{ OURDATE="$MATCH" } + ### variables from the message ### local recipient data -- 2.39.5