Re: stripping the signature from an email
"@lbutlr" <[email protected]> Wed, 1 Jun 2016 09:49:53 -0600
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
On Jun 1, 2016, at 9:22 AM, Dale R. Worley <[email protected]> wrote: > The usual way to defeat this is > >> MSGTEXT=`echo "$MSGTEXT" | sed '/^-- $/,$d’` Oh. Right. Doh. > but a better way is your second code: > >> MSGTEXT=`/usr/local/bin/formail -I "" | sed '/^-- $/,$d'` > > which avoids putting the original message into MSGTEXT. I had it all as one long line, which I will try to setup once again, but I was having some issues with it. MSGTEXT=`/usr/local/bin/formail -I ""| /usr/local/bin/gbase64 -d | sed '/^-- $/,$d' | sed '/:$/d' | sed '/^>/d' | tr '\n' ' ' | /usr/bin/head -c 140` -- THE PLEDGE OF ALLEGIANCE DOES NOT END WITH HAIL SATAN Bart chalkboard Ep. 1F16 ____________________________________________________________ procmail mailing list Procmail homepage: http://www.procmail.org/ [email protected] http://mailman.rwth-aachen.de/mailman/listinfo/procmail