;; [[ Requirement Setting ]]
;; Following must be included in ~/.emacs
-;; for .emacs begin
+;; (No need if installed as XEmacs package.)
(autoload 'wl "wl" "Wanderlust" t)
+(autoload 'wl-other-frame "wl" "Wanderlust on new frame." t)
(autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t)
-;; for .emacs end
;; Icon directory
;; (No need if installed as XEmacs package.)
;; Header From:
;(setq wl-from "Your Name <e-mail@example.com>")
+;; If (system-name) does not return FQDN,
+;; set following as a local domain name without hostname.
+;(setq wl-local-domain "example.com")
+
;; User's mail addresses.
(setq wl-user-mail-address-list
(list (wl-address-header-extract-address wl-from)
;; "ml@example.com" ...
))
-;; If (system-name) does not return FQDN,
-;; set following as a local domain name without hostname.
-;; ((system-name) "." wl-local-domain is used as domain part of Message-ID
-;; and an argument of HELO in SMTP.
-;(setq wl-local-domain "example.com")
-
-;; Specific domain part for message-id.
-;(setq wl-message-id-domain "hostname.example.com")
-
-
;;; [[ Server Setting ]]
;; Default IMAP4 server
;(setq elmo-pop3-use-cache t)
;; Enable disconnected operation in IMAP folder.
-;(setq elmo-enable-disconnected-operation t)
+(setq elmo-enable-disconnected-operation t)
;; Store draft message in queue folder if message is sent in unplugged status.
(setq wl-draft-enable-queuing t)
;;; [[ Special Setting ]]
+;; bind "b" in Summary to resend-message (ala mutt's "b"ounce)
+;(add-hook 'wl-summary-mode-hook
+; '(lambda ()
+; (define-key wl-summary-mode-map "b" 'wl-summary-resend-message)
+; ))
+
;; open unread group folder after checking.
;(add-hook 'wl-folder-check-entity-hook
; '(lambda ()
"x-mail-count" "x-ml-count" "x-sequence"))
;; ML message displays ML name and ML sequence number in subject.
-(setq wl-summary-subject-function 'my-wl-summary-subject-func-ml)
-(defun my-wl-summary-subject-func-ml (subject-string)
- (let ((folder wl-summary-buffer-folder-name)
- (subj subject-string) (sequence) (ml-name) (ml-count))
- (setq sequence (elmo-msgdb-overview-entity-get-extra-field
- entity "x-sequence")
- ml-name (or (elmo-msgdb-overview-entity-get-extra-field
- entity "x-ml-name")
- (and sequence
- (car (split-string sequence " "))))
- ml-count (or (elmo-msgdb-overview-entity-get-extra-field
- entity "x-mail-count")
- (elmo-msgdb-overview-entity-get-extra-field
- entity "x-ml-count")
- (and sequence
- (cadr (split-string sequence " ")))))
- (if (string-match
- "^\\s(\\(\\S)+\\)[ :]\\([0-9]+\\)\\s)[ \t]*"
- subject-string)
- (progn
- (setq subj (substring subject-string (match-end 0)))
- (if (not ml-name) (setq ml-name (match-string 1 subject-string)))
- (if (not ml-count) (setq ml-count (match-string 2 subject-string)))))
- (condition-case nil
- (if (and ml-name ml-count)
- (if (string= folder wl-default-folder)
- (format "(%s %05d) %s"
- (car (split-string ml-name " "))
- (string-to-int ml-count)
- subj)
- (format "#%05d %s"
- (string-to-int ml-count) subj))
- subj)
- (error subj))))
+(setq wl-summary-line-format "%n%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %#%~%s")
+;; Set summary line format according to folder name.
+;(setq wl-folder-summary-line-format-alist
+; '(("^%inbox\\.emacs\\.wl$" .
+; "%-5l%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")
+; ("^%" . "%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")
+; ("^+" . "%n%T%P%M/%D %h:%m %-4S %[ %17f %] %t%C%s")))
;; imput asynchronously.
;; (utils/im-wl.el is needed to be installed.
;; non-verbose User-Agent: field
;(setq wl-generate-mailer-string-function
-; (function
-; (lambda ()
-; (concat "User-Agent: "
-; (wl-generate-user-agent-string-1 nil)))))
+; 'wl-generate-user-agent-string-1)
+
+
+;; Automatically save modified draft buffers in every 20 seconds.
+;(defun my-wl-auto-save-draft-buffers ()
+; (let ((buffers (wl-collect-draft)))
+; (save-excursion
+; (while buffers
+; (set-buffer (car buffers))
+; (if (buffer-modified-p) (wl-draft-save))
+; (setq buffers (cdr buffers))))))
+;(run-with-idle-timer 20 t 'my-wl-auto-save-draft-buffers)
+
+;; When you encrypt message by PGP, include your public key.
+;; (to make the message visible from yourself)
+;(setq pgg-encrypt-for-me t)
;;; [[ Template ]]
;; template
-(setq wl-template-alist
- '(("default"
- ("From" . wl-from)
- ("Organization" . "~/.wl sample")
- (body . "Hello, this is XXX \n")) ;; body
- ("report"
- ("To" . "boss@example.com")
- ("Subject" . "Report")
- (top . "Sir, here is my report\n") ;; insert in top.
-;; (bottom-file . "~/work/report.txt") ;; insert file in bottom
- )
- ))
+;(setq wl-template-alist
+; '(("default"
+; ("From" . wl-from)
+; ("Organization" . "organization for default")
+; (body . "Hello, this is XXX \n")) ; body
+; ("report"
+; ("To" . "boss@example.com")
+; ("Subject" . "Report")
+; (top . "Sir, here is my report\n") ; insert in top.
+; (bottom-file . "~/work/report.txt") ; insert file in bottom
+; )
+; ))
+
;; Change headers in draft sending time.
-(setq wl-draft-config-alist
- '((reply ; see reply buffer
- "^To: .*test-notsend-wl@lists\\.airs\\.net"
- (template . "default")) ; template
- ("^To: .*test-notsend-wl@lists\\.airs\\.net"
- ding ; function
- ("From" . wl-from) ; variable
- ("Organization" . "CHANGE THIS!!")) ; string
- ("^Newsgroups: test.*"
- ("Organization" . "organization for nntp."))
- ))
+;(setq wl-draft-config-alist
+; '((reply ; see reply buffer
+; "^To: .*test-notsend-wl@lists\\.airs\\.net"
+; (template . "default")) ; template
+; ("^To: .*test-notsend-wl@lists\\.airs\\.net"
+; ding ; function
+; ("From" . wl-from) ; variable
+; ("Organization" . "organization")) ; string
+; ("^Newsgroups: test.*"
+; ("Organization" . "organization for nntp."))
+; ))
;; Change headers in draft preparation time.
;(add-hook 'wl-mail-setup-hook
;; "a" (without-argument) reply to author (Reply-To or From).
;; if 'X-ML-Name' and 'Reply-To' exists, reply to 'Reply-To'.
-(setq wl-draft-reply-without-argument-list
- '((("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
- ("X-ML-Name" . (("To" "Cc") nil nil))
- ("Followup-To" . (nil nil ("Followup-To")))
- ("Newsgroups" . (nil nil ("Newsgroups")))
- ("Reply-To" . (("Reply-To") nil nil))
- ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
- ("From" . (("From") nil nil))))
-
-;; "C-u a" (with-argument) reply to all.
-(setq wl-draft-reply-with-argument-list
- '(("Followup-To" . (("From") nil ("Followup-To")))
- ("Newsgroups" . (("From") nil ("Newsgroups")))
- ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
- ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
+;(setq wl-draft-reply-without-argument-list
+; '((("X-ML-Name" "Reply-To") . (("Reply-To") nil nil))
+; ("X-ML-Name" . (("To" "Cc") nil nil))
+; ("Followup-To" . (nil nil ("Followup-To")))
+; ("Newsgroups" . (nil nil ("Newsgroups")))
+; ("Reply-To" . (("Reply-To") nil nil))
+; ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
+; (wl-draft-self-reply-p . (("To") ("Cc") nil))
+; ("From" . (("From") nil nil))))
+
+;; old defaults < 2.11.0
+;(setq wl-draft-reply-without-argument-list
+; '(((wl-draft-self-reply-p
+; "Followup-To") . (("To") ("Cc") ("Followup-To")))
+; ((wl-draft-self-reply-p
+; "Newsgroups") . (("To") ("Cc") ("Newsgroups")))
+; ((wl-draft-self-reply-p
+; "From") . (("To") ("Cc") nil))
+; ("Followup-To" . (nil nil ("Followup-To")))
+; ("Mail-Followup-To" . (("Mail-Followup-To") nil ("Newsgroups")))
+; ("Reply-To" . (("Reply-To") ("To" "Cc" "From") ("Newsgroups")))
+; ("From" . (("From") ("To" "Cc") ("Newsgroups")))))
+;(setq wl-draft-reply-with-argument-list
+; '(((wl-draft-self-reply-p
+; "Followup-To") . (("To") ("Cc") ("Followup-To")))
+; ((wl-draft-self-reply-p
+; "Newsgroups") . (("To") ("Cc") ("Newsgroups")))
+; ((wl-draft-self-reply-p
+; "From") . (("To") ("Cc") nil))
+; ("Reply-To" . (("Reply-To") nil nil))
+; ("Mail-Reply-To" . (("Mail-Reply-To") nil nil))
+; ("From" . (("From") nil nil))))
;;; [[ Message Display Settings ]]