mox/webmail
Mechiel Lukkien 879477a01f
webmail: during "send and archive", don't fail with error message when message that is being responded to is already in archive folder
before this change, when archiving, we would move all messages from the thread
that are in the same mailbox as that of the response message to the archive
mailbox. so if the message that was being responsed to was already in the
archive mailbox, the message would be moved from archive mailbox to archive
mailbox, resulting in an error.

with this change, when archiving, we move the thread messages that are in the
same mailbox as is currently open (independent of the mailbox the message lives
in, a common situation in the threading view). if there is no open mailbox
(search results), we still use the mailbox of the message being responded to as
reference.

with this new approach, we won't get errors moving a message to an archive
mailbox when it's already there. well, you can still get that error, but then
you've got the archive mailbox open, or you're in a search result and
responding to an archived message. the error should at least help understand
that nothing is happening.

we are only moving the messages from one active/reference mailbox because we
don't want to move messages from the thread that are in the Sent mailbox, and
we also don't want to move duplicate messages (cross-posts to mailing lists)
that are in other mailboxes. moving only the messages from the current active
mailbox seems safe, and should do what is what users would expect most of the
time.

for issue #233 by mattfbacon, thanks for reporting!
2024-11-01 09:39:40 +01:00
..
api.go webmail: during "send and archive", don't fail with error message when message that is being responded to is already in archive folder 2024-11-01 09:39:40 +01:00
api.json webmail: during "send and archive", don't fail with error message when message that is being responded to is already in archive folder 2024-11-01 09:39:40 +01:00
api.ts webmail: during "send and archive", don't fail with error message when message that is being responded to is already in archive folder 2024-11-01 09:39:40 +01:00
api_test.go webmail: add setting to show html version of a message by default, instead of text version 2024-08-23 14:02:55 +02:00
eventwriter.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00
lib.ts webmail: ensure white background when viewing attachments, for the black text of plain text attachments 2024-06-10 20:11:26 +02:00
message.go webmail: fix loading a "view" (messages in a mailbox) when the "initial" message cannot be parsed 2024-10-05 09:50:40 +02:00
message_test.go webmail: recognize multiple urls in List-Post addresses 2024-04-16 20:26:37 +02:00
msg.html don't prevent the html pages to load a favicon, and provide one by default 2024-07-08 21:58:10 +02:00
msg.js webmail: during "send and archive", don't fail with error message when message that is being responded to is already in archive folder 2024-11-01 09:39:40 +01:00
msg.ts webmail: when opening message in new tab, set document title to subject, message from address(es) and id of message 2024-05-09 21:19:58 +02:00
text.html don't prevent the html pages to load a favicon, and provide one by default 2024-07-08 21:58:10 +02:00
text.js webmail: during "send and archive", don't fail with error message when message that is being responded to is already in archive folder 2024-11-01 09:39:40 +01:00
text.ts webmail: change many inline styles to using css classes, and add dark mode 2024-05-06 09:13:50 +02:00
view.go webmail: fix loading a "view" (messages in a mailbox) when the "initial" message cannot be parsed 2024-10-05 09:50:40 +02:00
view_test.go webmail: rename query string param "token" to "singleUseToken" to be less scary in access logs 2024-08-23 15:08:27 +02:00
webmail.go add subcommand that prints licenses, and link to licenses from the webadmin/webaccount/webmail interfaces 2024-10-04 09:31:31 +02:00
webmail.html don't prevent the html pages to load a favicon, and provide one by default 2024-07-08 21:58:10 +02:00
webmail.js webmail: during "send and archive", don't fail with error message when message that is being responded to is already in archive folder 2024-11-01 09:39:40 +01:00
webmail.ts webmail: during "send and archive", don't fail with error message when message that is being responded to is already in archive folder 2024-11-01 09:39:40 +01:00
webmail_test.go webmail: add export functionality 2024-04-22 13:41:40 +02:00