Open Bug 1963746 Opened 22 days ago Updated 1 day ago

There's two implementations of what to do when a message is marked as junk

Categories

(MailNews Core :: General, task)

Tracking

(Not tracked)

ASSIGNED
140 Branch

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

(Keywords: leave-open)

Attachments

(1 file)

While trying to implement a simple button which marks a message as junk and performs the appropriate actions on it, I discovered there's two existing implementations: nsMsgDBView has PerformActionsOnJunkMsgs (which calls nsMsgDBView::DetermineActionsForJunkChange) and junkCommands.js has a function of the same name (calling determineActionsForJunkMsgs). The former has tests, but they could be better. The latter is not tested.

Not only that, but I think they're both overly complicated and would make more sense as a function on nsMsgDBFolder.

This consolidates most of the junk handling code into one place. In part two I'll change the
remaining implementation in nsMsgDBView to use this code too.

Keywords: leave-open
Target Milestone: --- → 140 Branch
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/853c96f5e4d8 part 1 - Move junk handling code into nsMsgDBFolder. r=mkmelin
See Also: → 1967664
See Also: → 1884660
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: