diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2012-10-04 12:17:10 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2012-10-04 12:17:10 +0000 |
commit | f2b45cb94b4f6178957bc54fa744b2379461df94 (patch) | |
tree | b0ab2c38ac33c6fc3bfb35e1e7e3ad51a93c360c /usr.sbin | |
parent | 8f27c03e0f1966ba2986d97bbf13598ebce85ace (diff) |
change to from=<...>, to=<...> instead of to=<...> for logging
from gilles@ ok eric@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index a7f8c08c083..bfd9bd15515 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.84 2012/09/26 19:52:20 eric Exp $ */ +/* $OpenBSD: util.c,v 1.85 2012/10/04 12:17:09 todd Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -1063,8 +1063,9 @@ log_envelope(const struct envelope *evp, const char *extra, const char *status) if (extra == NULL) extra = ""; - log_info("%016" PRIx64 ": to=<%s@%s>, %s%sdelay=%s, %sstat=%s", - evp->id, evp->dest.user, evp->dest.domain, + log_info("%016" PRIx64 ": from=<%s@%s>, to=<%s@%s>, %s%sdelay=%s, %sstat=%s", + evp->id, evp->sender.user, evp->sender.domain, + evp->dest.user, evp->dest.domain, rcpt, tmp, duration_to_text(time(NULL) - evp->creation), |