Summary
Create a new task to apply labels to a message or thread.
Takes an options object of the form:
- folder: The Folder or Folder IDs to move to
- threads: An array of Threads or Thread IDs
- threads: An array of Messages or Message IDs
- undoData: Since changing the folder is a destructive action, undo tasks need to store the configuration of what folders messages were in. When creating an undo task, we fill this parameter with that configuration