Summary: | Marking an IMAP message as spam does not re-run the message filters | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Jason Keirstead <jason> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jason Keirstead
2004-07-30 17:46:09 UTC
On Friday 30 July 2004 17:46, Jason Keirstead wrote:
> When you manually mark a message as "Spam" in an IMAP account, it does not move the message to the folder you specified in the spam filter wizard. Note that in my case the folder to be moved to is also an IMAP folder (Spam).
It's not supposed to do that - marking is only for marking, i.e. changing the status...
You need filters to move mails based on their status.
E.g. I use "mark as spam" from filters, to show the Bayes rating - that's
independent from moving mails.
Ok then, how about this revsion to the bug report: "When you manually mark a message as "Spam" in an IMAP account, it does not re-run the message filters on it". I have all my spam filters set up as per the spam wizard. If I manually mark a message as spam, it should re-run the filters so that SpamAssassin can learn about it, and so that it gets moved to the spam folder. Makes sense, I guess (should all manual status change re-run filters? I wouldn't mind, but...) On August 11, 2004 03:20 pm, David Faure wrote:
> ------- Additional Comments From faure kde org 2004-08-11 20:20 -------
> Makes sense, I guess (should all manual status change re-run filters? I
> wouldn't mind, but...)
I don't know.
Basically what I am looking for is the equivalent of what Mozilla Thunderbird
does when you mark a message as spam, if you have ever used it.
On Mittwoch, 11. August 2004 20:38, Jason Keirstead wrote:
> Basically what I am looking for is the equivalent of what Mozilla
> Thunderbird does when you mark a message as spam, if you have ever used
> it.
Would you mind removing the filters generated by the wizard an run the
wizard again? The wizard can create filter actions (and even toolbar
buttons for them) which allow you to classify messages and moving spam into
a given folder. Precondition is that the anti-spam tool supports bayesian
functionality.
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBGnPLVhjiFd4beU8RAhFpAKDreh/DLhxvX5xUD5aughjHcIT5dwCfa01n
Micd32xPcp0YumG06DYgZK8=
=C/TO
-----END PGP SIGNATURE-----
On August 11, 2004 04:30 pm, Andreas Gungl wrote:
> Would you mind removing the filters generated by the wizard an run the
> wizard again? The wizard can create filter actions (and even toolbar
> buttons for them) which allow you to classify messages and moving spam into
> a given folder. Precondition is that the anti-spam tool supports bayesian
> functionality.
Those filters do exist.
As I said, the bug is that the filters are not re-run when the message is
manually marked as spam. So manually marking a message as spam essentially
does nothing.
On Mittwoch, 11. August 2004 22:13, Jason Keirstead wrote: > On August 11, 2004 04:30 pm, Andreas Gungl wrote: > > Would you mind removing the filters generated by the wizard an run the > > wizard again? The wizard can create filter actions (and even toolbar > > buttons for them) which allow you to classify messages and moving spam > > into a given folder. Precondition is that the anti-spam tool supports > > bayesian functionality. > > Those filters do exist. > > As I said, the bug is that the filters are not re-run when the message is > manually marked as spam. So manually marking a message as spam > essentially does nothing. Well, let's go into detail now. After having run the wizard (and my tool favorite tool is spamassassin) I have 4 filters created. Two are named "Classify as ...". Both of these two filters are added to the "Apply Filter" menu. One can verify it by selecting a message and then looking at the "Message - Apply Filter" submenu. Both of these two filters got an icon in the main toolbar assigned. So, where is the problem except pressing the toolbar button to classify a message as spam? (It's marked as spam, filed into a preselected folder and put into sa-learn by the appropriate filter.) But wait, I'm using local folders. Can you make a test if it works for you in local folders? If it does not, you will have to provide more details about your filter settings and how you created the filters using the wizard. I don't see any other chance to reproduce the behavior. Another hint, did you consider using the filter log viewer (in Tools menu) to trace the processing of your filters? On August 11, 2004 05:30 pm, Andreas Gungl wrote: > So, where is the problem except pressing the toolbar button to classify a > message as spam? The problem is I press it, and it puts the green icon aside the message, and thats it. The message is not moved and I assume it is not learned. > But wait, I'm using local folders. Can you make a test if it works for you > in local folders? It doesnt work for me in local folders either. The "file to folder" filter doesnt seem to work. Also, when I am in editing the filters, none of my IMAP folders are given as "File To" destinations either. This is likely why it s not working, the File ot Folder filter only seem to work local. On Mittwoch, 11. August 2004 22:38, Jason Keirstead wrote: > On August 11, 2004 05:30 pm, Andreas Gungl wrote: > > So, where is the problem except pressing the toolbar button to classify > > a message as spam? > > The problem is I press it, and it puts the green icon aside the message, > and thats it. The message is not moved and I assume it is not learned. > > > But wait, I'm using local folders. Can you make a test if it works for > > you in local folders? > > It doesnt work for me in local folders either. The "file to folder" > filter doesnt seem to work. This is indeed strange. Please try to use the filter log viewer to trace what happens. > Also, when I am in editing the filters, none of my IMAP folders are given > as "File To" destinations either. This is likely why it s not working, > the File ot Folder filter only seem to work local. Please study http://bugs.kde.org/show_bug.cgi?id=59685 and consider voting for it. Again, did you consider using the filter log viewer (in Tools menu) to trace the processing of your filters? Can you send or attach a log for the activation of this certain filter (and where the message is not filtered)? Ok, here is a snippet of the log: [15:57:23] Evaluating filter rules: (match all of the following) "<size>" <greater-or-equal> "0" [15:57:23] 1 = "<size>" <greater-or-equal> "0" ( 430 ) [15:57:23] Filter rules have matched. [15:57:23] Applying filter action: Mark As "P" [15:57:23] Applying filter action: Execute Command "sa-learn -L --spam --no-rebuild --single" [15:57:27] Applying filter action: File into Folder ".1907873827.directory/.mail.directory/Spam" What happens is this: I click the "Spam" filter action button The message disappears for a second. KMail's status thing says it is moving the message. I think "yay, maybe it worked" The message **re-appears* in the original folder, except with the green Spam icon. This sequence is 100% reproduceable for me when I manually mark as spam from any folder. Using KMail from CVS Head built 2 days ago. Then, the message re-appears. PS: I think I found a problem. When I go into the "Configure Filters" editor, the "File Into Folder" thing says "drafts" And I cannot select any of my IMAP account folders at all. File Into Folder does not seem to support IMAP folders? Yes, that's the problem. See http://bugs.kde.org/show_bug.cgi?id=59685 Sorry for this loop, I actually have already pointed to this report. Is it okay to mark this report as duplicate if you can confirm that using a local folder make the filter work correctly? This will go away when bug #59685 is fixed *** This bug has been marked as a duplicate of 59685 *** |