Closed Bug 1849476 Opened 2 years ago Closed 1 year ago

messages.move/copy() doesn't set mail.last_msg_movecopy_target_uri

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED
137 Branch

People

(Reporter: Fallen, Assigned: john)

Details

Attachments

(1 file)

When using messenger.messages.move(), the Move to "foldername" again menuitem is not updated. Not sure this should always be the case, but when it is a user-initiated move that the extension is executing, this would be useful.

There are discussions about adding undo support as well which also fits the user-initiated case. How about adding a flag to messages.move() to let the developer enable this user-initiated mode, which will handle the move operation identical to a move in the UI?

Any suggestions for the flag name?

Or would you rather suggest dealing with undo and the recent-moves-list separately?

I think the recent moves list should be updated automatically, not a separate function. In terms of the flag name, I'd go with something that describes the function instead of the technical detail, but I'd need to think on it a bit. My gut says userInitiated, and you'd have to consider if the default should be true or false. This would depend on if the most typical use case is user moves, or background moves.

This patch updates the last_msg_movecopy_* preferences, after
move/copy operations, which have been declared as user actions.

Assignee: nobody → john
Status: NEW → ASSIGNED
Attachment #9463983 - Attachment description: Bug 1849476 - make messages.move/copy() set mail.last_msg_movecopy_* preferences. r=#thunderbird-reviewers → Bug 1849476 - Make messages.move/copy() set mail.last_msg_movecopy_* preferences. r=#thunderbird-reviewers

Pushed by john@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/0fbdd3be3231
Make messages.move/copy() set mail.last_msg_movecopy_* preferences. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: