At 05:24 PM 2/10/2009, mouss wrote:
You can create "dummy" mailboxes that use the folders as their maildir.
for example:
joe+s...@example.com    /some/path/example.com/joe/Maildir/.Spam/
then tell amavisd-new to add the "+spam" extension to mail tagged as spam.

This may or may not be easy depending on your setup.

This approach can work for any folder as follows. you populate
virtual_mailbox_maps with things like:

joe+fol...@example.com  /some/path/example.com/joe/Maildir/.folder


Man this is clever. Clever enough I'm having a hard time wrapping my head around it.

My sql for determining the mail folder for virtual_mailbox_maps is:
query = SELECT CONCAT(maildir,'Maildir/') FROM mailbox WHERE username='%s' AND active = '1'

While I can readily create a user b...@example.com, who has a default maildir location for that sql of 'example.com/bob/' I can't quite figure out how to change the SQL to get the folder for bob+t...@example.com to return:

'example.com/bob/Maildir/.test' without breaking everything else?

Rick





Reply via email to