diff options
| author | saturneric <[email protected]> | 2026-09-12 23:34:15 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-09-12 23:34:15 +0200 |
| commit | b4d4f4f1670ab049288911c172deeaa94082bf1a (patch) | |
| tree | 45257a76d0b54bb23b5ac1e357a71842fa5b4afd /src/m_email/EMailNetError.cpp | |
| parent | test(email): cover ambiguous SMTP submission outcomes (diff) | |
| download | modules-b4d4f4f1670ab049288911c172deeaa94082bf1a.tar.gz modules-b4d4f4f1670ab049288911c172deeaa94082bf1a.zip | |
fix(email): preserve queued cancellation state
- track cancellations by operation sequence number
- retain stops issued before queued work begins
- add teardown cancellation for all pending operations
- add a dedicated cancelled mail error response
Diffstat (limited to 'src/m_email/EMailNetError.cpp')
| -rw-r--r-- | src/m_email/EMailNetError.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/m_email/EMailNetError.cpp b/src/m_email/EMailNetError.cpp index a6361a1..e1bc0b1 100644 --- a/src/m_email/EMailNetError.cpp +++ b/src/m_email/EMailNetError.cpp @@ -391,6 +391,13 @@ auto MailTlsRequiredError(const QString& host) -> MailError { return out; } +auto MailCancelledError() -> MailError { + MailError out; + out.category = MailErrorCategory::kCANCELLED; + out.title = Tr("Stopped"); + return out; +} + auto MailInternalError(const QString& what) -> MailError { MailError out; out.category = MailErrorCategory::kINTERNAL; |
