It was hard to resist saying... "I'll show you mine, if you show me yours."
Yes, I would like to see your methodology for this project. I hate to make
mine available yet, as it is so raw, but many (most) routines are completely
functional. (when ran as the root user). Weekends and evenings are really
the only time I can put into coding though, and this weekend is already under
my wife's complete control.
Dan Liston
mjn wrote:
>
> > Hi. It occurs to me that the creation of a new list,
> > including all the files and email aliases, would be the
> > PERFECT subject for automation by script.
> >
> > Are any available that anyone knows of? I'm trying to learn
> > Perl, so I guess that would be a good project to cut my
> > teeth on, but I'd rather take existing scripts and modify.
>
> I've got one which we use on our site for creating new lists.
>
> Basically i took the list creation script which was included with the
> 1.94.4 RPM and made it do more. Here is a brief bit about what i changed
> in the script:
>
> -I changed the aliases which are added(mostly formatting)
>
> -I made it so the script creates a listname.resend by default...the format
> of this resend file is still unscrutiny based on conversation on this
> list...
>
> -It creates aliases based on whether or not the list is archived or
> digested and not just creating all aliases for you and printing them to
> the screen for a copy/paste.
>
> -The script takes user input rather than just having you edit it and then
> puke out the results. It also does some 'smart' checking for valid email
> addresses...
>
> -It writes directly to your alias file and runs newaliases
>
> -I had some mail functionality, which I believe still resides in comments,
> which would mail the listowner informing them that the list is finished
> but removed it because we found that there was still some changes needed
> in the .config before our very inexperienced list owners got ahold of the
> list.
>
> -I also made it write an alias rather than a .passwd file. We have
> implimented a global password scheme based on conversations which have
> gone on here...Basically there is a global password which worked for all
> list and, rather then creating many files with the same password, I found
> it more expedient to create one file and link to it...simple .dll files.
>
> -I will likely be adding a restrict-post file creation based on Dan
> Liston's emails of the last few days...
>
> -I have a very primative import feature which I am still working on
> perfecting...it currently only works if the import file(newline delimited
> plain-text) is in the same directory as the script is run from. This is
> not part of the current 'release' script(the one we are actually using).
>
> -I've also got a supplimentary script which you can use to mail the list
> owner once configuration is done. Basically it is a nice quick form
> letter generator based on listname, listowner, and hostname; it provides
> some help and information about the list...
>
> The list creation script creates all files and directories needed for a
> list(checking for existing listnames is not yet implimented as my regexp
> skilz are still in their infance)y. I have no clue if it will be easily
> ported to other environments. I think it will but I can only
> speculate...Since nearly everything is assigned by variables, it should go
> just about anywhere...if you've got archives and lists stored in different
> directories (ie something like /majordomo-data/lists and
> /usr/local/ftp/archives) it might not work for you...
>
> If people are interested I may have some anonymous ftp space where I can
> put it up or perhaps some weblinks but it will likely be next Tuesday
> before it happens...vacation is a wonderful thing. If anyone is
> interested I'd love to share this as it is my first big perl script and
> I'd appretiate the feedback...
>
> later
>
> ____________________________
> Mike Neuharth
> ADCS Technology Specialist
> http://www.umn.edu/adcs
>
> E-Mail : mjn@tc.umn.edu
> Page Mail : 6123065932@messaging.sprintpcs.com
> http://nifty.dsl.visi.com/
> ____________________________
References:
|
|