----- Original Message ----- From: "Jesse Cablek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 26, 2003 10:51 AM Subject: Re: [sqwebmail] new file proposal
Jesse Guardiani wrote:
Greetings list,
How about in the "MODIFIER" field of your current patch? In addition to a * you can have characters added.. *v would mean what * currently means, AND use vpopmail as the default, *a would use allvirtual as default, just straight v would be different, etc.. or however it's setup. All you need to do is check the modifiers one char at a time to see how to process that specific line.
Also make sure that if someone sets more than one default, then have it just use the first in the list in the given alias/group.
Hmmm... so you're a one-file-only kinda guy too eh? :)
Not neccessarily as long as the one file doesn't become TOO complicated then I'm all for it.
This might work if we use wildcards in the fields as Martin suggested. In that case, the following record:
*:mail.*:*allvirtual
Isn't this what the domain alias lines you implemented handle?
Alias mail.example.com to example.com in the domain list and forget wildcard domains? Or was that functionality removed?
I thought I remember you mentioning something like: 127.0.0.1:example.com:* mail.example.com:example.com:@ mail2.example.com:example.com:@
Or something similar?
Would suggest that we first check for an HTTP_HOST string that includes the substring 'mail.' at the beginning, then remove the 'mail.' substring from the beginning of the HTTP_HOST string, and use the remaining string as our default domain.
Which may not be good, allow the user to decide which part of the host to use, mail.example.com could be a legit domain to accept/check mail for - I had done this having exmaple.com as a virtual domain but mail.example.com as a local domain so that postmaster/etc.. messages get sent to @mail.example.com
[...]
[..]
Also, I'd like to make the '*' modifier mean something different than it currently means. It like to designate it as the 'defaultdomain' modifier and make the '@' symbol the 'hidden field' modifier.
Why? Because I think the behavior of the '@' operator is ALWAYS desirable over the behavior of the current patch's '*' operator.
I think the * as default is a better option. Maybe thie hidden option could even be represented as ! or ^ since aren't those commonly used "not" operators?
/jesse
