<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>What is the Content-Transfer-Encoding of the email?  Was the
      message Base64 encoded, or is the PNG included as raw binary data?</p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/24/2017 01:19 AM, Mikhail T.
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ccd7ee2c-d30c-0ef1-38b6-9c371916d5b8@aldan.algebra.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <p>My procmail is configured to feed incoming mail into deliver:</p>
      <blockquote>
        <p><tt>:0wr</tt><tt><br>
          </tt><tt>|sed 1d | /opt/cyrus/bin/deliver mi</tt><br>
        </p>
      </blockquote>
      Recently I received an e-mail consisting of a PNG-file -- not an
      attachment, the body of the e-mail had content-type image/png.
      That message ended up in my /var/mail/mi mailbox -- because
      deliver would not accept it:<br>
      <blockquote><tt>421 4.3.0 deliver: Trying to unput wrong character</tt><br>
      </blockquote>
      Trying to upload the same message using <tt>mbox2imap</tt>, I
      get:<br>
      <blockquote><tt>mbox2imap: (alert) IMAP protocol error</tt><tt><br>
        </tt><tt>mbox2imap: (alert) Protocol response: NO</tt><tt><br>
        </tt><tt>mbox2imap: (alert) Diagnostic message: ['Message
          contains NUL characters']</tt><tt><br>
        </tt></blockquote>
      Why is deliver saying this, and what can I do to be able to
      receive such mail through Cyrus the way I was able to receive them
      through regular Unix mail for years? Thank you!<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>