RE: Failing to archive many messages

2024-05-18 Thread Marc via dovecot
> Today I realized that it was indeed the sa-learn that is slowing down my > Archiving. > > I added an «&» on the end of the line that calls the sa-learn (called by > the report-ham.sieve script): > > exec /usr/bin/sa-learn -u ${1} --ham & > > Does anyone thing this is a bad idea? I noticed tha

Re: Failing to archive many messages

2024-05-18 Thread Francis Augusto Medeiros-Logeay via dovecot
Thanks a lot Marc. I actually found something that works for me: I replaced `sa-learn -u xx --ham` with `spamc -u xx -L ham` Archiving wasn't as fast as simply moving messages, but was considerably faster - fast enough that no errors on Roundcube are reported. Best, Francis --- Francis Augu

Re: Failing to archive many messages

2024-05-18 Thread Francis Augusto Medeiros-Logeay via dovecot
Today I realized that it was indeed the sa-learn that is slowing down my Archiving. I added an «&» on the end of the line that calls the sa-learn (called by the report-ham.sieve script): exec /usr/bin/sa-learn -u ${1} --ham & Does anyone thing this is a bad idea? I noticed that archiving got

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
> On 9 May 2024, at 19:45, dovecot-requ...@dovecot.org wrote: > > Francis Augusto Medeiros-Logeay via dovecot skrev den 2024-05-09 12:29: > >>> If you want to analyze emails, why not do it with scheduled crons >>> after they are archived? > > maybe ask for skip older then one day in here >

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
> On 9 May 2024, at 12:55, dovecot-requ...@dovecot.org wrote: > > Francis Augusto Medeiros-Logeay via dovecot skrev den 2024-05-09 11:28: > >> Actually, I don’t know here if that’s the sieve that’s slowing down the >> process, or if it is something else. >> I see that yeah, sa-learn takes a li

Re: Failing to archive many messages

2024-05-09 Thread Benny Pedersen via dovecot
Francis Augusto Medeiros-Logeay via dovecot skrev den 2024-05-09 12:29: If you want to analyze emails, why not do it with scheduled crons after they are archived? maybe ask for skip older then one day in here https://github.com/isbg/isbg/tree/master while roundcube just set the needed flag

RE: Failing to archive many messages

2024-05-09 Thread Marc via dovecot
> On 2024-05-09 12:03, Marc wrote: > > I see report-ham, instead of archiving? I am not entirely sure if this > > is an efficient approach to archiving. My users can only set a flag for > > 'auto archiving' via sieve and then 3 months after every year messages > > are being moved by cron jobs, and

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
= On 2024-05-09 12:03, Marc wrote: I see report-ham, instead of archiving? I am not entirely sure if this is an efficient approach to archiving. My users can only set a flag for 'auto archiving' via sieve and then 3 months after every year messages are being moved by cron jobs, and modifica

Re: Failing to archive many messages

2024-05-09 Thread Benny Pedersen via dovecot
Francis Augusto Medeiros-Logeay via dovecot skrev den 2024-05-09 11:28: Actually, I don’t know here if that’s the sieve that’s slowing down the process, or if it is something else. I see that yeah, sa-learn takes a little while to execute. But maybe the issue is that Dovecot doesn’t seem to rel

RE: Failing to archive many messages

2024-05-09 Thread Marc via dovecot
I see report-ham, instead of archiving? I am not entirely sure if this is an efficient approach to archiving. My users can only set a flag for 'auto archiving' via sieve and then 3 months after every year messages are being moved by cron jobs, and modification logs are put into their accounts. T

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
> I noticed that my sieve rules are taking a very long time when archiving > messages. I can see on my logs that every message takes about two-three > seconds to be evaluated. > > I also noticed this happens for a few accounts. Do you know what could be > causing this? > > Best, > Francis >

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
I noticed that my sieve rules are taking a very long time when archiving messages. I can see on my logs that every message takes about two-three seconds to be evaluated. My sieve for the Archive is this: cat /var/mail/vmail/mail/sieve/global/report-ham.sieve require ["vnd.dovecot.pipe", "copy"

Re: Failing to archive many messages

2024-05-01 Thread Francis Augusto Medeiros-Logeay via dovecot
It is weird. At first, it seems that the logs are going fine. It goes like this for many minutes: May 01 14:20:04 imap(fran...@mydomain.com)<226>: Debug: Mailbox Archive: UID 25719: Looked up field hdr.IN-REPLY-TO from mail cache May 01 14:20:04 imap(fran...@mydomain.com)<226>: Debug: Mailb

Failing to archive many messages

2024-05-01 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, When I archive one or two messages, the messages are correctly moved to the Archive. However, when I archive more messages - like 50 or more, dovecot seems to fail. The error I get is this one: Warning: Failed to do incremental sync for mailbox Archive, retry with a full sync (Modseq 172