<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <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">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"><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">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"><201707240453.v6O4r0c9003159@narawntapu.narawntapu></a></tt><tt><br>
      </tt><tt>From: Cron Daemon <a class="moz-txt-link-rfc2396E"
          href="mailto:mi@EXAMPLE.com"><mi@EXAMPLE.com></a></tt><tt><br>
      </tt><tt>To: <a class="moz-txt-link-abbreviated"
          href="mailto:mi@narawntapu.narawntapu">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>
  </body>
</html>