Diffusion KSmtp 80831750cefc

KSMTP: improve error handling.

Authored by dfaure on Sep 15 2018, 10:58 AM.

Description

KSMTP: improve error handling.

Summary:
Sending a mail to doesnotexist@example.com returns a 450 error (at least
on a Kolab server), which was wrongly displayed as "Server time out" to the
user (e.g. above the mail header, in the kmail outbox).

Now this testcase displays
"Failed to transport message. Mailbox unavailable. The server said: 4.1.1 <doesnotexit@example.com>: Recipient address rejected: User unknown in local recipient table"

It's slightly redundant, but the point is that "Mailbox unavailable" can
be translated, while the error text from the server will likely not be.

Reviewers: dvratil, lbeltrame, mlaurent, fvogt

Subscribers: kde-pim

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D15528

Details

Committed
dfaureSep 15 2018, 6:32 PM
Differential Revision
D15528: KSMTP: improve error handling.
Parents
R733:d0bf813695c4: GIT_SILENT: Time to increase and use new api
Branches
Unknown
Tags
Unknown