mhonarc-users

Re: Cutting lines (removing signature)

2003-09-16 07:44:20
Jeroen FF Heijmans wrote:
I want to strip the signature (from "-- " till the end) from the
messages. How can this be done?

By using custom filters. For instance, to strip things from plain text
messages, this is what you should do:

- Copy mhtxtplain.pl to for instance my-txtplain.pl

- Add a regular expression to my-txtplain.pl that does what you want. Something like:

    $$data =~ s/^-- \r?\n[\s\S]*//m;

- Tell MHonArc to use my-txtplain.pl instead of mhtxtplain.pl, when
filtering messages, by setting the <MIMEFilters> resource in the
resource file.

More guidance at
http://www.mhonarc.org/MHonArc/doc/resources/mimefilters.html

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-USERS