Bug 392049 - weird mailtransport issue (sending only part of the email)
Summary: weird mailtransport issue (sending only part of the email)
Alias: None
Product: kmailtransport
Classification: Applications
Component: general (show other bugs)
Version: 5.7.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
Depends on:
Reported: 2018-03-19 11:12 UTC by T Kleindienst
Modified: 2018-04-22 10:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 18.04


Note You need to log in before you can comment on or make changes to this bug.
Description T Kleindienst 2018-03-19 11:12:28 UTC
Trying to send "text only" email through SMTP (Kolab Server) sometimes it delivers only a fraction (first single line) of the email.

If the text of the email starts with two simple dots like

Hello friend

it delivers only the first line (a single dot .) If the mail was also containing attachments those are also not delivered.

reproducible: approx 50%, sometimes it works, sometimes not.
Comment 1 David Faure 2018-03-19 12:21:05 UTC
Confirmed, my fix for a similar problem (ksmtp commit 6194f93, https://phabricator.kde.org/D9972) doesn't appear to be enough for this particular testcase.

(My testcase was attaching a text file whose first line was just a dot)
Comment 2 David Faure 2018-04-22 10:03:15 UTC
Comment 3 David Faure 2018-04-22 10:08:38 UTC
Git commit 988e0649860952ed05501502a62af3ccc75afc8f by David Faure.
Committed on 22/04/2018 at 09:57.
Pushed by dfaure into branch 'Applications/18.04'.

KSMTP: Fix sending emails where a line starts with a dot

My previous fix was incomplete because it only considered lines
with a single dot, and not the case where two such lines followed each
FIXED-IN: 18.04

Test Plan: Updated unittest.

Reviewers: dvratil, mlaurent

Subscribers: #kde_pim

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

M  +7    -2    autotests/smtptest.cpp
M  +1    -1    src/sendjob.cpp