Great Circle Associates Majordomo-Users
(November 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Auto-numbering messages
From: "Mats Wichmann (mipsABI Consultant)" <mats @ questa . esd . sgi . com>
Date: Mon, 7 Nov 1994 10:34:59 -0800
To: majordomo-users @ GreatCircle . com
In-reply-to: plate@dicomed.com (Doug Plate) "Re: Auto-numbering messages" (Nov 7, 9:50)
References: <m0r4WIM-0003SWC@cdsmn>

> >I'm a newbie to Majordomo and also to Perl more or less. I've set up a
> >mailing list and would like to automatically number messages sent via the
> >list. The number would be prepended to the subject line. The main purpose
> >of this is to allow subscribers to know if they've missed a message and
> >also to allow accurate referencing of the mail messages.

> I had written something similar for archiving messages into separate, numbered
> files.  I adapted a chunk of that code to act as a subroutine within RESEND.
> 
> Let me state that I adapted this to work with the 1.62 RESEND, and I 
> haven't even seen the RESEND from 1.92.  However, unless it's vastly different,
> it should be easy enough to plug this in.  I have to make a standard disclaimer
> that if you try this and something bad happens, it's not my fault!
> 
> As always with perl, there's more than one way to do it.  This method let's
> the shell and 'sed' do the substitution work.  The first version I did opened
> yet another tmp file and processed the text again, but I thought that 3 tmp
> files was just a bit too much.  I don't know which method would be faster or
> more efficient overall.  The most important consideration was WHEN to add the
> number, since you probably don't want to add sequence numbers to messages
> that will end up getting bounced.  
> 
> One last word regarding implementation: This should probably have a command 
> line switch or some other configuration method so that you can turn it on and 
> off per list.  That's left as an exercise for the reader :-).

I did an implementation for 1.62 a ways back, which looks conceptually
similar to the one mentioned above.  When I looked at 1.92, the same
scheme didn't look applicable at all; so I've done a new version which
uses the config file to store the sequence number; I don't claim it's
polished or anything, and I didn't want to work too hard on it with
(appearently) impending new versions of Majordomo, but I'm happy
to share it if anyone's interested.  Ultimately, it ought to be
fully integrated with the mechnanism that does token expansion (and
in fact I've tacked it on in that area), but that's for sometime
in the future...

-- mats


References:
Indexed By Date Previous: Re: Auto-numbering messages
From: plate@dicomed.com (Doug Plate)
Next: Majordomo vs VMS
From: r.street@auckland.ac.nz (Russell Street)
Indexed By Thread Previous: Re: Auto-numbering messages
From: plate@dicomed.com (Doug Plate)
Next: Headers
From: vick@Onramp.NET (Bill Vick)

Google
 
Search Internet Search www.greatcircle.com