Re: Cyrus - Rspamd - Sieve

Vladislav Kurz <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <1692534.1s5CsBViSs@hex>
Hello,

Is it necessary to run the spam learning immediately after the user moves the 
mail to spam/ham folder?

Isn't it enough to find new files in those folders, once (or a few times) a day 
and run sa-learn directly on them?

-- 
Best regards
Vladislav Kurz

Dne neděle 31. ledna 2021 20:35:58 CET, David Faller napsal(a):
> Thanks for your answer,
> The Handling which you mean I undeestand.
> Is there no easier way like to send a copy of moved Mail to a specific
> Mailbox like [email protected]?
> Also for cyrus Notifikation Events there are no templates for orientation
> where to Start.
 So at this point I can't collect needed Information like
> to create a shell script. 
> For a notification event we would also need the response from it and would
> need time to test and collect Informations 
> Cyrus sieve does baldly not support events like on movement to copy.
> 
> We Don't use special hashed spool, we leaved it by default under
> var/lib/spool/cyrus/././
 Also no special character are used, only we use
> "/" aß separator instead a dot in our imap configuration. 
> You said we need to determinate the file  to feed for sa-learn, better would
> be to store These message files to.2 seperated folders  or a seperated imap
> Mailbox for learning.
> So I think in Future there are also no other Plans for cyrus which could
> bring up this easier?
> I would like to try my luck with event notifications
> 
> Over the Event notification we would get the file Name and path as response
> which we can use in a Script for a copy and handling Script?
> A Sample would be really helpful to work with it you know? 
> 
> 
> 
> 
> 
> 
> > Am 31.01.2021 um 14:26 schrieb Luca Olivetti <[email protected]>:
> > 
> > El 31/1/21 a les 14:18, Luca Olivetti ha escrit:
> > 
> > 
> >>>   "oldMailboxID":
> >>>   "imap://[email protected]@imap.example.org/INBOX;UIDVALIDITY=142468368
> >>>   2",
> >> 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-Mc8967e81e4417a05f
> adbdc01 Delivery options:
> https://cyrus.topicbox.com/groups/info/subscription





------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T4a9f972d95fd358f-M9a94930ecdf03b8924a8edb9
Delivery options: https://cyrus.topicbox.com/groups/info/subscription
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.