]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.0.9-20030418
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 06:28:50 +0000 (06:28 +0000)
postfix/HISTORY
postfix/src/global/mail_version.h
postfix/src/sendmail/sendmail.c
postfix/src/smtp/smtp_proto.c

index d8d34834f02ea72bdefe4e8a0bf331fb3927d205..3e6bca4a42e348f55451f7172e45aaa669bd6f75 100644 (file)
@@ -7974,9 +7974,10 @@ Apologies for any names omitted.
 
 20030416
 
-       Bugfix: missing output flush when message content did not
-       end in newline while converting 8-bit to 7-bit mail.  File:
-       smtp/smtp_proto.c.
+       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.
 
        Cleanup: auto-bcc recipients are now added in one place
        (the cleanup server) instead of by individual front-end
@@ -8009,6 +8010,10 @@ Apologies for any names omitted.
        smtp_host_lookup (default: dns, native). Files: smtp/smtp.c,
        smtp/smtp_addr.c.
 
+20030418
+
+       Bugfix: "sendmail -t" broke with unrecognized message headers.
+
 Open problems:
 
        Low: smtp-source may block when sending large test messages.
index d31e34b0b5bcc443a7cd245c64637a2cc2444dc8..35ca549af882f0d09269491fa67bbb73d1fd6da8 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      "20030417"
+#define MAIL_RELEASE_DATE      "20030418"
 
 #define VAR_MAIL_VERSION       "mail_version"
-#define DEF_MAIL_VERSION       "2.0.8-" MAIL_RELEASE_DATE
+#define DEF_MAIL_VERSION       "2.0.9-" MAIL_RELEASE_DATE
 extern char *var_mail_version;
 
  /*
index 26989db70ec82543161b88476597e38c7098e31b..184d283045017566dd90183d16506dde0dfed6a7 100644 (file)
@@ -413,6 +413,7 @@ static void output_header(void *context, int header_class,
      * appropriate place.
      */
     if (header_class == MIME_HDR_PRIMARY
+       && header_info
        && header_info->flags & HDR_OPT_RECIP
        && header_info->flags & HDR_OPT_EXTRACT
        && (state->resent == 0 || (header_info->flags & HDR_OPT_RR))) {
index 543d78b2a74911a4a0bb3b2daa75f22190a6e37c..b7cc68c0598c0c3e75f52be3583065309f98beee 100644 (file)
@@ -830,6 +830,15 @@ int     smtp_xfer(SMTP_STATE *state)
            }
 
            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) {