]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.2-20040829
authorWietse Venema <wietse@porcupine.org>
Sun, 29 Aug 2004 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:29:53 +0000 (06:29 +0000)
postfix/HISTORY
postfix/RELEASE_NOTES
postfix/makedefs
postfix/src/global/mail_version.h
postfix/src/sendmail/sendmail.c
postfix/src/util/sys_defs.h

index d69c605c481b45b073e6f39e79762f5412bf2a0d..6834bb57a14f4592ec701ed7ee3b6a6d75dd9c24 100644 (file)
@@ -9674,8 +9674,8 @@ Apologies for any names omitted.
 20040826
 
        Feature: support for systems with closefrom(), and emulation
-       for those without. Victor Duchovni, Morgan Stanley. Files:
-       util/sys_defs.h, util/sys_compat.c.
+       for those without. Andrew Brown. Files:  util/sys_defs.h,
+       util/sys_compat.c.
 
 20040827
 
@@ -9693,8 +9693,23 @@ Apologies for any names omitted.
        on to the SASL library.  Victor Duchovni, Morgan Stanley.
        Files: smtp/smtp.c.  smtp/smtp_sasl_glue.c, smtp/smtp_sasl_proto.c.
 
+20040828
+
+       User interface: when no recipients are specified, the
+       Postfix sendmail command now terminates with status EX_USAGE
+       instead of accepting the mail first and bouncing it later.
+       This gives more direct feedback in case of a common client
+       configuration error. File:  sendmail/sendmail.c.
+
+20040829
+
+       Portability: Solaris closefrom() support didn't work for
+       non-SUN compilers. Victor Duchovni, Morgan Stanley.
+
 Open problems:
 
+       Low: scache & anvil should log cache peak sizes.
+
        Low: update events.c so that 1-second timer requests do
        not suffer from rounding errors. This is needed for 1-second
        SMTP session caching time limits.
index f81147f141a852c8c92ddaea19256b8cf0b8bd5f..c5df8ee68abddc74e4128f3f9e7f3bedec3a5117 100644 (file)
@@ -7,6 +7,15 @@ snapshot release).  Patches are issued for the official release
 and change the patchlevel and the release date. Patches are never
 issued for snapshot releases.
 
+Incompatible changes with snapshot Postfix-2.2-20040829
+=======================================================
+
+When no recipients are specified on the command line or via the -t
+option, the Postfix sendmail command terminates with status EX_USAGE
+and produces an error message instead of accepting the mail first
+and bouncing it later. This gives direct more feedback in case of
+a common client configuration error.
+
 Major changes with snapshot Postfix-2.2-20040827
 ================================================
 
index 717686ec86f227a6449cb4ce3ccf66da1f8f8ec9..8cedde2c17159c6eef538d0297ad240c7c20ae1a 100644 (file)
@@ -124,6 +124,10 @@ case "$SYSTEM.$RELEASE" in
                    5.[0-4]) CCARGS="$CCARGS -DMISSING_USLEEP";;
                          *) CCARGS="$CCARGS -DHAS_POSIX_REGEXP";;
                esac
+               # Solaris 9 added closefrom()
+               case $RELEASE in
+                   5.9*|5.[1-9][0-9]*) CCARGS="$CCARGS -DHAS_CLOSEFROM";;
+               esac
                # Work around broken str*casecmp(). Do it all here instead
                # of having half the solution in the sys_defs.h file.
                CCARGS="$CCARGS -Dstrcasecmp=fix_strcasecmp \
index 97a44f35e6f8453eae0962929dbe67fb56716476..9ca267e3927792ccfae911531d0c580d326c9267 100644 (file)
@@ -20,7 +20,7 @@
   * Patches change the patchlevel and the release date. Snapshots change the
   * release date only.
   */
-#define MAIL_RELEASE_DATE      "20040828"
+#define MAIL_RELEASE_DATE      "20040829"
 #define MAIL_VERSION_NUMBER    "2.2"
 
 #define VAR_MAIL_VERSION       "mail_version"
index 35417ea6e4c6a988cb634de26bf078603c7415f3..3db4f717bc0fa9b1dc2aff26023e636c5eebd8ea 100644 (file)
@@ -506,6 +506,7 @@ static void enqueue(const int flags, const char *encoding, const char *sender,
     int     skip_from_;
     TOK822 *tree;
     TOK822 *tp;
+    int     rcpt_count = 0;
     enum {
        STRIP_CR_DUNNO, STRIP_CR_DO, STRIP_CR_DONT
     }       strip_cr;
@@ -604,6 +605,7 @@ static void enqueue(const int flags, const char *encoding, const char *sender,
                        msg_fatal_status(EX_TEMPFAIL,
                                    "%s(%ld): error writing queue file: %m",
                                         saved_sender, (long) uid);
+                   ++rcpt_count;
                }
            }
            tok822_free_tree(tree);
@@ -723,12 +725,19 @@ static void enqueue(const int flags, const char *encoding, const char *sender,
                msg_fatal_status(EX_TEMPFAIL,
                                 "%s(%ld): error writing queue file: %m",
                                 saved_sender, (long) uid);
+           ++rcpt_count;
        }
        argv_free(state.recipients);
        argv_free(state.resent_recip);
        vstring_free(state.temp);
     }
 
+    if (rcpt_count == 0)
+       msg_fatal_status(EX_USAGE, (flags & SM_FLAG_XRCPT) ?
+                        "No recipient addresses found in message header" :
+                        "Recipient addresses must be specified on"
+                        " the command line or via the -t option");
+
     /*
      * Identify the end of the queue file.
      */
index 9391e2f9ee9dd56222501f90ef744a99a307ed53..e56739801ddafaf6bcd7b3dba8fd1aec31973d46 100644 (file)
@@ -311,10 +311,6 @@ extern int opterr;
 #define HAS_VOLATILE_LOCKS
 #define BROKEN_READ_SELECT_ON_TCP_SOCKET
 
-#if SOLARIS >= 20900 || (SOLARIS < 10000 && SOLARIS >= 209)
-#define HAS_CLOSEFROM
-#endif
-
 /*
  * Allow build environment to override paths.
  */