I should have been more specific. For a SmartList managed list
"chanops", I want "[MHops]" inserted at the beginning of the Subject
line of all outgoing mails.
Do I use the rc.custom file in the chanops directory, uncomment
RC_LOCAL_SUBMIT_00, and put a formail recipe in an rc.local.s00 file?
Would it be the same recipe below that I'd insert into the
rc.local.s00 file?
As a neophyte, I much appreciated the detail of your response :)
PW
On Sun, 7 Mar 1999, Christopher Lindsey wrote:
: > How do I insert a [list] tag into the Subject: field ?
:
: Most mailing list software will deal with this stuff for you,
: so this may or may not be relevant. But if you're doing it for
: your own archiving needs or whatever, this recipe should work
: for you:
:
: :0 fhw
: * ^Subject:[ ]\/.*
: | formail -I "Subject: [list] $MATCH"
:
: The brackets after Subject: contain both a space and a tab...
:
: And for a quick breakdown...
:
: :0 fhw means consider the pipe on the action line of
: this recipe to be a filter, only feed the header to
: this filter, and wait for the filter to exit with a
: non-error.
:
: \/ takes anything to the right of itself and puts it into
: $MATCH. So the Subject: regex takes anything after Subject:
: plus a space or tab and puts it into that variable.
:
: formail -I removes a header with that name if it exists,
: then replaces it with the new one. So you're saying
: "remove the old Subject: header and replace it with
: this one"...
:
: Chris
: