X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/07501919b00a0170efa60ded07e8169452647790..7bcfad116b7fc0ab32770a6c37042d763433a1a8:/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';