mhonarc-users

Re: SUBJECTSTRIPCODE and SUBJECREPLYRXP

1999-01-21 10:33:57
---"Frank J. Perricone" <hawthorn(_at_)sover(_dot_)net> wrote:

My list's prefix is [Crossword] so I have this in my rcfile:

<SUBJECTSTRIPCODE>
s/^\[Crossword\]\s*//;
</SUBJECTSTRIPCODE>

This works for a message like

[Crossword] Turn #51a

but fails on

Re: [Crossword] Turn #51a

How about something like:

<SubjectStripCode>
s/^(Re:\s*)?\[Crossword\]\s*/$1/;
</SubjectStripCode>

You can copy from the SUBJECREPLYRXP to be more robust on your match.

Another possible, and quick-n-dirty, solution is:

<SubjectStripCode>
s/\[Crossword\]\s*//;
</SubjectStripCode>

I.e.  Remove the anchor to the beginning of the line.

Note, you can have multiple s/// operations to handle more complicated
tasks.

        --ewh

==
Earl Hood
earlhood(_at_)yahoo(_dot_)com
http://www.oac.uci.edu/indiv/ehood/




_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

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