(defun-maybe dynamic-link (a))
(defun-maybe dynamic-call (a b)))
+;; bind colon keywords for old Emacsen.
+(dont-compile
+ (condition-case nil
+ :symbol-for-testing-whether-colon-keyword-is-available-or-not
+ (void-variable
+ (let ((kwds '(:cc :date :extra :message-id :number :references :subject)))
+ (while kwds
+ (set (car kwds) (car kwds))
+ (setq kwds (cdr kwds)))))))
+
(defgroup elmo nil
"ELMO, Elisp Library for Message Orchestration."
:tag "ELMO"
:prefix "elmo-"
:group 'elmo)
-;; Local
-(defvar elmo-localnews-folder-path "~/News"
- "*Local news folder path.")
-(defvar elmo-maildir-folder-path "~/Maildir"
- "*Maildir folder path.")
-(defvar elmo-maildir-list '("\\+~/Maildir")
- "*All Folders that match this list will be treated as Maildir.
-Each elements are regexp of folder name (This is obsolete).")
+;; Message Database
(defvar elmo-msgdb-file-header-chop-length 2048
"*Number of bytes to get header in one reading from file.")
-(defvar elmo-msgdb-directory "~/.elmo"
- "*ELMO Message Database path.")
+(defcustom elmo-msgdb-directory "~/.elmo"
+ "*ELMO Message Database path."
+ :type 'directory
+ :group 'elmo
+ :group 'elmo-setting)
(defvar elmo-passwd-alist-file-name "passwd"
"*ELMO Password filename.")
-(defvar elmo-passwd-life-time nil
- "*Duration of ELMO Password in seconds. nil means infinity.")
+(defcustom elmo-passwd-life-time nil
+ "*Duration of ELMO Password in seconds. nil means infinity."
+ :type '(choice (const :tag "Infinity" nil)
+ number)
+ :group 'elmo
+ :group 'elmo-setting)
(defvar elmo-warning-threshold 30000
"*Display warning when the bytes of message exceeds this value.")
;;; IMAP4
-(defcustom elmo-imap4-default-mailbox "inbox"
- "*Default IMAP4 mailbox."
- :type 'string
- :group 'elmo
- :group 'elmo-setting)
-
(defcustom elmo-imap4-default-server "localhost"
"*Default IMAP4 server."
:type 'string
(defcustom elmo-imap4-default-authenticate-type 'login
"*Default Authentication type for IMAP4."
- :type 'symbol
+ :type '(radio (const :tag "encoded password transmission (login)" login)
+ (const :tag "CRAM-MD5 authentication (cram-md5)" cram-md5)
+ (const :tag "DIGEST-MD5 authentication (digest-md5)" digest-md5)
+ (const :tag "plain password transmission (clear)" clear)
+ (const :tag "NTLM authentication (ntlm)" ntlm)
+ (function :tag "Other"))
:group 'elmo)
(defcustom elmo-imap4-default-user (or (getenv "USER")
(defcustom elmo-nntp-default-user nil
"*Default User of NNTP. nil means no user authentication."
- :type 'string
+ :type '(choice (const nil)
+ string)
:group 'elmo
:group 'elmo-setting)
(defcustom elmo-pop3-default-authenticate-type 'user
"*Default Authentication type for POP3."
- :type 'symbol
+ :type '(radio (const :tag "plain password transmission (user)" user)
+ (const :tag "APOP authentication (apop)" apop)
+ (const :tag "CRAM-MD5 authentication (cram-md5)" cram-md5)
+ (const :tag "DIGEST-MD5 authentication (digest-md5)" digest-md5)
+ (const :tag "NTLM authentication (ntlm)" ntlm)
+ (function :tag "Other"))
:group 'elmo)
(defcustom elmo-pop3-default-port 110
(defvar elmo-strict-diff-folder-list nil
"List of regexps of folder name which should be checked its diff strictly.")
-(defvar elmo-msgdb-extra-fields nil
- "Extra fields for msgdb.")
+(defcustom elmo-msgdb-extra-fields nil
+ "Extra fields for msgdb."
+ :type '(repeat string)
+ :group 'elmo
+ :group 'elmo-setting)
-(defvar elmo-enable-disconnected-operation t
- "*Enable disconnected operations.")
+(defcustom elmo-enable-disconnected-operation t
+ "*Non-nil enables disconnected operations."
+ :type 'boolean
+ :group 'elmo
+ :group 'elmo-setting)
(defvar elmo-auto-change-plugged 600
"*Time to expire change plugged state automatically, as the number of seconds.
(defvar elmo-use-decoded-cache (featurep 'xemacs)
"Use cache of decoded mime charset string.")
-(defvar elmo-use-overview-hashtb t
- "Use hash table of overview.")
-
(defvar elmo-display-progress-threshold 20
"*Displaying progress gauge if number of messages are more than this value.")