diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2001-11-27 15:48:49 +0000 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2001-11-27 15:48:49 +0000 |
commit | c017f459bceeb3d0abf931140a6caa82aa7d3a80 (patch) | |
tree | f48281cd02c92676261f0429ae574ba4bc102087 /mail/postfix/files | |
parent | a9b6e342d16e82a9b2a3a09d8db3a9154302e4f9 (diff) | |
download | FreeBSD-ports-c017f459bceeb3d0abf931140a6caa82aa7d3a80.zip FreeBSD-ports-c017f459bceeb3d0abf931140a6caa82aa7d3a80.tar.gz |
Add header/body_check warnings command
Bump PORTREVISION
Submitted by: osa@freebsd.org.ru
Diffstat (limited to 'mail/postfix/files')
-rw-r--r-- | mail/postfix/files/patch-src::cleanup_message.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/postfix/files/patch-src::cleanup_message.c b/mail/postfix/files/patch-src::cleanup_message.c new file mode 100644 index 0000000..9136591 --- /dev/null +++ b/mail/postfix/files/patch-src::cleanup_message.c @@ -0,0 +1,24 @@ +--- ./src/cleanup/cleanup_message.c.orig Tue Nov 27 16:55:39 2001 ++++ ./src/cleanup/cleanup_message.c Tue Nov 27 16:58:43 2001 +@@ -269,6 +269,10 @@ + state->errs |= CLEANUP_STAT_CONT; + } else if (strcasecmp(value, "IGNORE") == 0) { + return; ++ } else if (strcasecmp(value, "WARN") == 0) { ++ msg_info("%s: warning: header %.200s; from=<%s> to=<%s>", ++ state->queue_id, header, state->sender, ++ state->recip ? state->recip : "unknown"); + } + } + } +@@ -498,6 +502,10 @@ + state->errs |= CLEANUP_STAT_CONT; + } else if (strcasecmp(value, "IGNORE") == 0) { + return; ++ } else if (strcasecmp(value, "WARN") == 0) { ++ msg_info("%s: warning: body %.200s; from=<%s> to=<%s>", ++ state->queue_id, buf, state->sender, ++ state->recip ? state->recip : "unknown"); + } + } + } |