From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44328 Path: main.gmane.org!not-for-mail From: Joseph Barillari Newsgroups: gmane.emacs.gnus.general Subject: Re: DSN Date: Sun, 21 Apr 2002 10:10:00 -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 1019398266 25108 127.0.0.1 (21 Apr 2002 14:11:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 21 Apr 2002 14:11:06 +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 16zI3W-0006Wr-00 for ; Sun, 21 Apr 2002 16:11:06 +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 16zI2o-00051w-00; Sun, 21 Apr 2002 09:10:22 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 21 Apr 2002 09:10:34 -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 JAA12195 for ; Sun, 21 Apr 2002 09:10:21 -0500 (CDT) Original-Received: (qmail 25785 invoked by alias); 21 Apr 2002 14:10:05 -0000 Original-Received: (qmail 25780 invoked from network); 21 Apr 2002 14:10:04 -0000 Original-Received: from jbarilla.student.princeton.edu (@140.180.137.120) by gnus.org with SMTP; 21 Apr 2002 14:10:04 -0000 Original-Received: (from jbarilla@localhost) by jbarilla.student.princeton.edu (8.11.6/8.11.6) id g3LEA4O25733; Sun, 21 Apr 2002 10:10:04 -0400 Original-To: Simon Josefsson , 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 Original-Lines: 73 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44328 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44328 --=-=-= >>>>> "SJ" == Simon Josefsson writes: SJ> Joseph Barillari writes: >> 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. SJ> Thanks. SJ> It looks specific to sendmail. Maybe renaming the variables SJ> to `message-sendmail-use-dsn-*'? Alternatively, implementing SJ> it for non-sendmail methods as well (smtpmail, qmail, ...), of SJ> course. qmail doesn't support DSN [0]. Neither does Exim. As for the rest, I don't know. >> Given that DSN support requires only a few lines of code, was >> there a philosophical reason for its exclusion? SJ> I think it has been discussed a few times here before (see the SJ> archives). If it is disabled by default, I don't see any harm SJ> in supporting it. SJ> Would it be useful to have toolbar buttons and message mode SJ> key bindings for requesting DSN on a message? I'm not sure SJ> you'd want to use DSN on all messages. Not a bad idea, but I use it on all messages, with a procmail rule to save the receipts in an mbox if I should ever need them. A nifty hack would be to have Gnus process the incoming DSN messages, and insert a header into the corresponding sent messages to indicate their final disposition. It could (perhaps) tick messages that were delayed or failed. But if Bernstein is correct in asserting [0] that `DSN is obsolete', implementing such a feature may be a waste of time. SJ> Do you want to write documentation for it as well SJ> (message.texi)? Have you signed FSF papers? I think this falls into the `too trivial to need copyright reassignment' category. But if it's necessary, sure. Speaking of which, I just re-read the patch and realized that it patches the code relative to one of my earlier revisions, rather than relative to a vanilla version of Gnus. I've attached a fresh patch against 0.06 from CVS. Please disregard the last one. As for the documentation, the following should suffice: Delivery Status Notification (see http://www.sendmail.org/~ca/email/dsn.html) is a means by which MTAs can report the final disposition of a message. Support for DSN varies: recent versions of Sendmail may have it enabled, but Exim and qmail do not support it. DSN `success' status messages will be returned by the last mail server in the relay sequence capable of DSN. Microsoft Exchange generates DSN `success' messages. Sendmail can be configured to do so. If the variable `message-use-dsn-failure' is non-nil, Gnus will ask the MTA to ask for DSN status messages if delivery fails. Likewise for delivery delays, with `message-use-dsn-delay', and successful delivery, with `message-use-dsn-success'. --Joe [0] Corrected patch follows: --=-=-= 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 Sun Apr 21 10:00:46 2002 +++ /home/jbarilla/dl/gnus-cvs/gnus/lisp/message.el Thu Apr 18 15:01:10 2002 @@ -265,26 +265,6 @@ :group 'message-mail :type 'boolean) =20 =2D(defcustom message-use-dsn-failure nil =2D "If this variable is non-nil, ask the MTA for notification by mail =2D of failed delivery. Note that only some MTAs (namely recent versions= =20 =2D of Sendmail) support Delivery Status Notification." =2D :group 'message-sending =2D :type 'boolean) =2D =2D(defcustom message-use-dsn-delay nil =2D "If this variable is non-nil, ask the sendmail for notification by mai= l of =2D delayed delivery." =2D :group 'message-sending =2D :type 'boolean) =2D =2D(defcustom message-use-dsn-success nil =2D "If this variable is non-nil, ask sendmail for notification by mail =2D of successful delivery." =2D :group 'message-sending =2D :type 'boolean) =2D =2D (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, @@ -3023,19 +3003,6 @@ ;; we'll let users override this. (if (null message-sendmail-f-is-evil) (list "-f" (message-make-address))) =2D ;; Insert DSN-related command line arguments =2D (if (or message-use-dsn-failure =2D message-use-dsn-delay=20 =2D message-use-dsn-success) =2D (list=20 =2D (concat "-N" (if message-use-dsn-failure "failure")=20 =2D (if (and message-use-dsn-failure=20 =2D message-use-dsn-delay ) ",") =2D (if message-use-dsn-delay "delay") =2D (if (and message-use-dsn-success=20 =2D message-use-dsn-delay ) ",") =2D (if message-use-dsn-success "success") =2D ))) ;; 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 iD8DBQE8wsg7IV4b0vah+jcRAo9iAJ0TlBSq/wfT9vxj4aX+4ypvMCFEdQCdH//F CcS2xfNTvSNVMk7sYFwzMxA= =tcDK -----END PGP MESSAGE----- --==-=-=-- --=-=-=--