Upgrading conf file
Patterson S.R.
S.R.Patterson at SOTON.AC.UK
Wed Oct 9 11:32:43 IST 2002
Find attached a quick perl script which (I think!) works the way you might
want.
I've done some testing and it looks ok to me, but you might want to try it
out on a few subtley different config files before trusting it.
Don't even mention the state of my perl. ;)
Cheers, Steve
--
Steven Patterson MSci OCP. Tel: +44 (0)2380 595810
Primary Information Services Support and Development
Information Systems Services, University of Southampton, UK.
Public PGP Key: http://www.soton.ac.uk/~srp/pubkey.asc
> -----Original Message-----
> From: Julian Field [mailto:mailscanner at ECS.SOTON.AC.UK]
> Sent: 08 October 2002 17:52
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Upgrading conf file
>
>
> It's generally acknowledged by everyone that copying over all your old
> settings into a new mailscanner.conf file is a pain to do.
> The alternative
> is that you have to accept that you will be using my default
> values for any
> new configuration options.
>
> So, does someone fancy writing a script to automate it?
>
> The spec goes something like this:
>
> Run through the old config file, remembering all the settings.
> Then run through the new one, over-writing the setting for
> every variable
> that is in the new file too.
> If there are any old variables left over at the end, they must have
> disappeared from the config file format, so tell the user
> they have gone.
> Also worth telling the user what the new variables were (i.e.
> the ones it
> couldn't find previous values for).
>
> Any volunteers?
> Anyone care to volunteer one of their students?
> It could even be set as a coursework assignment for a systems admin or
> programming course of some sort.
> --
> Julian Field Teaching Systems Manager
> jkf at ecs.soton.ac.uk Dept. of Electronics & Computer Science
> Tel. 023 8059 2817 University of Southampton
> Southampton SO17 1BJ
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newconfig.pl
Type: application/octet-stream
Size: 4731 bytes
Desc: newconfig.pl
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20021009/775c39a6/newconfig.obj
More information about the MailScanner
mailing list