: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-dir "~/.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.")
(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.
;; static/dl-database
(fboundp 'open-database)))
-(defvar elmo-date-match (not (boundp 'nemacs-version))
+(defvar elmo-date-match t
"Date match is available or not.")
(defvar elmo-network-stream-type-alist
(defvar elmo-cache-expire-default-age 50
"Cache expiration age (days).")
-(defvar elmo-cache-dirname "cache"
+(defvar elmo-cache-directory (expand-file-name "cache" elmo-msgdb-directory)
"Directory name for cache storage.")
(defvar elmo-pack-number-check-strict t