unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: support DSN in sendmail.el
Date: Wed, 24 Apr 2002 22:33:59 +0200	[thread overview]
Message-ID: <ilulmbc7s5k.fsf@extundo.com> (raw)

This implements DSN support for sendmail.el, if the MTA can handle it.
I have not tested it at all, but it looks good.

Note :version "21.3" again.

2002-04-24  Simon Josefsson  <jas@extundo.com>

	* mail/sendmail.el (mail-use-dsn): New variable to request
	delivery status notification from MTA.
	(sendmail-send-it): Use it.

--- sendmail.el.~1.252.~	Wed Mar  6 19:42:59 2002
+++ sendmail.el	Wed Apr 24 22:31:31 2002
@@ -1,6 +1,6 @@
 ;;; sendmail.el --- mail sending commands for Emacs.  -*- byte-compile-dynamic: t -*-
 
-;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 98, 2000, 2001
+;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 98, 2000, 2001, 2002
 ;;   Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
@@ -301,6 +301,16 @@
   :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)))
+  :version "21.3")
+
 ;; Note: could use /usr/ucb/mail instead of sendmail;
 ;; options -t, and -v if not interactive.
 (defvar mail-mailer-swallows-blank-line
@@ -991,6 +1001,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)))

                 reply	other threads:[~2002-04-24 20:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilulmbc7s5k.fsf@extundo.com \
    --to=jas@extundo.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).