Think without some help I can't reach this, We also only want it for learning spam and ham, so badly you can't share your script. But could you share a little how to if you can't share your scripts ? Don't like to spam only a question. So we need to bring up notification events for move from spam to elsewhere. And elsewhere to spam. This should trigger a copy script to specific ham / spam training folder right? The shared link to cyrus documentation looks user specific. MessageMove Important The MessageMove event is an event type not documented in an RFC. { "event": "vnd.cmu.MessageMove", "messages": 2, "modseq": 5, "oldMailboxID": "imap://john@xxxxxxxxxxx@imap.example.org/INBOX;UIDVALIDITY=1424683682", "pid": 7685, "service": "imap", "timestamp": "2015-02-23T14:52:41.676+01:00", "uidnext": 4, "uidset": "3", "uri": "imap://john@xxxxxxxxxxx@imap.example.org/Archive;UIDVALIDITY=1424683684", "user": "john@xxxxxxxxxxx", "vnd.cmu.midset": [ "<4d9618acd0aea6b33683766358351459@xxxxxxxxxxx>" ], "vnd.cmu.oldUidset": "3", "vnd.cmu.sessionId": "imap.example.org-7685-1424699561-1-7444588115769591371", "vnd.cmu.unseenMessages": 0 } So I wish you first a nice Sunday, best regards Am 31.01.21, 13:32 schrieb "Luca Olivetti" <luca@xxxxxxxxx>: El 31/1/21 a les 13:18, David Faller ha escrit: > Could you share your program? No, I cannot, sorry > This would be helpful, the both features you told vnd.cmu.MessageMove and vnd.cmu.MessageCopy should be okay to make a copy to a special directory for learing or not? In my case I determine the message file from the notification then feed it to "sa_learn --spam" (if the destination folder is "spam") or "sa_learn --ham" (if the source folder is "ham") > Will this script work globally or only for special mailboxes / users? It's global and it's for training only (there's no way to have a global sieve script in cyrus). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 ------------------------------------------ Cyrus: Info Permalink: https://cyrus.topicbox.com/groups/info/T4a9f972d95fd358f-M853bc70e6927dc3368289318 Delivery options: https://cyrus.topicbox.com/groups/info/subscription