On Wed, Feb 14, 2001 at 03:57:17PM -0800, violet@torithoughts.org wrote:
Peter Hartzler wrote:
This recipe adds the listname if the original subject does not begin with the "[listname]" or "Re:". That's it. It doesn't take care of multiple listnames or Re:s in the subject. (Just one example of problems this caused for me: people removing the Re: at the beginning of the line, but not the listname, causing the recipe to add a new "Re: [listame]" in front of the [listname] that was already there. That's just one of many possible subject lines that aren't cleaned up by this recipe.)
I've not used Tim Pierce's recipe, but it doesn't look like it would solve the repeat problem, either. (And I'm told by another SmartList user that it doesn't.)
At this point I don't recall what recipe I brought to the party. Here's what we're using here. (This assumes that a `subject_prepend' variable is defined in rc.custom.) :0f * subject_prepend ?? . * !digest_flag ?? y * $!^Subject:.*\\[${subject_prepend}\\].* * ^Subject:\/.* | formail -I "Subject: [$subject_prepend]$MATCH" This looks for [$subject_prepend] anywhere in the Subject line, not just at the beginning. So the prepended tag doesn't get repeated. It is possible to get Subject: Re: [listname] Re: stuff but not Subject: [listname] Re: [listname] stuff -- Regards, Tim Pierce RootsWeb.com lead system admonsterator and Chief Hacking Officer