Gnus development mailing list
 help / color / mirror / Atom feed
* DSN
@ 2002-04-21 11:07 Joseph Barillari
  2002-04-21 13:16 ` DSN Simon Josefsson
  2002-04-24  9:21 ` DSN Matthieu Moy
  0 siblings, 2 replies; 19+ messages in thread
From: Joseph Barillari @ 2002-04-21 11:07 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

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.

Given that DSN support requires only a few lines of code, was there a
philosophical reason for its exclusion?

--Joe


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2.1: DSN patch --]
[-- Type: text/x-patch, Size: 1841 bytes --]

--- message.el.~1~	Mon Feb 25 01:11:57 2002
+++ message.el	Sun Apr 21 06:57:38 2002
@@ -244,6 +244,25 @@
   :group 'message-mail
   :type 'boolean)
 
+(defcustom message-use-dsn-failure nil
+  "If this variable is non-nil, ask the MTA for notification by mail
+   of failed delivery. Note that only some MTAs (namely recent versions 
+   of Sendmail) support Delivery Status Notification."
+  :group 'message-sending
+  :type 'boolean)
+
+(defcustom message-use-dsn-delay nil
+  "If this variable is non-nil, ask the sendmail for notification by mail of
+ delayed delivery."
+  :group 'message-sending
+  :type 'boolean)
+
+(defcustom message-use-dsn-success nil
+  "If this variable is non-nil, ask sendmail for notification by mail
+ of successful delivery."
+  :group 'message-sending
+  :type 'boolean)
+
 (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,
@@ -2439,7 +2458,17 @@
 		     ;; we'll let users override this.
 		     (if (null message-sendmail-f-is-evil)
 			 (list "-f" (message-make-address)))
-		     '("-Nfailure,delay,success") 
+		     '(if (or (message-use-dsn-failure) 
+			      (message-use-dsn-delay) 
+			      (message-use-dsn-success))
+			  (concat "-N" (if (message-use-dsn-failure) "failure") 
+				  (if (and (message-use-dsn-failure) 
+					   (message-use-dsn-delay) ) ",")
+				  (if (message-use-dsn-delay) "delay")
+				  (if (and (message-use-dsn-success) 
+					   (message-use-dsn-delay) ) ",")
+				  (if (message-use-dsn-success) "success")
+				  ))
 		     ;; These mean "report errors by mail"
 		     ;; and "deliver in background".
 		     (if (null message-interactive) '("-oem" "-odb"))

[-- Attachment #2.2: Type: application/pgp-signature, Size: 268 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2002-04-24 21:07 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).