-----BEGIN PGP SIGNED MESSAGE-----
Hello Ken & List,
I've finished my work on the vaddaliasdomain() stuff, it now appears
to be working like it should, following another approach than the
the ones I've already pointed out: instead of messing with
users/assign which is close to a nightmare, I decided to simply
create
an domain/aliasdomain file for every domain that got aliases which
vdeldomain() can use to decide whether the domain it currently
operates on is a master or an alias one. If it is a master, it
recursively calls itself until all the aliases are deleted and then
deletes the master domain like it should, if it is invoked on an
aliasdomain, it simply removes it from all the control files
(including aliasdomains, of course ;-). It appears to be working on
my
machine, but I'd very much appreciate any testing and comments as the
code used to decide which aliasdomains need to be deleted isn't
really
what I call optimal but I couldn't come up with a better solution to
parse a file that gets changed DURING the parsing without dynamic
a lot of dynamic memory allocation stuff (easiest thing would have
probably been parsing the whole data into a linked list but this is
pretty error prone) which I refuse to use in C whenever possible.
The attached patch (unified diff) is against 4.10.35 and should be
applied in .. of vpopmail-4.10.35 in order to work automatically
cause
lazy as I am, I simply diff'ed the two dirs ;-)
Best regards,
Gabriel
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i
iQEVAwUBO41JRsZa2WpymlDxAQGq4AgAt/tRT+rPV/UwPDuKVoXTzvvK936eMeAU
WwSf0j5FKLvbGP7wYRFPWGQHVMMHrrDzmIhf5He2FU+jkLPuXd/HXHDkLtXk6pV5
dkqImqqdfl+GiJHVFY5lyNJ5sLmiHScqOIko9GJ2lPJKSv2uZznZC8AJsq5H5I20
6PqsJWM3aTZNfheFivDI3D4/mcTLDI5+bTT9CSoF5kKasqlxKczu0yTLibVIq1Ik
FABezABlrSrfyPUId8adKW18QP+cAhgklL2giXGLoNaQg4rLkTY2WslejKkt0WxP
PGyKcDSR295HDMt/OmSQdxql3gJX1fihUeS8C1weGUMjIQ+qL3dALQ==
=pyzK
-----END PGP SIGNATURE-----
vpopmail.patch