ports/51760: Change-request: mail/tmda (ACTION_AUTO_REPLY, sendmail fix)
Cyrille Lefevre
cyrille.lefevre at laposte.net
Sun May 4 20:10:25 UTC 2003
>Number: 51760
>Category: ports
>Synopsis: Change-request: mail/tmda (ACTION_AUTO_REPLY, sendmail fix)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun May 04 13:10:17 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Cyrille Lefevre
>Release: FreeBSD 5.0-RELEASE-p4 i386
>Organization:
ACME
>Environment:
System: FreeBSD gits 5.0-RELEASE-p4 FreeBSD 5.0-RELEASE-p4 #8: Thu Apr 24 19:09:07 CEST 2003 root at gits:/disk3/freebsd/current/obj/disk3/freebsd/current/src/sys/CUSTOM i386
>Description:
Don't send a confirmation message if requested.
files/patch-TMDA::Defaults.py
ACTION_AUTO_REPLY added
files/patch-bin::tmda-rfilter
auto_reply = Defaults.ACTION_AUTO_REPLY instead of 1
files/patch-bin::tmda-sendmail
ignore -N and -R sendmail options
>How-To-Repeat:
n/a
>Fix:
--- /dev/null Tue Apr 29 09:00:37 2003
+++ files/patch-TMDA::Defaults.py Thu Aug 22 23:50:17 2002
@@ -0,0 +1,28 @@
+--- TMDA/Defaults.py.orig Thu Aug 8 18:49:46 2002
++++ TMDA/Defaults.py Thu Aug 22 23:49:48 2002
+@@ -1059,6 +1059,25 @@
+ if not vars().has_key('X_TMDA_IN_SUBJECT'):
+ X_TMDA_IN_SUBJECT = 0
+
++# Don't send a confirmation message if any of the following conditions is met :
++# - ACTION_AUTO_REPLY = 0
++# - SENDER is <>
++# - SENDER is <#@[]>
++# - SENDER starts with "mailer-daemon"
++# - header "List-ID:" (as per RFC 2919)
++# - header "Mailing-List:"
++# - header "X-Mailing-List:"
++# - header "X-ML-Name:"
++# - header "List-(Help|Unsubscribe|Subscribe|Post|Owner|Archive):"
++# (as per RFC 2369)
++#
++# Example:
++# ACTION_AUTO_REPLY = 0
++#
++# Defaults to send a confirmation message back to the sender.
++if not vars().has_key('X_TMDA_IN_SUBJECT'):
++ ACTION_AUTO_REPLY = 1
++
+ ###################################
+ # END of user configurable settings
+ ###################################
--- /dev/null Tue Apr 29 09:00:37 2003
+++ files/patch-bin::tmda-rfilter Tue Apr 29 08:57:08 2003
@@ -0,0 +1,11 @@
+--- bin/tmda-rfilter.orig Tue Mar 4 23:16:33 2003
++++ bin/tmda-rfilter Tue Apr 29 08:54:49 2003
+@@ -263,7 +263,7 @@
+ pendingdir = os.path.join(Defaults.DATADIR, 'pending')
+
+ # Catchall variable to enable/disable auto-responses.
+-auto_reply = 1
++auto_reply = Defaults.ACTION_AUTO_REPLY
+
+
+ ###########
--- /dev/null Tue Apr 29 09:00:37 2003
+++ files/patch-bin::tmda-sendmail Tue Apr 29 08:57:18 2003
@@ -0,0 +1,20 @@
+--- bin/tmda-sendmail.orig Thu Sep 12 00:35:59 2002
++++ bin/tmda-sendmail Tue Apr 29 08:56:30 2003
+@@ -53,7 +53,7 @@
+
+ try:
+ opts, args = getopt.getopt(sys.argv[1:],
+- 'Vhvimte:f:p:o:B:F:EJx', ['version',
++ 'Vhvimte:f:p:o:B:F:EJN:R:x', ['version',
+ 'help'])
+ except getopt.error, msg:
+ usage(1, msg)
+@@ -67,7 +67,7 @@
+ if opt == '--version':
+ print Version.TMDA
+ sys.exit()
+- elif opt in list('BpvixmeoEJ'):
++ elif opt in list('BpvixmeoEJN:R:'):
+ pass
+ elif opt == '-t':
+ header_recipients = 1
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list