From: Simon Josefsson <jas@extundo.com>
Cc: Matthieu Moy <Matthieu.Moy@imag.fr>, ding@gnus.org
Subject: Re: DSN [PATCH]
Date: Wed, 24 Apr 2002 19:50:26 +0200 [thread overview]
Message-ID: <ilud6wpx9y5.fsf@extundo.com> (raw)
In-Reply-To: <m38z7dawqy.fsf@washer.barillari.org> (Joseph Barillari's message of "Wed, 24 Apr 2002 12:26:29 -0400")
Joseph Barillari <jbarilla@princeton.edu> 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)))
next prev parent reply other threads:[~2002-04-24 17:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-21 11:07 DSN Joseph Barillari
2002-04-21 13:16 ` DSN Simon Josefsson
2002-04-21 14:10 ` DSN Joseph Barillari
2002-04-23 20:28 ` DSN [PATCH] Joseph Barillari
2002-04-24 11:31 ` Kai Großjohann
2002-04-24 12:04 ` Matthieu Moy
2002-04-24 12:35 ` Joseph Barillari
2002-04-24 15:57 ` Simon Josefsson
[not found] ` <m38z7dawqy.fsf@washer.barillari.org>
2002-04-24 17:50 ` Simon Josefsson [this message]
2002-04-24 19:50 ` Joseph Barillari
2002-04-24 20:28 ` Simon Josefsson
2002-04-24 20:40 ` Joseph Barillari
2002-04-24 20:52 ` Simon Josefsson
2002-04-24 21:07 ` Joseph Barillari
2002-04-24 13:26 ` Simon Josefsson
2002-04-24 13:43 ` Joseph Barillari
2002-04-24 15:18 ` Kai Großjohann
2002-04-24 16:17 ` Joseph Barillari
2002-04-24 9:21 ` DSN Matthieu Moy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ilud6wpx9y5.fsf@extundo.com \
--to=jas@extundo.com \
--cc=Matthieu.Moy@imag.fr \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).