I'm interested in the following feature.

A trigger mechanism for IMAP folders. If a message is moved to folder X, specified (external) command is executed. Likewise when message is moved from folder X. If required, dbmail-imap would give the whole msg to the program executed too.


Example.

Using DSpam antispam software. DSpam learns what is spam and what's not spam from the individual user (and is probably the best antispam solution!). In my implementation, postfix delivers mail to dspam, and dspam to dbmail-smtp. If dspam thinks a message is spam, it delivers directly to a user's spam folder. Usually the user forwards a spam message that passed the filter to a specified email address. Or a message that was categorised incorretly as spam to another email aadress. This, is not user friendly.

An alternative could be a triggering mechanism in dbmail-imap. When an email is moved to folder spam, then the command " | dspamc --user [EMAIL PROTECTED] --class=spam --source error" is executed (the whole email is piped to it). That way, DSpam is told the email is spam. (dspamc is a dspam client, that communicates with the dspam daemon.)

When a message is moved from the spam folder, the same command but with --class=innocent is executed. DSpam relearns the message and now knows, that it's not spam at all.

A more user friendly solution is hard to think of. I understand that moving in dbmail means only changing a number in a table and this would require to "compose" a mail that essentially will be piped, but it's done anyway when a user views an email. I understand that is only possible for IMAP, not POP3.


I'm not a develepor and lack the knowledge to do this, but my users and probably all dbmail-imap+dspam users/admins would really appreciate this. Surely this could be used with other applications too. I understand that it's not too hard to implement, or is it?

Have there been similar feature requests or does anyone have additional ideas about the subject. I would like to add this as a feature request in the dbmail docuwiki, but ask for feedback first.

Thanks,
      Alex

DSpam's homepage, worth checking out: http://dspam.nuclearelephant.com/

Reply via email to