From 6b072f9c01a55f1cfef7e69c949dd217deba96b6 Mon Sep 17 00:00:00 2001 From: "David W. Chapman Jr." Date: Tue, 27 Nov 2001 15:48:49 +0000 Subject: Add header/body_check warnings command Bump PORTREVISION Submitted by: osa@freebsd.org.ru --- mail/postfix/Makefile | 1 + mail/postfix/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix1/Makefile | 1 + mail/postfix1/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix20/Makefile | 1 + mail/postfix20/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix21/Makefile | 1 + mail/postfix21/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix22/Makefile | 1 + mail/postfix22/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix23/Makefile | 1 + mail/postfix23/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix24/Makefile | 1 + mail/postfix24/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix25/Makefile | 1 + mail/postfix25/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix26/Makefile | 1 + mail/postfix26/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix27/Makefile | 1 + mail/postfix27/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ mail/postfix28/Makefile | 1 + mail/postfix28/files/patch-src::cleanup_message.c | 24 +++++++++++++++++++++++ 22 files changed, 275 insertions(+) create mode 100644 mail/postfix/files/patch-src::cleanup_message.c create mode 100644 mail/postfix1/files/patch-src::cleanup_message.c create mode 100644 mail/postfix20/files/patch-src::cleanup_message.c create mode 100644 mail/postfix21/files/patch-src::cleanup_message.c create mode 100644 mail/postfix22/files/patch-src::cleanup_message.c create mode 100644 mail/postfix23/files/patch-src::cleanup_message.c create mode 100644 mail/postfix24/files/patch-src::cleanup_message.c create mode 100644 mail/postfix25/files/patch-src::cleanup_message.c create mode 100644 mail/postfix26/files/patch-src::cleanup_message.c create mode 100644 mail/postfix27/files/patch-src::cleanup_message.c create mode 100644 mail/postfix28/files/patch-src::cleanup_message.c (limited to 'mail') diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ 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 000000000000..9136591841bf --- /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"); + } + } + } diff --git a/mail/postfix1/Makefile b/mail/postfix1/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix1/Makefile +++ b/mail/postfix1/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix1/files/patch-src::cleanup_message.c b/mail/postfix1/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix1/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"); + } + } + } diff --git a/mail/postfix20/Makefile b/mail/postfix20/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix20/Makefile +++ b/mail/postfix20/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix20/files/patch-src::cleanup_message.c b/mail/postfix20/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix20/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"); + } + } + } diff --git a/mail/postfix21/Makefile b/mail/postfix21/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix21/Makefile +++ b/mail/postfix21/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix21/files/patch-src::cleanup_message.c b/mail/postfix21/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix21/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"); + } + } + } diff --git a/mail/postfix22/Makefile b/mail/postfix22/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix22/Makefile +++ b/mail/postfix22/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix22/files/patch-src::cleanup_message.c b/mail/postfix22/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix22/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"); + } + } + } diff --git a/mail/postfix23/Makefile b/mail/postfix23/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix23/Makefile +++ b/mail/postfix23/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix23/files/patch-src::cleanup_message.c b/mail/postfix23/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix23/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"); + } + } + } diff --git a/mail/postfix24/Makefile b/mail/postfix24/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix24/Makefile +++ b/mail/postfix24/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix24/files/patch-src::cleanup_message.c b/mail/postfix24/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix24/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"); + } + } + } diff --git a/mail/postfix25/Makefile b/mail/postfix25/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix25/Makefile +++ b/mail/postfix25/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix25/files/patch-src::cleanup_message.c b/mail/postfix25/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix25/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"); + } + } + } diff --git a/mail/postfix26/Makefile b/mail/postfix26/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix26/Makefile +++ b/mail/postfix26/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix26/files/patch-src::cleanup_message.c b/mail/postfix26/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix26/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"); + } + } + } diff --git a/mail/postfix27/Makefile b/mail/postfix27/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix27/Makefile +++ b/mail/postfix27/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix27/files/patch-src::cleanup_message.c b/mail/postfix27/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix27/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"); + } + } + } diff --git a/mail/postfix28/Makefile b/mail/postfix28/Makefile index 0191ec4ee57b..9a23d6b607b9 100644 --- a/mail/postfix28/Makefile +++ b/mail/postfix28/Makefile @@ -7,6 +7,7 @@ PORTNAME= postfix PORTVERSION= 20010228.8 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ diff --git a/mail/postfix28/files/patch-src::cleanup_message.c b/mail/postfix28/files/patch-src::cleanup_message.c new file mode 100644 index 000000000000..9136591841bf --- /dev/null +++ b/mail/postfix28/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"); + } + } + } -- cgit v1.2.3