]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-use-dsn): New variable to request delivery status notification from MTA.
authorRichard M. Stallman <rms@gnu.org>
Thu, 25 Apr 2002 21:33:38 +0000 (21:33 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 25 Apr 2002 21:33:38 +0000 (21:33 +0000)
(sendmail-send-it): Use it.

lisp/ChangeLog
lisp/mail/sendmail.el

index 8142aa3fcceeb1f48d2b630e71e556f4eb68a109..824b554403290451b54677bce8b704ad2b741f3f 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-25  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.
+
 2002-04-25  Colin Walters  <walters@verbum.org>
 
        * replace.el (multi-occur-by-filename-regexp): Doc fix.
index 9097fd3e3d029a63a66a4dc9830f89238b3f4a6b..a4610ed13e9d8967a9aebc9afcf88b3b9037650c 100644 (file)
@@ -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 @@ for the recipient, who may not know how to decode them properly."
   :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 @@ external program defined by `sendmail-program'."
 ;;;                          (or resend-to-addresses
                                  '("-t")
 ;;;                              )
+                             (if mail-use-dsn
+                                 (list "-N" (mapconcat 'symbol-name
+                                                       mail-use-dsn ",")))
                              )
                      )
                     (exit-value (apply 'call-process-region args)))