Open Bug 1917827 Opened 3 months ago Updated 3 months ago

Connect messages.move/copy to global (=window) undo

Categories

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

enhancement

Tracking

(Not tracked)

People

(Reporter: buecher, Unassigned)

Details

if a webextension moves or copies messages, it should be possible to undo them using the global undo (ctrl Z).

nsIMsgCopyService allows this, and it seems we only need an optional parameter in webext, namely the window this shold be bound to.

see the idl, last two function parameters:
/**

  • Copies or moves existing messages from source folder to destination folder.
  • @param srcFolder Source folder of an operation.
  • @param messages The array of nsIMsgHdrs in source folder which will be moved/copied.
  • @param dstFolder Destination folder of operation.
  • @param isMove false for copy operation, true for move operation.
  • @param listener Listener which receive operation notifications
  • @param msgWindow Window for notification callbacks, can be null.
  • @param allowUndo Specifies if this operation will be done as an transaction that can be undone.
    */
You need to log in before you can comment on or make changes to this bug.