Re: [hypermail] hypermail and majordomo

From: Erik Peterson <epeterson_at_edc.org_at_hypermail-project.org>
Date: Wed, 28 Nov 2001 08:23:42 -0500
Message-ID: <OFB5B06D8E.9083A015-ON85256B12.00479D27_at_edc.org>

I run a large number of Majordomo lists with Hypermail archives. It works really well, and is so far the only thing that I use Hypermail for...

The typical entry in aliases.majordomo would be something like:

testlist: "| /usr/local/majordomo/wrapper resend -l testlist -h mail.mydomain.com testlist-outgoMr993, nobody"

testlist-owner:         owner-testlist
owner-testlist:         me_at_mydomain.com
testlist-outgoMr993:      :include:/usr/local/majordomo/lists/testlist,
testlist-hm
testlist-hm:          "| /usr/local/bin/hypermail -i -u -c
/path/to/website/hypermail/testlist/.hmrc"

The last two entries really are the only important ones for your question. There is a mail alias for "testlist-hm" which simply takes the message when it goes out to the list and drops it into hypermail at the same time. You can also subscribe the "testlist-hm_at_mail.mydomain.com" to the list, but that screws up subscriber counts, etc.

The key parameters are "-i" which means grab the message from standard input and the -u which means update the archive instead of recreating it.

I also wrote a little sed filter which strips off the [listname] subject prefix which many of my lists have. This seems to make the website a little cleaner, since (unlike your inbox), the archive is only about one list...

in a file named ".filt"

s/^Subject:\(.*\)\[.*\]/Subject:\1/

Then my testlist-hm alias becomes:

testlist-hm: "|sed -f /path/to/.filt | /usr/local/bin/hypermail -i -u -c /path/to/website/hypermail/testlist/.hmrc"

I can use the same .filt file for all of my lists with subject prefixes that are in the form: "subject_prefix = [$LIST] " (although it would also strip out [other words] in the middle of the Subject if they were in brackets, but so far that hasn't come up.)

Hope that is somewhat helpful.

Erik

--
Erik Peterson
Education Development Center, Inc.
epeterson_at_edc.org
http://www.edc.org
"Promoting Human Development Through Education Since 1958"



                                                                                                                         
                    Daniel Stenberg                                                                                      
                    <daniel_at_haxx.se>           To:     Mike Hamende <mhamende_at_tsl.state.tx.us>                           
                    Sent by:                   cc:     hypermail_at_rkive.landfield.com                                     
                    owner-hypermail_at_lan        Subject:     Re: [hypermail] hypermail and majordomo                      
                    dfield.com                                                                                           
                                                                                                                         
                                                                                                                         
                    11/28/2001 04:00 AM                                                                                  
                    Please respond to                                                                                    
                    Daniel Stenberg                                                                                      
                                                                                                                         
                                                                                                                         




On Tue, 27 Nov 2001, Mike Hamende wrote:


> Is there a dufus HOWTO for getting hypermail and majordomo to play
> together? Thanks.
I've never seen one. I usually have one 'maildump' account that has a .forward to run hypermail properly, and then I add maildump in the "list-outgoing" alias. -- Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77 ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Wed 28 Nov 2001 03:32:39 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:54 PM GMT GMT