Bug 392049

Summary: weird mailtransport issue (sending only part of the email)
Product: [Applications] kmailtransport Reporter: T Kleindienst <t.kleindienst>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: faure, montel
Priority: NOR    
Version: 5.7.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 18.04

Description T Kleindienst 2018-03-19 11:12:28 UTC
kmail2/kontact 
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

<--nsip-->
.
.
Hello friend
<--snip-->

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
https://phabricator.kde.org/D12434
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

Summary:
My previous fix was incomplete because it only considered lines
with a single dot, and not the case where two such lines followed each
other.
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

https://commits.kde.org/ksmtp/988e0649860952ed05501502a62af3ccc75afc8f