]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.4-20070122
authorWietse Venema <wietse@porcupine.org>
Mon, 22 Jan 2007 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:32:50 +0000 (06:32 +0000)
postfix/RELEASE_NOTES
postfix/mantools/hchangered [new file with mode: 0755]
postfix/src/cleanup/cleanup_milter.c
postfix/src/global/mail_version.h
postfix/src/util/stream_send_fd.c

index a3906991d56e883fe22169b6b18e05b0af488f3e..8a7ad29d4c00bf75947f991927d37fb4ed7e6a9f 100644 (file)
@@ -116,6 +116,18 @@ recipient slots to refill at a time) and default_recipient_refill_delay
 (how long to wait between refill operations). These two parameters
 act as defaults for optional per-transport settings.
 
+Better support for queue file systems on file servers with drifting
+clocks. Clock skew can be a problem, because Postfix does not deliver
+mail until the local clock catches up with the queue file's last
+modification time stamp. On systems with usable futimes() or
+equivalent (Solaris, *BSD, MacOS, but not Linux), Postfix now always
+explicitly sets the queue file last modification time stamps while
+creating a queue file.  On systems without usable futimes() (Linux,
+and ancient versions of Solaris, SunOS and *BSD) Postfix keeps using
+the slower utime() system call to update queue file time stamps
+when the file system clock is off with respect to the local system
+clock, and logs a warning.
+
 Incompatible changes with Postfix snapshot 20061006
 ===================================================
 
diff --git a/postfix/mantools/hchangered b/postfix/mantools/hchangered
new file mode 100755 (executable)
index 0000000..044f2db
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+# Usage: hchangered oldfile newfile
+
+# hchangered - crude tool to red-color changes in HTML text. Text is 
+# also underlined so it shows on monochrome printers.
+
+# Bugs: does not red-color text inside tables. Fascist software may
+# complain about tags being out of order.
+
+diff -e $1 $2 | (sed -n -e '
+/[ac]$/{
+       p
+       a\
+<font color="red"><u>
+: loop
+       n
+       /^\.$/b done1
+       p
+       b loop
+: done1
+       a\
+</u></font>\
+.
+       b
+}
+/d$/{
+       a\
+       i\
+<font color="red"><u>[DELETED]</u></font>\
+.
+       p
+       b
+}
+'; echo '1,$p') | ed - $1 | perl -e '
+$buf = join("", <STDIN>);
+$buf =~ s/pre>\s+<font/pre><font/g;
+$buf =~ s/font>\s+<\/pre/font><\/pre/g;
+print $buf;
+'
index 7117808d00db7c813a7c8bc0d8dafa341b44a92c..2212604a39bb96fdeba2c21d7c8d7f0eae1929a7 100644 (file)
@@ -902,9 +902,9 @@ static const char *cleanup_del_header(void *context, ssize_t index,
 
     /*
      * Overwrite the beginning of the header record with a pointer to the
-     * information that follows the header. We can't simply use
-     * cleanup_out_header() with a special record type, because there may be
-     * a PTR record in the middle of a multi-line header.
+     * information that follows the header. We can't simply overwrite the
+     * header with cleanup_out_header() and a special record type, because
+     * there may be a PTR record in the middle of a multi-line header.
      */
     if (header_offset > 0) {
        if ((next_offset = cleanup_find_header_end(state, rec_buf, last_type)) < 0)
index fba0852908574a61418632f2da83c5d5dad340bf..82b46d82837b1fcfe2366bf36350cd36e3c02eee 100644 (file)
@@ -20,7 +20,7 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20070121"
+#define MAIL_RELEASE_DATE      "20070122"
 #define MAIL_VERSION_NUMBER    "2.4"
 
 #ifdef SNAPSHOT
index 77c5d75b3011bf914a0b1ed27427bb991f725bab..a056bb0a89375a8f93c53ea7474aa352a7cebd14 100644 (file)
@@ -58,7 +58,7 @@ int     stream_send_fd(int fd, int sendfd)
 
 #ifdef STREAM_CONNECTIONS
     if (ioctl(fd, I_SENDFD, sendfd) < 0)
-       msg_fatal("%s: send file descriptor %d: %m", sendfd, myname);
+       msg_fatal("%s: send file descriptor %d: %m", myname, sendfd);
     return (0);
 #else
     msg_fatal("stream connections are not implemented");