Attached is a patch to sort.c to make sorting configurable. If sortdriver in dbmail.conf is given a value, the sorting module is called.
As I read from the code, a sorting module should return the mailbox, and user in which the email should be inserted. But how should it behave if it must deliver to more than 1 mailbox? i.e. a rule setup by a user matches, and the user configured to let the message process further? /Marc
