<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>74254</bug_id>
          
          <creation_ts>2004-02-05 17:50:31 +0000</creation_ts>
          <short_desc>attaching files with long lines causes message loss</short_desc>
          <delta_ts>2007-09-14 12:17:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kmail</product>
          <component>general</component>
          <version>1.6</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Solaris</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Unknown">null</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>201979</commentid>
    <comment_count>0</comment_count>
    <who name="Torsten Kasch">tk</who>
    <bug_when>2004-02-05 17:50:32 +0000</bug_when>
    <thetext>Version:           1.6 (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          gcc version 2.95.3 20010315 (release) 
OS:          Solaris

I&apos;ve tried to attach a text file (HTML to be precise) with very long lines to a recipient with a mailbox on a cyrus 2.1.x IMAP server which imposes a line length limit of ~8k (which is way beyond the 998 chars required by RFC2822, section 2.1.1). The message was rejected with the (misleading) message &quot;5.6.0 Message contains NUL characters (in reply to end of DATA command&quot; but since the error mail contains a copy of the original message, it could not be delivered back to me (mailbox at the same site/system).

Apart from the postmaster, nobody was notified of the delivery failure.

My test setup:

postfix-2.0.14 delivering via LMTP to a cyrus-2.1.12 &quot;murder&quot;.

to reproduce:

try to send a message with a text file attachment (&gt; 8k chars/line) via KMail to a cyrus user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202020</commentid>
    <comment_count>1</comment_count>
    <who name="Carsten Burghardt">burghardt</who>
    <bug_when>2004-02-05 18:45:58 +0000</bug_when>
    <thetext>Subject: Re:  New: attaching files with long lines causes message loss

On Thursday 05 February 2004 17:50, Torsten Kasch wrote:
&gt; I&apos;ve tried to attach a text file (HTML to be precise) with very long lines
&gt; to a recipient with a mailbox on a cyrus 2.1.x IMAP server which imposes a
&gt; line length limit of ~8k (which is way beyond the 998 chars required by
&gt; RFC2822, section 2.1.1). The message was rejected with the (misleading)
&gt; message &quot;5.6.0 Message contains NUL characters (in reply to end of DATA
&gt; command&quot; but since the error mail contains a copy of the original message,
&gt; it could not be delivered back to me (mailbox at the same site/system).
&gt;
&gt; Apart from the postmaster, nobody was notified of the delivery failure.

I agree that this is bad but what should we do in your eyes? Change the 
attachment? And the error is not from kmail but from the imap server so I 
don&apos;t see kmail&apos;s fault.


Carsten

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202059</commentid>
    <comment_count>2</comment_count>
    <who name="Torsten Kasch">tk</who>
    <bug_when>2004-02-05 19:34:14 +0000</bug_when>
    <thetext>Well, &quot;mutt&quot; seems to be able to do this better. I&apos;ve just created a test-attachment with

perl -e &apos;print &quot;x&quot; x 8190&apos; &gt; long.txt

While I didn&apos;t get it thru with KMail, mutt breaks up the long lines:

--- snip ---
[...]
Content-Type: TEXT/PLAIN
Content-Transfer-Encoding: QUOTED-PRINTABLE
Subject: 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
[...]
--- snip ---

which is deliverable; perhaps this &quot;more conservative behavior&quot; is an option for KMail as well? Losing mail is definitly not an option for me... ;-(

cheers, Torsten</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238496</commentid>
    <comment_count>3</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-06-02 20:23:16 +0000</bug_when>
    <thetext>Replaced tk@CeBiTec.Uni-Bielefeld.DE with null@kde.org due to bounces by reporter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262598</commentid>
    <comment_count>4</comment_count>
    <who name="Ingo Klöcker">kloecker</who>
    <bug_when>2004-08-26 05:43:36 +0000</bug_when>
    <thetext>Fixed in KDE 3.3.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>