mox/http
Mechiel Lukkien 141637df43
when creating a mailbox subscription, don't just try to insert a record into the database and handle bstore.ErrUnique, the transaction will have been marked as botched
behaviour around failing DB calls that change data (insert/update) was changed
in bstore quite some time ago. the tx state in bstore would become inconsistent
when one or more (possibly unique) indexes had been modified, but then an
ErrUnique would occur for the next index. bstore doesn't know how to roll back
the partial changes during a transaction, so it marks the tx as botched and
refuses further operations. so, we cannot just try to insert, wait for a
possible ErrUnique, but then still try to continue with the transaction.
instead, we check if the record exists and only insert it if we couldn't find
it.

found while working on webmail.
2023-08-01 10:14:02 +02:00
..
account.go move "link or copy" functionality to moxio 2023-07-23 12:15:29 +02:00
account.html the mbox export also contains all message flags, so fix the text along the export links 2023-03-29 21:21:43 +02:00
account_test.go add condstore & qresync imap extensions 2023-07-24 21:25:50 +02:00
accountapi.json make http(s) path for serving the account and admin pages configurable 2023-03-12 11:52:15 +01:00
admin.go in domain dnscheck, also check for hostname of mail server resolving to a loopback ip 2023-07-24 09:23:41 +02:00
admin.html new feature: when delivering messages from the queue, make it possible to use a "transport" 2023-06-16 18:57:05 +02:00
admin_test.go implement storing non-system/well-known flags (keywords) for messages and mailboxes, with imap 2023-06-24 00:24:43 +02:00
adminapi.json in DSNs, add a References header pointing to the message with deliverability issues 2023-07-23 17:56:39 +02:00
autoconf.go make it easier to run with existing webserver 2023-03-04 00:49:02 +01:00
autoconf_test.go mox! 2023-01-30 14:27:06 +01:00
import.go when creating a mailbox subscription, don't just try to insert a record into the database and handle bstore.ErrUnique, the transaction will have been marked as botched 2023-08-01 10:14:02 +02:00
mtasts.go add basic webserver that can do most of what i need 2023-02-28 22:19:24 +01:00
mtasts_test.go mox! 2023-01-30 14:27:06 +01:00
web.go fix progress reporting during import through the accounts web page 2023-07-05 12:54:24 +02:00
web_test.go unbreak the subcommands that talk to the mox instance of the ctl socket 2023-06-16 13:27:27 +02:00
webserver.go in websocket data copying code, wait for other goroutine to stop before changing the connection 2023-06-24 00:14:14 +02:00
webserver_test.go unbreak the subcommands that talk to the mox instance of the ctl socket 2023-06-16 13:27:27 +02:00