taras at elantech.ru
2006-May-01 22:43 UTC
[Dovecot] mail messages moving between mailfolders
Hello to all! I'm using IMAP-based antispam self-learning. I have a folder "spam" in each Maildir in which I place spam-tagged messages during delivery. If antispam filter makes mistake, user can drag'n'drop message to/from "spam" folder. I running perl-script periodicaly and retrain spam-filter (dSpam). Now I must scan all messages, but it's not a good practice (server load depends from mail volume, not user activity) so I want add a "hook" to IMAP-server, i.e. I want server to report me something like "date: file1 -> file2" via any IPC (socket?) or log file while user moves messages across different mail folders. Overload from antispam retraining will be function from user activity with such feature added. P.S.: Now I'm using courier, but want to try dovecot. Sorry for bad English. With respect, Taras. -- ? ?????????, ?????? ????? "???????" +7 (495) 589 68 81 +7 (926) 575 22 11 http://www.elantech.ru
taras at elantech.ru
2006-May-01 22:54 UTC
[Dovecot] mail messages moving between mailfolders
taras at elantech.ru ?????:> Hello to all! > > I'm using IMAP-based antispam self-learning. I have a folder "spam" in > each Maildir in which I place spam-tagged messages during delivery. If > antispam filter makes mistake, user can drag'n'drop message to/from > "spam" folder. I running perl-script periodicaly and retrain > spam-filter (dSpam). Now I must scan all messages, but it's not a good > practice (server load depends from mail volume, not user activity) so > I want add a "hook" to IMAP-server, i.e. I want server to report me > something like "date: file1 -> file2" via any IPC (socket?) or log > file while user moves messages across different mail folders. Overload > from antispam retraining will be function from user activity with such > feature added. > > P.S.: Now I'm using courier, but want to try dovecot. > > Sorry for bad English. > With respect, Taras. >Sorry, I forget to ask question :) I need recomendations from experienced people about described situation. Is it's good practice practice to add "hook" to IMAP server for reaching user-friendly server-side antispam training? -- ? ?????????, ?????? ????? "???????" +7 (495) 589 68 81 +7 (926) 575 22 11 http://www.elantech.ru
taras at elantech.ru wrote:> Hello to all! > > I'm using IMAP-based antispam self-learning. I have a folder "spam" in > each Maildir in which I place spam-tagged messages during delivery. If > antispam filter makes mistake, user can drag'n'drop message to/from > "spam" folder. I running perl-script periodicaly and retrain spam-filter > (dSpam). Now I must scan all messages, but it's not a good practice > (server load depends from mail volume, not user activity) so I want add > a "hook" to IMAP-server, i.e. I want server to report me something > like "date: file1 -> file2" via any IPC (socket?) or log file while user > moves messages across different mail folders. Overload from antispam > retraining will be function from user activity with such feature added.I've done a similar thing, script filters messages to a "spam" mailbox, users can move/copy messages to "not-a-spam" or "is-a-spam" mailboxes. Script runs several times a day, starts spam learning/unleraning for each message in the respective mailbox and then removes them. HTH, -jkt -- cd /local/pub && more beer > /dev/mouth -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 258 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20060502/a2cf0c23/attachment.bin>