Great Circle Associates Majordomo-Users
(September 1999)
 

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

Subject: Re: two list files
From: Stuart Yusem <yusem @ slip-3 . slip . net>
Date: Tue, 21 Sep 1999 15:11:56 -0700 (PDT)
To: Kitty . Smith @ wichita . edu
Cc: majordomo-users @ GreatCircle . COM
In-reply-to: <OF3E348C7C.7E43C0AD-ON862567F3.0050F8F5@uc.twsu.edu>

I am not at all familiar with the MD list file formats. And I have not
even installed MD yet.
BUT, I think that I have a solution for you.
Have two email address extract files -  called yesterday and today.  The
today file is the latest HR extract list and the yesterday file is the one
from yesterday (duh !).
Then diff the two files and use grep awk or perl to pull out two small
lists - one of additions and the other of deletions - based on the first
character being a '<' or a '>'.  Then feed these two files to an awk or
perl script to generate two command files which would subscribe or
unsubscribe the new / old address via email commands to MD. Then move the
today file to be the yesterday file.
I could dig up some old scripts which do this sort of thing (if a very
different context), if you want.

Let me know if this helps.

Stuart

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
| Stuart Yusem                                        |
| Software Configuration Management / Tools Engineer  |
| Centigram Communications Corporation                |
| 91 East Tasman Drive             Voice 408-432-2735 |
| San Jose, CA.  95134              FAX  408-428-3827 |
| Email Stuart.Yusem@Centigram.com  Cell 408-829-4391 |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+



On Tue, 21 Sep 1999 Kitty.Smith@wichita.edu wrote:

> I am running Majordomo 1.94.4 on AIX 4.3.2.  I have setup a list that has
> the membership refreshed everyday from our Human Resources database, which
> is downloaded to our server each morning.  I wrote a little perl script to
> extract the email addresses of all faculty and staff from this HR file.  I
> have been requested to open up subscription to this mailing list to the
> public while maintaining the most current email addresses for faculty and
> staff.
> 
> My first thought was to have two files in the outgoing line of the aliases
> file.  One that functions in the normal fashion, while the other is
> recreated each day.  I attempted to just add the path to the second file to
> the list-outgoing line, but it did not work.
> 
>      test-outgoing::include:/home/majordomo/lists/test1,
> /home/majordomo/lists/test2,
>      "|/home/majordomo/wrapper archive2.pl -a -M -f
> /home/majordomo/lists/archive/test/test
> 
> Could someone give me a clue how to approach this task?  Thanks so much.
> 
> Kitty Smith
> Technical Support Analyst
> Wichita State University





References:
Indexed By Date Previous: subscribe command rejected
From: "arnie edeson" <bcghr@hotmail.com>
Next: mail loops
From: "Harvey S. Frey M.D. Ph.D." <hsfrey@ucla.edu>
Indexed By Thread Previous: Re: two list files
From: Rick Green <rtg@mich.com>
Next: Re: two list files
From: Kitty.Smith@wichita.edu

Google
 
Search Internet Search www.greatcircle.com