diff options
author | John Denker <jsd@av8n.com> | 2012-11-24 20:44:01 -0800 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-11-24 20:44:01 -0800 |
commit | 9a783cb0791327367d85b63bf3e0e4e1aa215163 (patch) | |
tree | a1b769a8e2009e322a17c64cc79fc7663080cb4b /tools/sepofra.c | |
parent | f7de8573f5521263449fd80a2d5cdf3901b96087 (diff) |
reduce "junk" and other noise in log file
Diffstat (limited to 'tools/sepofra.c')
-rw-r--r-- | tools/sepofra.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/sepofra.c b/tools/sepofra.c index 41cc784..25b73b7 100644 --- a/tools/sepofra.c +++ b/tools/sepofra.c @@ -156,9 +156,9 @@ string sepofra::explain() const { build << "}"; } /* ( */ build << ")"; - build << " client-ip=" << ip << ";"; - build << " envelope-from=" << mailfrom << ";"; - build << " helo=" << helo; + if (ip != "") build << " client-ip=" << ip << ";"; + if (mailfrom != "") build << " envelope-from=" << mailfrom << ";"; + if (helo != "") build << " helo=" << helo; return build.str(); } |