From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44326 Path: main.gmane.org!not-for-mail From: Joseph Barillari Newsgroups: gmane.emacs.gnus.general Subject: DSN Date: Sun, 21 Apr 2002 07:07:00 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1019388553 16859 127.0.0.1 (21 Apr 2002 11:29:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 21 Apr 2002 11:29:13 +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 16zFWq-0004No-00 for ; Sun, 21 Apr 2002 13:29:13 +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 16zFBh-0004Sv-00; Sun, 21 Apr 2002 06:07:21 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 21 Apr 2002 06:07:32 -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 GAA11786 for ; Sun, 21 Apr 2002 06:07:20 -0500 (CDT) Original-Received: (qmail 17950 invoked by alias); 21 Apr 2002 11:07:04 -0000 Original-Received: (qmail 17945 invoked from network); 21 Apr 2002 11:07:03 -0000 Original-Received: from jbarilla.student.princeton.edu (@140.180.137.120) by gnus.org with SMTP; 21 Apr 2002 11:07:03 -0000 Original-Received: (from jbarilla@localhost) by jbarilla.student.princeton.edu (8.11.6/8.11.6) id g3LB72e23411; Sun, 21 Apr 2002 07:07:02 -0400 Original-To: ding@gnus.org 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 Original-Lines: 11 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.1.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44326 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44326 --=-=-= I was surprised that Gnus didn't support Delivery Status Notification. I've patched OGnus 0.05 message.el to handle it; the patch is attached. Given that DSN support requires only a few lines of code, was there a philosophical reason for its exclusion? --Joe --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=message.el-dsn.patch Content-Transfer-Encoding: quoted-printable Content-Description: DSN patch =2D-- message.el.~1~ Mon Feb 25 01:11:57 2002 +++ message.el Sun Apr 21 06:57:38 2002 @@ -244,6 +244,25 @@ :group 'message-mail :type 'boolean) =20 +(defcustom message-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-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-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, @@ -2439,7 +2458,17 @@ ;; we'll let users override this. (if (null message-sendmail-f-is-evil) (list "-f" (message-make-address))) =2D '("-Nfailure,delay,success")=20 + '(if (or (message-use-dsn-failure)=20 + (message-use-dsn-delay)=20 + (message-use-dsn-success)) + (concat "-N" (if (message-use-dsn-failure) "failure")=20 + (if (and (message-use-dsn-failure)=20 + (message-use-dsn-delay) ) ",") + (if (message-use-dsn-delay) "delay") + (if (and (message-use-dsn-success)=20 + (message-use-dsn-delay) ) ",") + (if (message-use-dsn-success) "success") + )) ;; These mean "report errors by mail" ;; and "deliver in background". (if (null message-interactive) '("-oem" "-odb")) --==-=-= 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 iD8DBQE8wp1UIV4b0vah+jcRAkE2AJ92IRD1TccONL5SD+SWSe5EyXz26wCdEnNb GgDwTAbR1Tmxt0hsK9ep0GE= =hV27 -----END PGP MESSAGE----- --==-=-=-- --=-=-=--