diff options
author | Tony Finch <dot@dot.at> | 2008-01-22 19:23:46 +0000 |
---|---|---|
committer | Tony Finch <dot@dot.at> | 2008-01-22 19:23:46 +0000 |
commit | 089793a459ee02ce35a9c3dae9b1454d0f1f9464 (patch) | |
tree | 6378bb95570cec1c70414bd5a00a6acc2df28392 /src | |
parent | deafd5b336b87fdf2e96ad3a4334c211ea369af0 (diff) |
Do not log submission mode rewrites if they do not change the address.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/receive.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/src/receive.c b/src/src/receive.c index 88f5eb2a0..4d97a1930 100644 --- a/src/src/receive.c +++ b/src/src/receive.c @@ -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); } } |