Bug 727001

Summary: Can't get the junk filter to be disabled
Product: [Fedora] Fedora Reporter: Justin Albstmeijer <justin>
Component: evolutionAssignee: Matthew Barnes <mbarnes>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: lucilanga, mbarnes, mcrha
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-08 06:09:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Justin Albstmeijer 2011-07-31 23:12:36 UTC
Description of problem:
I expect to be able to disable the junk filter option completely.
But with all junk filter settings disabled evolution still moves messages in to the junk folder. 

Version-Release number of selected component (if applicable):

evolution-3.0.2-3

How reproducible:

Very easy, if you have a junk message in the junk folder and you try to move it back to it's original folder, new copy will appear in the junk folder. 

Steps to Reproduce:
1. Disable all junk filter options, restart evolution (reboot to be sure)

(edit-preferences-mail accounts-receiving options)

All junk options disabled:
Apply filters to new messages in Inbox in this server
Check new messages for junk contents

(edit-preferences-mail preferences-Junk)

All junk options disabled:
Check incoming messages for junk
Delete junk messages on exit
Check custom headers fro junk
Default junk plugin (No junk plugin available)

2. open imap mail folders, or move a already detected junk message to a imap mail folder
3. see junk mail being detected and moved to the junk folder
  
Actual results:

Junk mail gets detected and moved to the junk folder.

Expected results:

No evolution junk checks should take place.

Additional info:

Using Cyrus as imap server.
It does already all the filtering for me.
Evolution junk filtering just generates too much false positives for me.

Comment 1 Milan Crha 2011-08-01 06:37:21 UTC
Thanks for a bug report. From the description I have two questions off head:
a) how do you move Junk message out of the folder?
b) what IMAP provider do you use? (is it IMAP or IMAP+)

The reason for a) it that the Junk folder is a virtual folder, which basically gathers all message *marked* as junk from all folders into one folder. Thus if you, for example, drag&drop such message to a different folder, then this message is still marked as junk, and thus will be shown in the Junk folder. The correct way to move messages out of the Junk folder is to marked them as "Not Junk", for which is there a toolbar button beside the "Mark as Junk" button.

The reason for b) is that there was an issue with IMAP+ which failed to store Junk flags properly, though it was usually opposite issue, newly marked messages as Junk were "forgotten" after certain action in the Evolution.

Comment 2 Justin Albstmeijer 2011-08-01 09:16:37 UTC
Thanks for your reply.

> a) how do you move Junk message out of the folder?

Drag and drop. I get duplicate messages in the Junk folder than.
I did not realize it was a vfolder so it actually does not move anything away from the original folder.

In that case the impact is not that high, but it would still be nice If I could disable it completely.

> b) what IMAP provider do you use? (is it IMAP or IMAP+)what IMAP provider do you use? (is it IMAP or IMAP+)

Now IMAP (as I was missing quota support in IMAP+) and IMAP+.
I think I had the same behaviour with IMAP+

Comment 3 Milan Crha 2011-08-01 14:27:51 UTC
Do you have newly received messages "sometimes" marked as Junk messages too? I'm not sure from the above text, thus I'm asking, because if so, then I agree that there something not working correctly, because as soon as you set your mail account to not check for junk messages (and unfortunately after evolution's restart, as it doesn't update internal objects properly after any account change), then you might not have messages marked as junk on its own, especially if you are using only one client to access you mail box. Evolution is using a user tag on a message, thus if other client or server spam filtering is setting this tag on the message, then it's recognized by evolution and the message is shown in the Junk folder. The virtual Junk folder has a special icon in the folder tree, but I believe we are talking about the same folder.

I have unchecked checking for junk on my IMAP account and it doesn't check for them there.

Comment 4 Justin Albstmeijer 2011-08-01 15:03:29 UTC
> Do you have newly received messages "sometimes" marked as Junk messages too?

No have not seen those yet, its all old mail that end up in the junk vFolder till now. 

> especially if you are using only one client to access you mail box. Evolution
> is using a user tag on a message, thus if other client or server spam filtering
> is setting this tag on the message, then it's recognized by evolution and the
> message is shown in the Junk folder. 

For which message header/flag should I look? (I can grep on the imap server for them)
My imap mailbox is huge and has been handled by many different mail clients in the past.
So maybe you are right and do certain folders in my imap tree contain messages with this flag already set.

Comment 5 Milan Crha 2011-08-03 06:40:49 UTC
It's a "Junk" user tag/flag set on the message. Evolution also uses "NotJunk" flag. This is for IMAP provider, the IMAP+ is using same words, but different letter case. Same is used by Thunderbird, as far as I know.

Being this with old messages, then I believe it's only about using drag&drop from junk doesn't clear the flag. Maybe it should.

Comment 6 Justin Albstmeijer 2011-08-06 00:35:00 UTC
True, now that I understand the 'Junk' folder is virtual there is no urgent need for me to disable it any more as it does not actually move messages to this junk folder.

Not sure if it should clear the junk flag when it is drag&drop from the junk folder to another one.
The default behaviour of a drag&drop from the 'junk' folder seems to be 'copy' instead of move , so you end up with two entries of the same junk message in the junk folder, which might be somewhat confusing.

Thanks for your help, for me this is no 'bug' any more.

Comment 7 Milan Crha 2011-08-08 06:09:02 UTC
OK, thanks, I'm closing this as such.