Re: Cyrus - Rspamd - Sieve

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El 31/1/21 a les 14:18, Luca Olivetti ha escrit:

     "oldMailboxID": "imap://john@xxxxxxxxxxx@imap.example.org/INBOX;UIDVALIDITY=1424683682",

This is the source folder, if it is (e.g.) INBOX.spam, map the uri to the file (combining it with the "uidset" field, which can be a list, so you'll have to iterate over all messages) and pass it to "sa_learn --ham" (since the user is moving  it out of the spam folder).

Note that the file depends on your setup (where the spool is, hashed imap spool or not, etc.).

In my case, the file would be /mnt/lun_correo/spool/j/john/uid.

Other gotchas is the encoding of special chars in mailbox names, etc., I just copied code from imapurl.c.

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-M163867e37e3cb7ad9202faa3
Delivery options: https://cyrus.topicbox.com/groups/info/subscription




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux