[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in makeLetter (router/rfc822.c)



(report based on zmailer 2.99.27)
If the message passed to makeLetter uses CRLF for its line
terminators, then the header/body transition is not noted
properly -- the badcontinuation flag winds up getting set and
one is told "unrecognized envelope information; entries discarded!".

The problem can be corrected by adding the noted line to
router/rfc822.c:

   209      while ((n = getline(e->e_fp)) > !octothorp) {
   210          /* We do kludgy processing things in case the input
   211             does have a CRLF at the end of the line.. */
   212          if (n > 1 &&
   213              linebuf[n-2] == '\r' &&
   214              linebuf[n-1] == '\n') {
   215              --n;
   216              linebuf[n-1] = '\n';
***new              if (n > !octothorp) break;   
   217          }


		--Ken Pizzini