I finally got this working, and since the documentation on this feature is so limited I will describe the steps here for dbmail 3.x and message filtering to folders. I might also create a wiki item.
The problem I had was that I needed to create a mailbox in the dbmail_mailboxes table for the user and folder I wanted to route the messages to. In future versions it would be nice if this record automatically gets created if a filter rule is executed and the mailbox folder doesn't already exist. I also had to route the messages in the dbmail_filters mailbox column to JUNK instead of INBOX/JUNK. So in summary here are the steps necessary assuming you have added the user: 1) Create your rule in dbmail_filters. A good one to test easily is: user_id => 2 headername => subject headervalue => test mailbox => JUNK 2) Either create a JUNK mailbox utilizing your IMAP client for the user you want to test the rule with or insert a record in dbmail_mailboxes like so: owner_idnr => ID OF USER name => JUNK permission => 2 You can leave the other columns as 0, seq has some random number which I don't really know what it's from but I would leave that empty. Also as of this writing I haven't tested this by just adding a record in the dbmail_mailboxes table, I've only tested after creating a mailbox folder within an IMAP client. Thus if there is any other records in other tables that have to be manipulated I do not know. 3) Send a test message to the dbmail user with just 'test' in the subject, you will see it routed to the JUNK folder. -- View this message in context: http://dbmail.10918.n7.nabble.com/dbmail-filters-not-working-tp31982p31988.html Sent from the dbmail users mailing list archive at Nabble.com. _______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
