Closed Bug 426950 Opened 17 years ago Closed 3 years ago

Junk mail controls not run on Place a Copy In -> Other folder even when not saving sent mail

Categories

(MailNews Core :: Filters, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 389098

People

(Reporter: erin, Unassigned)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080208 Fedora/2.0.0.12-1.fc8 Firefox/2.0.0.12 Build Identifier: 2.0.0.12 20080226 I have tested this and confirmed that this is the case in my 2.0.0.12 TB: Even if the "Place a copy in" checkbox under Preferences -> Account -> Copies & Folders is unchecked (ie, no sent mail saved), junk mail controls do not run on the selected folder, even though it is greyed out, indicating that it is not a sent mail folder. Reproducible: Always Steps to Reproduce: 1. In Account Settings -> Account -> Copies and Folders, with the "Place a copy in" checkbox checked, select the "Other" radio button and choose a folder which accumulates lots of spam. 2. Uncheck the "Place a copy in" checkbox. The "Other" radio button will still be selected, but it and the folder drop down box will be greyed out. 3. Even though no sent mail is being saved in the folder, junk mail controls will not run on that folder. Actual Results: Junk mail controls are not run on the selected folder, even though that folder is not set as a sent mail folder. Expected Results: Junk mail controls should run. TB should check not only if the folder is selected, but also if the "Place a copy in" checkbox is checked.
Version: unspecified → 2.0
Confirmed by me in bug 329569 comment 35.
Status: UNCONFIRMED → NEW
Component: Preferences → MailNews: Filters
Ever confirmed: true
OS: Linux → All
Product: Thunderbird → Core
Hardware: PC → All
Version: 2.0 → Trunk
QA Contact: preferences → filters
Product: Core → MailNews Core
While doing final checks for bug 198100, I encountered an issue that might be the same as this bug. STR: 1) Create a filter on an IMAP server that moves a message to a local folder. 2) enable junk processing on the local server. 3) send a spam message to the IMAP server. Expected results: junk processing runs on the local message after it reaches the folder. Actual results: junk processing does not run. I traced this, and CallFilterPlugins is being called on the local folder, but there are no new messages. When the new database header is being created for the new local message, the flags it is seeing are for the moved and deleted IMAP message - which does not have the NEW flag set.
This solves my current symptoms. I need to see if it solves the original STR of this bug. IMAP was sending \SEEN \DELETED flags to the server for the moved message before the local message header was created. When the IMAP response was received, the IMAP protocol then set the READ flag on the old message header, which was preventing it from being added to the new list, which prevented spam processing from being run on it.
Assignee: nobody → kent
Status: NEW → ASSIGNED
Hi, this sounds like the problems I have reported in #389098 and #389096. What do you think?! Ingo F
(In reply to comment #4) > this sounds like the problems I have reported in #389098 and #389096. Yes, I think you are right. Rereading this bug with more time on my hands (unlike last night when I just wanted to dump my new problem somewhere) I think it is closer to bug 389098 - though bug 329569 comment 29 by you is the clearest description. I'll continue my work under bug 389098 (even though the definition of that bug has drifted awasy from the STR in bug 329569 comment 29).
Assignee: kent → nobody
Status: ASSIGNED → NEW
So is this a duplicate of any of those bugs? What to do with the patch here?
(In reply to :aceman from comment #6) > So is this a duplicate of any of those bugs? What to do with the patch here? obsolete? how does this relate to bug 339931? (ref rkent's bug 339931 comment 9)
Depends on: 389098
Flags: needinfo?(acelists)
Erin, what is the icon on the folder chosen in step 1 that is not running junk controls? I've noticed that when you had a folder being the target for Junk or Sent and you disable the option ("run junk mail controls" or "Place a copy in" checkbox) the folder that was the last target does not loose its special icon. Presumably it also keeps the special folder flag (nsMsgFolderFlags::Archive | nsMsgFolderFlags::SentMail | nsMsgFolderFlags::Junk) So maybe when junk processing encounters this SentMail flag on the folder it skips it as described in comment 0.
Flags: needinfo?(acelists) → needinfo?(erin)
"run junk mail controls" checkbox should have been "move new junk messages to". It is as if the code here: http://mxr.mozilla.org/comm-central/source/mailnews/base/src/nsSpamSettings.cpp#431 Does not clear the flag if no new target folder is set. Something similar may happen for the Sent folder.
(In reply to :aceman from comment #8) > Erin, what is the icon on the folder chosen in step 1 that is not running > junk controls? Sorry, I don't know. I haven't used Thunderbird in forever.
Flags: needinfo?(erin)
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 3 years ago
Duplicate of bug: 389098
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: