Open Bug 189951 Opened 23 years ago Updated 3 years ago

[imap] preserve "junkscoreorigin" attribute

Categories

(MailNews Core :: Backend, defect)

x86
Windows 2000
defect

Tracking

(Not tracked)

People

(Reporter: sspitzer, Unassigned)

References

Details

in nsImapMailFolder::HandleCustomFlags() we are assuming that the origin of the junk status is from the plugin. we assume the message was moved to the folder by the plugin, so when we open the dest folder and see the message, we set the junkscoreorigin attribute to be "plugin". here's a scenario where our assumption is wrong: the user manually set the status (to be junk or not junk) and then moves the message. when we open the dest folder, we'll restore the junkscore properly, but set the junkscoreorigin to plugin, when it should be user. notes: [1] the junkscoreorigin attribute is used to determine what the plugin does if we reclassify. (if from user, on re-classify we have to update both tables, on plugin, just one.) [2] I claim our assumption is ok (for now) because if the user manually sets the classification, they are less likely to re-classify again. and if they don't reclassify, it doesn't matter if the origin is wrong. , I claim our assumption is this is
", I claim our assumption is this is", ignore that cruft. david is going to #if 0 out the code that sets the junkscoreorigin, since if we don't set it, the code in nsMsgDBView::SetJunkScoreByIndex() will treat it the same as if it was "plugin". but the bug is still valid, since we should figure out how to preserve this. but I doubt we'll do that any time soon.
Target Milestone: --- → Future
Product: MailNews → Core
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Filter on "Nobody_NScomTLD_20080620"
QA Contact: esther → backend
Product: Core → MailNews Core
Status: NEW → ASSIGNED
rkent, did you intend to assign this to yourself on 2008-08-07 ?
Status: ASSIGNED → NEW
I'm not sure what I had in mind, actually. I've done a lot of work with junkscoreorigin, but I am not convinced that preserving it is critical. Occasionally miscategorizing a previous training is not a very serious error.
Severity: normal → minor
Target Milestone: Future → ---
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.