From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44365 Path: main.gmane.org!not-for-mail From: Joseph Barillari Newsgroups: gmane.emacs.gnus.general Subject: Re: DSN [PATCH] Date: Tue, 23 Apr 2002 16:28:42 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1019593905 24243 127.0.0.1 (23 Apr 2002 20:31:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 23 Apr 2002 20:31:45 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 1706wy-0006Iu-00 for ; Tue, 23 Apr 2002 22:31:45 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1706uQ-0000L5-00; Tue, 23 Apr 2002 15:29:06 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 23 Apr 2002 15:29:19 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA25421 for ; Tue, 23 Apr 2002 15:29:06 -0500 (CDT) Original-Received: (qmail 9684 invoked by alias); 23 Apr 2002 20:28:48 -0000 Original-Received: (qmail 9679 invoked from network); 23 Apr 2002 20:28:48 -0000 Original-Received: from jbarilla.student.princeton.edu (@140.180.137.120) by gnus.org with SMTP; 23 Apr 2002 20:28:48 -0000 Original-Received: (from jbarilla@localhost) by jbarilla.student.princeton.edu (8.11.6/8.11.6) id g3NKSlx00387; Tue, 23 Apr 2002 16:28:47 -0400 Original-To: ding X-Public-Key: finger -l jbarilla@phoenix.princeton.edu X-Public-Key-Fingerprint: 99C7 4F49 AF41 AD0F A4FC 529C 215E 1BD2 F6A1 FA37 X-URL: http://www.princeton.edu/~jbarilla In-Reply-To: (Joseph Barillari's message of "Sun, 21 Apr 2002 10:10:00 -0400") Original-Lines: 11 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44365 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44365 --=-=-= I've attached the DSN patch w.r.t. the latest Gnus source in CVS, including documentation. How might I go about adding a control to quickly switch the option on or off at composition time, as Simon Josefsson suggested? I leave it on all the time, because I catch the flood of receipts with procmail, but I assume this isn't everybody's preferred behavior. --Joe --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=gnus-dsn.patch Content-Transfer-Encoding: quoted-printable Content-Description: DSN patch diff -urN -x CVS gnus/lisp/message.el mygnus/lisp/message.el =2D-- gnus/lisp/message.el Sat Apr 20 22:42:45 2002 +++ mygnus/lisp/message.el Tue Apr 23 16:06:03 2002 @@ -265,6 +265,26 @@ :group 'message-mail :type 'boolean) =20 +(defcustom message-sendmail-use-dsn-failure nil + "If this variable is non-nil, ask the MTA for notification by mail + of failed delivery. Note that only some MTAs (namely recent versions=20 + of Sendmail) support Delivery Status Notification." + :group 'message-sending + :type 'boolean) + +(defcustom message-sendmail-use-dsn-delay nil + "If this variable is non-nil, ask the sendmail for notification by mail = of + delayed delivery." + :group 'message-sending + :type 'boolean) + +(defcustom message-sendmail-use-dsn-success nil + "If this variable is non-nil, ask sendmail for notification by mail + of successful delivery." + :group 'message-sending + :type 'boolean) + + (defcustom message-generate-new-buffers 'unique "*Non-nil means create a new message buffer whenever `message-setup' is = called. If this is a function, call that function with three parameters: The type, @@ -3005,6 +3025,20 @@ ;; we'll let users override this. (if (null message-sendmail-f-is-evil) (list "-f" (message-make-address))) + ;; Insert DSN-related command line arguments + (if (or message-sendmail-use-dsn-failure + message-sendmail-use-dsn-delay=20 + message-sendmail-use-dsn-success) + (list=20 + (concat "-N"=20 + (if message-sendmail-use-dsn-failure "failure")=20 + (if (and message-sendmail-use-dsn-failure=20 + message-sendmail-use-dsn-delay ) ",") + (if message-sendmail-use-dsn-delay "delay") + (if (and message-sendmail-use-dsn-success=20 + message-sendmail-use-dsn-delay ) ",") + (if message-sendmail-use-dsn-success "success") + ))) ;; These mean "report errors by mail" ;; and "deliver in background". (if (null message-interactive) '("-oem" "-odb")) diff -urN -x CVS gnus/texi/message.texi mygnus/texi/message.texi =2D-- gnus/texi/message.texi Mon Apr 8 17:58:00 2002 +++ mygnus/texi/message.texi Tue Apr 23 15:56:57 2002 @@ -1242,6 +1242,27 @@ The lower bound of message size in characters, beyond which the message=20 should be sent in several parts. If it is nil, the size is unlimited. =20 +@item message-sendmail-use-dsn-failure +@vindex message-sendmail-use-dsn-failure +Set this to non-@code{nil} to tell Sendmail to request downstream MTAs +to generate DSN (RFC 1891) response messages if delivery fails. Note +that this does not work with all versions of Sendmail. Support from +downstream MTAs varies by vendor and product. + +@item message-sendmail-use-dsn-success +@vindex message-sendmail-use-dsn-success +Set this to non-@code{nil} to tell Sendmail to request downstream MTAs +to generate DSN (RFC 1891) response messages if delivery +succeeds. Note that this does not work with all versions of +Sendmail. Support from downstream MTAs varies by vendor and product. + +@item message-sendmail-use-dsn-delay +@vindex message-sendmail-use-dsn-delay +Set this to non-@code{nil} to tell Sendmail to request downstream MTAs +to generate DSN (RFC 1891) response messages if delivery is +delayed. Note that this does not work with all versions of +Sendmail. Support from downstream MTAs varies by vendor and product. + @end table =20 =20 --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard iD8DBQE8xcP+IV4b0vah+jcRAhoRAJ9L7m48daIEWs6ZuXzlNt54uVgKxACeNTIV qN5SJs4hJa0YMboCjjcmZ9o= =KlWe -----END PGP MESSAGE----- --==-=-=-- --=-=-=--