<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>If the body of the message contains a NUL character, the the CTE
      MUST be "binary" NOT "8bit".</p>
    <p>Cyrus WILL transcode a properly formatted MIME message on ingest,
      if necessary.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/24/2017 12:14 PM, Mikhail T.
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:efb72002-b101-f2e9-1c6b-0a2455d8b426@aldan.algebra.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div class="moz-cite-prefix">On 24.07.2017 10:41, Merlin Hartley
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:CCB6A31B-AFDD-4983-BCBC-D6233ABB3FE4@mrc-mbu.cam.ac.uk">NUL
        characters are not permitted in e-mails … 
        <div class=""><a
href="https://helpdesk.pscs.co.uk/690163-Data-stream-contained-NUL-character"
            class="" moz-do-not-send="true">https://helpdesk.pscs.co.uk/690163-Data-stream-contained-NUL-character</a></div>
        <div class=""><br class="">
        </div>
        <div class="">As the RFC for IMAP states:</div>
        <div class=""><a
            href="https://tools.ietf.org/html/rfc3501#section-9"
            class="" moz-do-not-send="true">https://tools.ietf.org/html/rfc3501#section-9</a></div>
        <div class=""><span style="font-size: 13.3333px; orphans: 2;
            widows: 2;" class="">(3) The ASCII NUL character, %x00, MUST
            NOT be used at any</span> time.</div>
      </blockquote>
      But the message did go through sendmail...<br>
      <br>
      Ken Murchison wrote:<br>
      <blockquote type="cite">What is the Content-Transfer-Encoding of
        the email? Was the message Base64 encoded, or is the PNG
        included as raw binary data? </blockquote>
      Raw... Here are the full headers (the first line -- the From_ --
      is removed by <tt>sed</tt> before feeding the rest into <tt>deliver</tt>):<br>
      <blockquote><tt>From <a class="moz-txt-link-abbreviated"
            href="mailto:mi@EXAMPLE.com" moz-do-not-send="true">mi@EXAMPLE.com</a> 
          Mon Jul 24 00:53:00 2017<br>
          Received: from narawntapu.narawntapu (localhost [127.0.0.1])</tt><tt><br>
        </tt><tt>        by narawntapu.narawntapu (8.15.2/8.15.2) with
          ESMTPS id v6O4r05T003160</tt><tt><br>
        </tt><tt>        (version=TLSv1.2
          cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)</tt><tt><br>
        </tt><tt>        for <a class="moz-txt-link-rfc2396E"
            href="mailto:mi@narawntapu.narawntapu"
            moz-do-not-send="true"><mi@narawntapu.narawntapu></a>;
          Mon, 24 Jul 2017 00:53:00 -0400 (EDT)</tt><tt><br>
        </tt><tt>        (envelope-from <a
            class="moz-txt-link-abbreviated"
            href="mailto:mi@narawntapu.narawntapu"
            moz-do-not-send="true">mi@narawntapu.narawntapu</a>)</tt><tt><br>
        </tt><tt>Received: (from mi@localhost)</tt><tt><br>
        </tt><tt>        by narawntapu.narawntapu (8.15.2/8.15.2/Submit)
          id v6O4r0c9003159;</tt><tt><br>
        </tt><tt>        Mon, 24 Jul 2017 00:53:00 -0400 (EDT)</tt><tt><br>
        </tt><tt>        (envelope-from mi)</tt><tt><br>
        </tt><tt>Date: Mon, 24 Jul 2017 00:53:00 -0400 (EDT)</tt><tt><br>
        </tt><tt>Message-Id: <a class="moz-txt-link-rfc2396E"
            href="mailto:201707240453.v6O4r0c9003159@narawntapu.narawntapu"
            moz-do-not-send="true"><201707240453.v6O4r0c9003159@narawntapu.narawntapu></a></tt><tt><br>
        </tt><tt>From: Cron Daemon <a class="moz-txt-link-rfc2396E"
            href="mailto:mi@EXAMPLE.com" moz-do-not-send="true"><mi@EXAMPLE.com></a></tt><tt><br>
        </tt><tt>To: <a class="moz-txt-link-abbreviated"
            href="mailto:mi@narawntapu.narawntapu"
            moz-do-not-send="true">mi@narawntapu.narawntapu</a></tt><tt><br>
        </tt><tt>Mime-Version: 1.0</tt><tt><br>
        </tt><tt>Content-Type: image/png; charset=binary</tt><tt><br>
        </tt><tt>Content-Transfer-Encoding: 8bit</tt><tt><br>
        </tt><tt>Subject: Cron <mi@narawntapu> cat foo.png</tt><br>
      </blockquote>
      Should sendmail have re-encoded with something other than 8bit? I
      don't like doing that, because it increases the filesizes to no
      obvious benefit... Thanks!<br>
      <blockquote>-mi<br>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Kenneth Murchison
Cyrus Development Team
FastMail Pty Ltd
</pre>
  </body>
</html>