]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.0.9 v2.0.9
authorWietse Venema <wietse@porcupine.org>
Fri, 18 Apr 2003 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 15:51:46 +0000 (15:51 +0000)
postfix/HISTORY
postfix/src/global/mail_version.h
postfix/src/smtp/smtp_proto.c

index 638882f1a9f65d790d89edd0bcea05f760200168..d71d9a292c0969488ae7243fe076e44f38a144bd 100644 (file)
@@ -7711,7 +7711,7 @@ Apologies for any names omitted.
        Bugfix: extraneous warning about out-of-order original
        recipient records by Patrik Rak. Files: *qmgr/qmgr_message.c.
 
-10030415
+20030415
 
        Workaround: log a warning and reset incoming queue file
        time stamps when the file system clock is ahead of the
@@ -7720,6 +7720,13 @@ Apologies for any names omitted.
        only once per process instance, to minimize the performance
        impact. File: global/mail_stream.c.
 
+20030416
+
+       Bugfix: missing partial last line when 1) someone submits
+       8-bit mail not ending in newline via /usr/sbin/sendmail
+       and 2) MIME input processing is turned off, and 3) MIME
+       8bit->7bit conversion is requested upon delivery via SMTP.
+
 Open problems:
 
         Low: smtp-source may block when sending large test messages.
index f6422cad23ccee6fe2b5d2b6fc1eb1d9690ee02f..c3e5ca9252f14e593b98f4b310702203c13617ce 100644 (file)
   * Patches change the patchlevel and the release date. Snapshots change the
   * release date only, unless they include the same bugfix as a patch release.
   */
-#define MAIL_RELEASE_DATE      "20030415"
+#define MAIL_RELEASE_DATE      "20030418"
 
 #define VAR_MAIL_VERSION       "mail_version"
-#define DEF_MAIL_VERSION       "2.0.8"
+#define DEF_MAIL_VERSION       "2.0.9"
 extern char *var_mail_version;
 
  /*
index b5c3007a5bec36ff0c6725bcb41fc71e8a26c862..c202ce03b47ef874170526a7b6200b9aac890c2a 100644 (file)
@@ -808,7 +808,25 @@ int     smtp_xfer(SMTP_STATE *state)
                prev_type = rec_type;
            }
 
-           if (prev_type == REC_TYPE_CONT)     /* missing newline at end */
+           if (state->mime_state) {
+
+               /*
+                * The cleanup server normally ends MIME content with a
+                * normal text record. The following code is needed to flush
+                * an internal buffer when someone submits 8-bit mail not
+                * ending in newline via /usr/sbin/sendmail while MIME input
+                * processing is turned off, and MIME 8bit->7bit conversion
+                * is requested upon delivery.
+                */
+               mime_errs =
+                   mime_state_update(state->mime_state, rec_type, "", 0);
+               if (mime_errs) {
+                   smtp_mesg_fail(state, 554,
+                                  "MIME 7-bit conversion failed: %s",
+                                  mime_state_error(mime_errs));
+                   RETURN(0);
+               }
+           } else if (prev_type == REC_TYPE_CONT)      /* missing newline */
                smtp_fputs("", 0, session->stream);
            if ((state->features & SMTP_FEATURE_MAYBEPIX) != 0
                && request->arrival_time < vstream_ftime(session->stream)