NUL characters in messages

Lawrence Greenfield leg+ at andrew.cmu.edu
Fri Sep 6 16:43:40 EDT 2002


   Date: Fri, 6 Sep 2002 13:18:11 -0700 (PDT)
   From: Chris Stromsoe <cbs at cts.ucla.edu>

   I need to allow NUL characters to appear in incoming messages.  Using grep
   on the source tree, it looks like lmtp_engine.c and message.c both contain
   code to deal with embedded NULs.  Is it safe to modify these areas to
   remove all the special case handling for IMAP_MESSAGE_CONTAINSNUL?  Are
   there assumption in other parts of the source about NULs not being in
   messages (use of strlen() for example)?

Unextended IMAP4 doesn't allow NUL characters to be sent to clients,
so even if you removed these checks Cyrus couldn't send them back
out. There's an IMAP BINARY extension which, with LMTP CHUNKING, would
allow Cyrus to deal with binary data.

We don't have any plans to implement this.

Larry





More information about the Info-cyrus mailing list