+2000-09-04 Daiki Ueno <ueno@unixuser.org>
+
+ * lisp/mail-source.el (pop3-leave-mail-on-server): Declare.
+ (mail-source-keyword-map): New keyword `:leave' for pop.
+ (mail-source-fetch-pop): Refer it.
+
+ * lisp/pop3.el (pop3-ssl-program-name): New variable.
+
2000-08-31 TAKAHASHI Kaoru <kaoru@kaisei.org>
* lisp/ptexinfmt.el (texinfo-multitable-widths,
(eval-when-compile (require 'cl))
(require 'nnheader)
(eval-and-compile
+ (defvar pop3-leave-mail-on-server)
(autoload 'pop3-movemail "pop3")
(autoload 'pop3-get-message-count "pop3"))
(require 'format-spec)
(:function)
(:password)
(:connection)
- (:authentication password))
+ (:authentication password)
+ (:leave))
(maildir
(:path (or (getenv "MAILDIR") "~/Maildir/"))
(:subdirs ("new" "cur"))
(pop3-port port)
(pop3-authentication-scheme
(if (eq authentication 'apop) 'apop 'pass))
- (pop3-connection-type connection))
+ (pop3-connection-type connection)
+ (pop3-leave-mail-on-server
+ (or leave
+ (and (boundp 'pop3-leave-mail-on-server)
+ pop3-leave-mail-on-server))))
(save-excursion (pop3-movemail mail-source-crash-box))))))
(if result
(progn
(autoload 'starttls-open-stream "starttls")
(autoload 'starttls-negotiate "starttls"))
+(defvar pop3-ssl-program-name
+ (if (exec-installed-p "openssl")
+ "openssl"
+ "ssleay")
+ "The program to run in a subprocess to open an SSL connection.")
+
(defvar pop3-ssl-program-arguments
'("s_client" "-quiet")
"Arguments to be passed to the program `pop3-ssl-program-name'.")
(defun pop3-open-ssl-stream-1 (name buffer host service extra-arg)
(require 'path-util)
(let* ((ssl-program-name
- (cond ((exec-installed-p "openssl")
- "openssl")
- (t
- "ssleay")))
+ pop3-ssl-program-name)
(ssl-program-arguments
`(,@pop3-ssl-program-arguments ,extra-arg
"-connect" ,(format "%s:%d" host service)))