Re: Subject line

Donald MacDougall <[email protected]>
Newsgroups gmane.mail.smartlist.user
Message-ID <[email protected]>
On Thu, Feb 13, 2003 at 08:53:04PM -0500, KHIMAIRA ~ Linda Campbell wrote:
> 
> I have looked through the FAQs and can't seem to find a way to add some
> designated text to the subject line for list mail.  It would be a great help
> to our clients who want to identify their lists with some text.  Can someone
> please point me in the right direction?
> 
It's documented somewhere but it isn't easy to find.  What I do is
this.

Add to the file rc.local.s20 the following recipe:

   SUBJ=`formail -zx Subject:`   # extract the subject
   :0 fw
   * !  Subject:.*\[list name\]
   * !  Subject:.Re: \[list name\] *
   | formail -I "Subject: [list name] $SUBJ"

Then uncomment the line near the endo of rc.custom that says:

  RC_LOCAL_SUBMIT_20	= rc.local.s20

Now I'll be the first to tell you that this isn't perfect, because
sometimes peoples "Re:" prefixes on their replies are a little
different than this expects or the list is carboned on a message to
some other list or some such thing so that the subject line looks a
little different and so you occasionally get message that have a
subject line like "Re; [list name] RE: [list name] or whatever. 
But in my experience it doesn't happen too often.  You might find
differently however.  I keep meaning to fancy it up a bit to try to
catch some of those anomalies, and in fact I've seen one or two
slick recipes somewhere to do just that, but lethargy prevails.

There are those on this list who will argue strenuously that you
oughtn't to do this at all, but many like it and so there you are.

Don MacDougall
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.