procmail
[Top] [All Lists]

Re: stripping the signature from an email

2016-06-01 10:50:22
On Jun 1, 2016, at 9:22 AM, Dale R. Worley 
<worley(_at_)alum(_dot_)mit(_dot_)edu> 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/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>