Hello,
(keeping the CC list from GingerDog, but please reply to the
mailinglist!)
Am Sonntag, 21. Dezember 2008 schrieb David Goodwin:
> Thanks for the below; if you intend to send any more stuff 'our' way,
> please send to the postfixadmin-devel mailing list.
>
> I'm personally happy to merge the vacation.pl stuff (at least .ini
> file support) but I'm not sure I like the config directory (i'd
> rather config stuff was in /etc/postfixadmin or something .... )
The latest vacation.pl already has support for reading the configuration
from /etc/mail/postfixadmin/vacation.conf. This file has to be in perl
syntax (instead of .ini format), for example
$db_username = 'vacation';
$db_password = 'topsecret';
I'm not sure if switching to INI format is really useful. Yes, it is a
widely known file format, but people who setup a mail server should be
able to write valid perl files ;-)
In the future, I plan to have config files for every script we ship.
This includes also some bash scripts which will have a bash-style
key=value config file since parsing INI files in bash isn't that
easy ;-)
If we really want to have a common config file format for everything,
then I'd vote for using
key=value
key2=another value
files. These are quite easy to parse in perl and can just be source'd in
bash. INI files have the disadvantage that the "header" will cause
problems in bash.
Regards,
Christian Boltz
--
Und allen, die keinen Internetzugang haben bleibt nur übrig, bis zur
nächsten Ausgabe einer PC-Zeitung mit aktuellem Virenscanner zu warten.
[Hitradio AS gibt Tips zur ILOVEYOU-Bekämpfung]
|