Files
webmail/lib/jmap
Linus Rath 1f35ce8b89 fix: archive, move and mark spam in each message's own account again
Follow-up to 0e0d99e7, which sends the batch actions of a unified view,
a tag view or an "All folders" search to each message's own login and
account.

- Batch Archive in a tag view or the default "All folders" search
  failed with "archive mailbox not found", and "Not spam" in a tag view
  entered from Junk with "Inbox not found": the folder lists came from
  a cache only the unified views fill. In the Pro shell the list cached
  under the bare account id could be another server's, so a browsed
  login's messages were archived or deleted into whatever folder has
  the other server's Archive or Deleted Items id. A batch's Archive,
  Inbox and Deleted Items now come from the list cached for its login
  and account, else from that login's own folder list, never from the
  bare account id.
- "Move to" in a list that mixes accounts looked the picked folder up
  in the login browsed before. In the Pro shell, after browsing a
  folder of another login, the active login's mail went to that other
  server. The menus list the active login's folders, so the folder is
  looked up there now.
- Dragging one row moved every listed row with its id, including
  another account's unrelated message. The drop hands the store the
  dragged rows now.
- "Spam" and "Not spam" on a selected id that is not a row of the list,
  such as a member of an expanded thread, wrote to the account the list
  is reached through, where the id can name another message. Such ids
  are looked up among the expanded threads now, and one found nowhere
  is reported and left alone.
- A move sent in batches (500 messages each by default) stopped at a
  refused batch while the list counted the unsent ones as moved. The
  other batches go out, and only what the server left alone stays
  listed.
2026-09-26 04:33:48 +02:00
..