Files
webmail/components/layout
Linus Rath 0e0d99e7c3 fix: send unified-view archive, move and spam to each message's account
In the unified views, a tag view and an "All folders" search a
selection can span logins and accounts, and message, account and folder
ids repeat across both: Stalwart numbers the accounts and the system
folders of every install alike.

- Archive sent the whole selection through one login into the Archive of
  the selected folder's account, which is a virtual folder there, so the
  own one: messages of a group account or of another login were archived
  by their ids in the own account, where the same ids can name unrelated
  messages, or failed after the own ones had moved. The list dropped
  every selected row either way. Each login and account now archives
  into its own Archive.
- "Move to" and dragging messages applied one folder id to every
  account, so another account's messages landed in whatever folder has
  that id there, and failed moves were dropped from the list anyway.
  Only messages in the folder's own login and account change folders in
  place now; the others take the cross-account move (Email/copy within
  one login, download and import across logins), a single message moved
  with "Move to" or dragged as well.
- A drop goes to the login whose sidebar list shows the folder. It went
  to the first login whose own account id matched the folder's, which
  with two servers that both number the user `e` could be the other one.
- "Spam" did nothing while the app said the messages were marked, and
  "Not spam" failed, because the selected folder is a virtual one there.
  Both now write each message in its own account and move it to that
  account's Junk or Inbox. The spam shortcut in "All Junk" means "Not
  spam", as the toolbar does.
- What could not be archived, moved or marked stays listed and selected,
  and the error says why.
2026-09-26 02:23:28 +02:00
..