Bug 86299 - Marking an IMAP message as spam does not re-run the message filters
Summary: Marking an IMAP message as spam does not re-run the message filters
Status: RESOLVED DUPLICATE of bug 59685
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-30 17:46 UTC by Jason Keirstead
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Keirstead 2004-07-30 17:46:09 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

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).


Also, the spam detection does not seem to run against any of my IMAP folders, including the Inbox, but I think this part is covered by bug 73758.
Comment 1 David Faure 2004-08-11 20:10:59 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.

Comment 2 Jason Keirstead 2004-08-11 20:15:50 UTC
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.
Comment 3 David Faure 2004-08-11 20:20:10 UTC
Makes sense, I guess (should all manual status change re-run filters? I wouldn't mind, but...)

Comment 4 Jason Keirstead 2004-08-11 20:38:04 UTC
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.


Comment 5 Andreas Gungl 2004-08-11 21:30:56 UTC
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-----

Comment 6 Jason Keirstead 2004-08-11 22:13:17 UTC
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.

Comment 7 Andreas Gungl 2004-08-11 22:30:35 UTC
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?

Comment 8 Jason Keirstead 2004-08-11 22:38:00 UTC
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.

Comment 9 Andreas Gungl 2004-08-11 22:47:20 UTC
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.

Comment 10 Andreas Gungl 2004-09-24 22:30:26 UTC
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)?
Comment 11 Jason Keirstead 2004-09-26 20:59:09 UTC
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.
Comment 12 Jason Keirstead 2004-09-26 21:03:22 UTC
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?
Comment 13 Andreas Gungl 2004-09-26 21:11:47 UTC
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?
Comment 14 Jason Keirstead 2004-09-27 13:11:04 UTC
This will go away when bug #59685 is fixed

*** This bug has been marked as a duplicate of 59685 ***