Matthias Fechner
2019-May-10 08:34 UTC
IMAPSieve message marked as HAM should go through full sieve script of user
Dear all, I use the IMAPSieve implementation described here: https://wiki.dovecot.org/HowTo/AntispamWithSieve It is working really great! Thanks a lot for this. The problem I have now is: A message was by accident marked by rspamd as spam, so a false-positive and is moved to the Junk folder. If I click in my email program now on `Not Spam` it is learn as HAM but moved to the INBOX. I would like that the email is not moved to INBOX but it should be moved through the sieve script of the user again, as it is a new email. Currently I have to mark all false-positives as not spam and have then to manually move it to the correct subfolder which is a bit annoying. Is this possible? Thanks a lot! -- Gru? Matthias
Shawn Heisey
2019-May-10 13:33 UTC
IMAPSieve message marked as HAM should go through full sieve script of user
On 5/10/2019 2:34 AM, Matthias Fechner via dovecot wrote:> The problem I have now is: > A message was by accident marked by rspamd as spam, so a false-positive > and is moved to the Junk folder. > If I click in my email program now on `Not Spam` it is learn as HAM but > moved to the INBOX. > I would like that the email is not moved to INBOX but it should be moved > through the sieve script of the user again, as it is a new email.Chances are that it is your mail client doing the move -- directly, not as a message delivery. If your connection is IMAP, then the move would be done through that protocol. To get the message to go through your sieve script again would require delivering it as a new message to Dovecot's LDA, and that's probably not something your mail client can do. Thanks, Shawn
@lbutlr
2019-May-10 19:23 UTC
IMAPSieve message marked as HAM should go through full sieve script of user
On 10 May 2019, at 02:34, Matthias Fechner via dovecot <dovecot at dovecot.org> wrote:> If I click in my email program now on `Not Spam` it is learn as HAM but moved to the INBOX. > I would like that the email is not moved to INBOX but it should be moved through the sieve script of the user again, as it is a new email.I think the way to do this would be for you to move the mail (after it gets moved to the INBOX) not a specific folder that sieve is watching and triggering that to run the scripts you want to ruin. You cannot treat an existing mail as a new mail as far as I know. -- 'There's Mr Dibbler.' 'What's he selling this time?' 'I don't think he's trying to sell anything, Mr Poons.' 'It's that bad? Then we're probably in lots of trouble.' --Reaper Man
Aki Tuomi
2019-May-10 19:27 UTC
IMAPSieve message marked as HAM should go through full sieve script of user
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> <br> </div> <blockquote type="cite"> <div> On 10 May 2019 22:23 @lbutlr via dovecot < <a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> On 10 May 2019, at 02:34, Matthias Fechner via dovecot < <a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote: </div> <blockquote type="cite"> <div> If I click in my email program now on `Not Spam` it is learn as HAM but moved to the INBOX. </div> <div> I would like that the email is not moved to INBOX but it should be moved through the sieve script of the user again, as it is a new email. </div> </blockquote> <div> I think the way to do this would be for you to move the mail (after it gets moved to the INBOX) not a specific folder that sieve is watching and triggering that to run the scripts you want to ruin. </div> <div> <br> </div> <div> You cannot treat an existing mail as a new mail as far as I know. </div> <div> <br> </div> <div> <br> </div> <div> -- </div> <div> 'There's Mr Dibbler.' 'What's he selling this time?' 'I don't think he's </div> <div> trying to sell anything, Mr Poons.' 'It's that bad? Then we're probably </div> <div> in lots of trouble.' --Reaper Man </div> </blockquote> <div> With 2.3 you could use </div> <div> <br> </div> <div> <a href="https://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/IMAPFilterSieve">https://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/IMAPFilterSieve</a> </div> <div> <br> </div> <div> to refilter mail. </div> <div> <br> </div> <div> Aki Tuomi </div> </body> </html>
Apparently Analagous Threads
- IMAPSieve message marked as HAM should go through full sieve script of user
- Learning ham/spam with IMAPSieve: sa-learn-ham.sh terminated abnormally, signal 11
- Learning ham/spam with IMAPSieve: sa-learn-ham.sh terminated abnormally, signal 11
- Learning ham/spam with IMAPSieve: sa-learn-ham.sh terminated abnormally, signal 11
- Learning ham/spam with IMAPSieve: sa-learn-ham.sh terminated abnormally, signal 11