From b3c3c1782c5bd56cc75b5f13bc8804f3db12fa6b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 5 Apr 2009 18:25:53 +0200 Subject: [PATCH] add received header on resumission --- bin/resubmit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/resubmit b/bin/resubmit index 6227584..62d9720 100755 --- a/bin/resubmit +++ b/bin/resubmit @@ -55,7 +55,8 @@ if [ "$mark_read" -eq 1 ]; then fi # execute the date -R only during the eval, not immediately -FILTER='/usr/bin/formail -I"X-Resubmitted: $(date -R)"' +FILTER="sed -rne ':b;s/^Received:/&/;tf;p;n;bb' -e ':f;iReceived: by resubmission script; $(date -R)' -e ':e;p;n;be'" +FILTER="$FILTER | /usr/bin/formail -I'X-Resubmitted: $(date -R)'" if [ -z "${files:-}" ] && [ $list -eq 0 ]; then eval $FILTER | exec $PROCMAIL -- 2.39.2