commit 2668a517689024356458dbe4fb01f6c815d95dc3 parent 41fc9d9b7f1daa257981a1e83889bafdab2a8a9a Author: Jaromil <jaromil@dyne.org> Date: Tue, 4 Mar 2014 23:27:29 +0100 user agent header Diffstat:
M | src/zlibs/email | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/zlibs/email b/src/zlibs/email @@ -140,7 +140,12 @@ queue() { else # recipients are set in the email envelope act "email recipients: $queue_to" - mv $TMPDIR/$queue_body.mail $MAILDIRS/outbox/new/$queue_body.mail + # file into the outbox filtering headers + cat $TMPDIR/$queue_body.mail | awk ' +/User-Agent:/ { print "User-Agent: Jaro Mail <http://jaromail.dyne.org>"; next } +{ print $0 } +' > $MAILDIRS/outbox/new/$queue_body.mail + rm $TMPDIR/$queue_body.mail print "${=queue_to}" > $MAILDIRS/outbox/send/$queue_body.rcpt fi