#!/bin/sh - |
|
/usr/local/bin/gawk ' |
|
BEGIN { |
|
IGNORECASE=1 |
|
RS="" |
|
} |
|
NR==1 { |
|
gsub(/\nReturn-Receipt-To:[^\n]*(\n[ \t][^\n]*)*/, "") |
|
gsub(/\nErrors-To:[^\n]*(\n[ \t][^\n]*)*/, "") |
|
gsub(/\nDisposition-Notification-To:[^\n]*(\n[ \t][^\n]*)*/, "") |
|
|
|
if (!match($0, /\nReply-To:/)) print "Reply-To: ML@DOMAIN" |
|
print "" |
|
RS="\n" |
|
next |
|
} |
|
{print} |
|
' | /usr/lib/sendmail -oi -f owner-ML@DOMAIN ML-outgoing |
|