X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/07501919b00a0170efa60ded07e8169452647790..f9580451f506db43603243fef630f8ebfcc4a884:/procmail/logging diff --git a/procmail/logging b/procmail/logging index 4574b18..ac4b8dc 100644 --- a/procmail/logging +++ b/procmail/logging @@ -5,7 +5,7 @@ MSGIDDIR=$PMVAR/msgid :0 * MSGID ?? ^<\/[^>]+ { - MSGID_NAME=`echo $MATCH | sha224sum | cut -d' ' -f1` + MSGID_NAME=`echo -n $MATCH | sha224sum | cut -d' ' -f1` :0 * MSGID_NAME ?? ^\/. @@ -43,6 +43,10 @@ from: $FROMEMAIL ($FROM) original-to: $ORIGINAL_TO subject: $SUBJECT$NL" +:0 +* SUBJECT_ENCODED ?? . +{ LOG="subject-enc: $SUBJECT_ENCODED$NL" } + TRAP="DESTFILE=\"\${LASTFOLDER#$BASE/}\"; /usr/bin/lockfile -4 -r50 -l180 $PMVAR/lock; trap \"echo >> '$THISLOGFILE';