Am 2007-11-28 11:46:21, schrieb Professional Software Engineering:
Pipe your message through a sed rule which removes the footer? Even THAT
will have its issues though, since someone with a line in a quote section
will trip it.
After some experimenting (and tests on 30 messages) I have gotten this:
sed -e 's||^--=20|-- |' -n -e :a -e '/^-- /,$d;P'
But now I am poking around hot to get this into:
:0B
* 1^1 ^.*$
* -1^1 ^$
{ LOG="" }
BLINES="$="
mabe with:
:0B
* 1^1 `sed -e 's||^--=20|-- |' -n -e :a -e '/^-- /,$d;P'`
* -1^1 `sed -e 's||^--=20|-- |' -n -e :a -e '/^-- /,$d;P' |grep '^$`
{ LOG="" }
BLINES="$="
or better
MSG=`formail -I "" |sed -e 's||^--=20|-- |' -n -e :a -e '/^-- /,$d;P'`
:0
* 1^1 `echo -e "${MSG}"`
* -1^1 `echo -e "${MSG}" |grep '^$`
{ LOG="" }
BLINES="$="
what do you think?
Thanks, Greetings and nice Day
Michelle Konzack
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
____________________________________________________________
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