(require 'elmo-cache)
(require 'elmo-net)
(require 'utf7)
-(require 'sasl)
;;; Code:
;; silence byte compiler.
-(eval-when-compile
- (require 'cl)
- (defun-maybe elmo-generic-list-folder-unread (spec number-alist mark-alist unread-marks))
- (defun-maybe elmo-generic-folder-diff (spec folder number-list))
- (defsubst-maybe utf7-decode-string (string &optional imap) string))
-
-(eval-and-compile
- (autoload 'starttls-open-stream "starttls")
- (autoload 'starttls-negotiate "starttls"))
+(eval-when-compile (require 'cl))
(defvar elmo-imap4-use-lock t
"USE IMAP4 with locking process.")
(require 'elmo-util)
(require 'elmo-vars)
+(eval-and-compile
+ (autoload 'starttls-negotiate "starttls")
+ (autoload 'sasl-find-mechanism "sasl")
+ (autoload 'sasl-make-client "sasl")
+ (autoload 'sasl-mechanism-name "sasl")
+ (autoload 'sasl-next-step "sasl")
+ (autoload 'sasl-step-data "sasl")
+ (autoload 'sasl-step-set-data "sasl"))
+
+(defvar sasl-mechanisms)
+
;;; Code:
;;
(eval-and-compile
(eval-and-compile
(luna-define-class elmo-nntp-session (elmo-network-session)
(current-group))
- (luna-define-internal-accessors 'elmo-nntp-session)
- (autoload 'starttls-open-stream "starttls")
- (autoload 'starttls-negotiate "starttls"))
+ (luna-define-internal-accessors 'elmo-nntp-session))
;;
;; internal variables
(require 'elmo-msgdb)
(require 'elmo-net)
-(require 'sasl)
(eval-when-compile
- (require 'elmo-util)
- (defun-maybe md5 (a)))
+ (require 'elmo-util))
(eval-and-compile
- (autoload 'starttls-open-stream "starttls")
- (autoload 'starttls-negotiate "starttls"))
+ (autoload 'md5 "md5"))
(defvar elmo-pop3-use-uidl t
"*If non-nil, use UIDL.")
(defvar elmo-pop3-exists-exactly t)
-(eval-and-compile
- (luna-define-class elmo-pop3-session (elmo-network-session) ()))
+(luna-define-class elmo-pop3-session (elmo-network-session))
;; buffer-local
(defvar elmo-pop3-read-point nil)
(elmo-network-session-greeting-internal session))
;; good, APOP ready server
(progn
- (require 'md5)
(elmo-pop3-send-command
(elmo-network-session-process-internal session)
(format "apop %s %s"