Do not log submission mode rewrites if they do not change the address.
authorTony Finch <dot@dot.at>
Tue, 22 Jan 2008 19:23:46 +0000 (19:23 +0000)
committerTony Finch <dot@dot.at>
Tue, 22 Jan 2008 19:23:46 +0000 (19:23 +0000)
doc/doc-txt/ChangeLog
src/src/receive.c

index 776151b249da1737a7233a07fc6105ded45a809f..4ff9535a5ce37f62f9bb4727f634f10615b3129e 100644 (file)
@@ -1,4 +1,4 @@
-$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.538 2008/01/18 12:23:26 nm4 Exp $
+$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.539 2008/01/22 19:23:47 fanf2 Exp $
 
 Change log file for Exim from version 4.21
 -------------------------------------------
@@ -15,6 +15,8 @@ NM/02 Bugzilla 646: Removed unwanted C/R in Dovecot authenticator
       conversation.  Added nologin parameter to request.
       Patch contributed by Kirill Miazine
 
+TF/01 Do not log submission mode rewrites if they do not change the address.
+
 
 Exim version 4.69
 -----------------
index 88f5eb2a0b2b86a12d07d12d31b9cd59d806fe14..4d97a19300721e207c1f8e4ecc376b18ee298844 100644 (file)
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/receive.c,v 1.43 2008/01/17 13:03:36 tom Exp $ */
+/* $Cambridge: exim/src/src/receive.c,v 1.44 2008/01/22 19:23:46 fanf2 Exp $ */
 
 /*************************************************
 *     Exim - an Internet mail transport agent    *
@@ -2585,9 +2585,10 @@ if (from_header != NULL &&
     if (sender_address_unrewritten == NULL)
       sender_address_unrewritten = sender_address;
     sender_address = generated_sender_address;
-    log_write(L_address_rewrite, LOG_MAIN,
-      "\"%s\" from env-from rewritten as \"%s\" by submission mode",
-      sender_address_unrewritten, generated_sender_address);
+    if (Ustrcmp(sender_address_unrewritten, generated_sender_address) != 0)
+      log_write(L_address_rewrite, LOG_MAIN,
+        "\"%s\" from env-from rewritten as \"%s\" by submission mode",
+        sender_address_unrewritten, generated_sender_address);
     }
   }