Diffusion KSmtp 6194f93a6af6

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

Authored by dfaure on Jan 18 2018, 9:52 PM.

Description

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

Details

Committed
dfaureJan 29 2018, 10:27 AM
Reviewer
mlaurent
Differential Revision
D9972: SMTP: fix truncated attachment if it contains a line with a single dot
Parents
R733:e5f1e6bc3299: GIT_SILENT: Prepare 5.7.2
Branches
Unknown
Tags
Unknown