On Thu, Apr 15, 2010 at 1:02 AM, Gary Smith <[email protected]> wrote:
> We use a filter to break out and run our spamassassin and other checks. In
> bash shell that process, we have a need to insert a custom unique header per
> email for compliance. Is there a simple way of doing this without having to
> go into any special mime processing of the message?
>
> Gary Smith
>
Add to bash script:
sed -i '0,/^$/s//X-unique-header: ${VAR_UNIQUE_VALUE}\n/' "$FILE"
Plesae, set VAR_UNIQUE_VALUE and FILE as apropriated.
--
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net
"Don't try to adapt the software to the way you work, but rather
yourself to the way the software works" (myself)