Paul J Stevens wrote:
Whichever, through a build-in or external facility: it should be done
right in the end and should therefore adher to dbmail's inherently
distributed nature. (read: minimal filesystem dependancies)
Once 2.0 is officially released, then any changes to the DB structure
mandate a 2.1 version fork in my view. If auto-reply is a significantly
important feature for the users, then the changes should probably be
agreed upon and made now before the official 2.0 release, even if the
code above the database is skeletal or even downright buggy in 2.0. My
opinion.
I think auto-replies should depend on the recipient address, and not
be linked to a mailbox at all. That is how vacation works, and that is
how I've setup my script.
OK, that makes sense. So how about this then?
alter table auto_replies drop column user_idnr;
alter table auto_replies add column flags set ('active') not null
default '' after auto_reply_idnr;
alter table aliases add column auto_reply_idnr not null default 0 after
client_idnr;
As for the other features in your script that use "repeating items",
such as ignoring certain senders, that would of course have to go either
in the dbmail config file as a delimited list or in accessory tables.
This, however, could probably be put off until 2.1 more easily, since
one could always configure a "mailing list only" alias and never have an
auto-reply activated for that address.
--
Will Berry
Co-founder, Second Brain website hosting
http://www.secondbrainhosting.com/