From b6d829facd3e28a7157beede994850e6025bd0b0 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 29 Aug 2001 20:30:48 +0000 Subject: Don't attempt to notify empty <> sender --- security/drweb-sendmail/Makefile | 1 + security/drweb-sendmail/files/patch-ab | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/security/drweb-sendmail/Makefile b/security/drweb-sendmail/Makefile index 6c1c7a23e751..1899e59e1f11 100644 --- a/security/drweb-sendmail/Makefile +++ b/security/drweb-sendmail/Makefile @@ -7,6 +7,7 @@ PORTNAME= drweb_sendmail PORTVERSION= 4.25 +PORTREVISION= 1 CATEGORIES= security mail MASTER_SITES= http://www.drweb.ru/ftp/web_pub/ DISTNAME= drwebd-${PORTVERSION}-freebsd4 diff --git a/security/drweb-sendmail/files/patch-ab b/security/drweb-sendmail/files/patch-ab index 219193c9bd1a..1e7cf1fd9f43 100644 --- a/security/drweb-sendmail/files/patch-ab +++ b/security/drweb-sendmail/files/patch-ab @@ -1,5 +1,14 @@ ---- dw_filter.c.bak Mon Jul 30 05:12:02 2001 -+++ dw_filter.c Sat Aug 25 15:27:15 2001 +--- dw_filter.c.orig Mon Jul 30 05:12:02 2001 ++++ dw_filter.c Thu Aug 30 00:23:31 2001 +@@ -549,7 +549,7 @@ + syslog( LOG_MAIL | LOG_DEBUG, "can not replace message" ); + FAIL_EXIT( context, priv ); + } +- if( bSenderNotify && priv->from && (strlen(priv->from) > 0) ) ++ if( bSenderNotify && priv->from && *(priv->from) && strcmp(priv->from, "<>") != 0) + { + if( smfi_addrcpt( context, priv->from ) != MI_SUCCESS ) + { @@ -585,7 +585,7 @@ syslog( LOG_MAIL | LOG_ERR, "daemon return error (%s) - possible problem with daemon", getDaemonCode( status ) ); FAIL_EXIT( context, priv ); -- cgit