1999-08-03 Yuuichi Teranishi <teranisi@gohome.org>
* smtp.el (smtp-notify-success): New option.
* (smtp-via-smtp): Request return receipt (defined in RFC1891) to
SMTP server if `smtp-notify-success' is non-nil.
:type 'boolean
:group 'smtp)
+(defcustom smtp-notify-success nil
+ "*If non-nil, notification for successful mail delivery is returned
+ to user (RFC1891)."
+ :type 'boolean
+ :group 'smtp)
+
(defvar smtp-read-point nil)
(defun smtp-make-fqdn ()
;; RCPT TO:<recipient>
(while recipients
(smtp-send-command process
- (format "RCPT TO:<%s>" (car recipients)))
+ (format
+ (if smtp-notify-success
+ "RCPT TO:<%s> NOTIFY=SUCCESS"
+ "RCPT TO:<%s>")
+ (car recipients)))
(setq recipients (cdr recipients))
(setq response (smtp-read-response process))
(if (or (null (car response))