Thanks to Philip, and all who responded to my question. Several good
suggestions, the following is my final configuration. I chose to simply
drop the Re:, as it continued to add (and add and add) them to replies.
IE, variable RE works fine, but didn't see a way to filter out Re: if it
occurs anywhere in Subject: other than beginning. Very small deal. BTW,
as someone else asked, where might one look for more information on
Smartlist rc.xx programming? I know, read the source Luke. Other options?
Is a good tutorial on egrep the place to start, and if so, where might one
exist? The man pages (and this list (mostly this list(only this list)))
got me through this one, but would like to be a bit more self-sufficient
next time.
Thanks again for everyones help. I'll leave
testlist(_at_)van(_dot_)inc(_dot_)net
alive for awhile if anyone wants to use it for (guess what) testing.
bob
...in rc.custom, defined
PREPEND = insert_this:
...in rc.submit
# Main header munger for submissions passing through this list.
#SUBJECT=`formail -xSubject:` This works now, but I assume the next
approach saves a shell, so I don't use
this. As several pointed out, (and I
was unaware of), the backticks make a
big difference. :)
regexptail = "[ ]*\/[^ ].*"
# Grab the current Subject: header.
:0
* $ ^Subject:$regexptail
{ SUBJECT = $MATCH }
# Is this a "re:? If so, chop it, but remember that it's there.
:0
* $ SUBJECT ?? ^re:$regexptail
{
RE = "Re: "
SUBJECT = $MATCH
}
# Chop the listname from the subject if it's already there.
:0
* $ SUBJECT ?? ^$PREPEND$regexptail
{ SUBJECT = $MATCH }
:0 wfh
| formail -b -IFrom\ -IReceived: -IReturn-Receipt-To: -IErrors-To: \
-i"Subject: $PREPEND $SUBJECT"\