First, Timothy, you should use sed's -e or -f options to put multiple
instructions into one sed call, the way you sometimes have done with
semicolons, instead of piping from sed to sed.
Thanks... I'm just getting past the point of just copy/pasting sed to
understanding how it works a little more, and how to string commands
together is something I'm just starting to figure out.
Anyway, taking your suggestion, here is what I have come up with
:0
* ^Content-Type: multipart/alternative
{
:0fbw
* ^From:(_dot_)*(_at_)aol\(_dot_)com
|sed -e "$ a\\
\\
{this message modified by unhtml.rc for AOL users}\\
" -e '1,/Content-Transfer-Encoding: /d; /--part/,$d; s/=A0//'
:0fbw
* ^X-Mailer: Microsoft Outlook
|sed -e "$ a\\
\\
{this message modified by unhtml.rc for Outlook users}\\
" -e '1,/Content-Transfer-Encoding: /d; /------=_NextPart_/,$d;
s/=$//g; s/=20//g'
}
In case you have trouble seeing where the line breaks should be, you
can also find it at
http://www.peak.org/~luomat/misc/procmail/unhtml.rc
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail