Skip to content
Commit 6194f93a authored by David Faure's avatar David Faure
Browse files

SMTP: fix truncated attachment if it contains a line with a single dot

Summary:
In SMTP speak, a line with a single dot means end of message. So if
we're attaching a text file that contains such a line, we need to
"escape" it by making it two dots, as the spec says.
No unescaping code needed, the SMTP server takes care of it.

Test Plan:
Sending a text file that starts with ".\n" used to send
an empty file, now it works, I get the full file, intact.

Reviewers: dvratil, mlaurent

Reviewed By: mlaurent

Subscribers: mlaurent, olivierjg, #kde_pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D9972
parent e5f1e6bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment