From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44386 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: DSN [PATCH] Date: Wed, 24 Apr 2002 19:50:26 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1019670757 18117 127.0.0.1 (24 Apr 2002 17:52:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2002 17:52:37 +0000 (UTC) Cc: Matthieu Moy , ding@gnus.org 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 170QwX-0004i6-00 for ; Wed, 24 Apr 2002 19:52:37 +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 170QvP-0004RM-00; Wed, 24 Apr 2002 12:51:27 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 24 Apr 2002 12:51:39 -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 MAA00481 for ; Wed, 24 Apr 2002 12:51:24 -0500 (CDT) Original-Received: (qmail 24854 invoked by alias); 24 Apr 2002 17:50:48 -0000 Original-Received: (qmail 24849 invoked from network); 24 Apr 2002 17:50:48 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 24 Apr 2002 17:50:48 -0000 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.2/8.12.2) with ESMTP id g3OHoiKg002483; Wed, 24 Apr 2002 19:50:45 +0200 Original-To: Joseph Barillari In-Reply-To: (Joseph Barillari's message of "Wed, 24 Apr 2002 12:26:29 -0400") Original-Lines: 52 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44386 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44386 Joseph Barillari writes: > SJ> Couldn't you simply set the (buffer local) variable > SJ> message-sendmail-use-dns-success in the message buffer for > SJ> that mail? > > Will a buffer-local variable be visible to message.el when it invokes > sendmail? Yup. People are setting `sendmail-program', `mail-specify-envelope-from' etc in message buffers for sendmail.el to pick them up. Come to think of it, it might make more sense to implement the DSN support as a sendmail.el specific thing, as it really is. What do you think of this patch instead? The additional Gnus support can consit of message.el commands to set the `mail-use-dsn' variable buffer locally. (Is there a better Custom :type for this? There really should be. The point is that you want the user to be able to chose any subset of three elements.) --- sendmail.el.~1.252.~ Wed Mar 6 19:42:59 2002 +++ sendmail.el Wed Apr 24 19:47:12 2002 @@ -301,6 +301,15 @@ :type '(choice (const t) (const nil) (const query) (const mime)) :group 'sendmail) +(defcustom mail-use-dsn nil + "*Ask MTA for notification of failed, delayed or successful delivery. +Note that only some MTAs (currently only recent versions of Sendmail) +support Delivery Status Notification." + :group 'sendmail + :type '(repeat (radio (const :tag "Failure" failure) + (const :tag "Delay" delay) + (const :tag "Success" success)))) + ;; Note: could use /usr/ucb/mail instead of sendmail; ;; options -t, and -v if not interactive. (defvar mail-mailer-swallows-blank-line @@ -991,6 +1000,9 @@ ;;; (or resend-to-addresses '("-t") ;;; ) + (if mail-use-dsn + (list "-N" (mapconcat 'symbol-name + mail-use-dsn ","))) ) ) (exit-value (apply 'call-process-region args)))