//Author: Aaron Stone// \\ //Date: Nov 26, 2005// //Code: Feb 15, 2006// ====== Address Detail ====== We want to handle this syntax: username+mailbox@domain Using this algorithm: - User-specified (e.g. by command line option to dbmail-smtp or in a Sieve script) non-existant mailboxes are always created. - Non-specified mailboxes go to INBOX, which is created if needed. - Externally specified mailboxes which go to an existing mailbox are respected, while non-existant mailboxes are checked: - If in a list of approved boxes, such as Spam, Drafts, Sent, etc., the box is created. - If not, it goes to INBOX, which is created if needed. Status as of Feb 2006 is that the incoming mail envelopes are checked for a +mailbox spec, except in the case of domain or user catch alls (//should we support this?//), and passed along the delivery chain. When it's time to put the mail into the mailbox, we only test for mailbox existence, else it goes to INBOX (which will be created on the fly, if needed). **TODO: Approved mailboxes list in the new DELIVERY section of dbmail.conf**