mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 22:54:38 +03:00
Cleanup temporary files created during IMAP APPEND command.
Since a recent change (likely since implementing MULTIAPPEND), the temporary files weren't removed any more. When changing it, I must have had the wrong mental model about the MessageAdd method, assuming it would remove the temp file. Noticed during tests.
This commit is contained in:
@ -2043,6 +2043,11 @@ type AddOpts struct {
|
||||
|
||||
// MessageAdd delivers a mail message to the account.
|
||||
//
|
||||
// The file is hardlinked or copied, the caller must clean up the original file. If
|
||||
// this call succeeds, but the database transaction with the change can't be
|
||||
// committed, the caller must clean up the delivered message file identified by
|
||||
// m.ID.
|
||||
//
|
||||
// If the message does not fit in the quota, an error with ErrOverQuota is returned
|
||||
// and the mailbox and message are unchanged and the transaction can continue. For
|
||||
// other errors, the caller must abort the transaction.
|
||||
|
Reference in New Issue
Block a user