;; 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")
-
-;; Use wl-from for generating message-id.
-;; wl-message-id-use-wl-from precedes wl-local-domain and wl-message-id-domain.
-;(setq wl-message-id-use-wl-from t)
-
;;; [[ Server Setting ]]
;; Default IMAP4 server
;;; [[ 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 ()
; (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 ]]
;; nil means all message is auto-refiled.
;(setq wl-summary-auto-refile-skip-marks nil)
+;;; [[ Spam Filter Settings ]]
+
+;; Use bogofilter as a back end.
+;(setq elmo-spam-scheme 'bogofilter)
+
+;(require 'wl-spam)
+
+;; Judge *first* whether a message is a spam
+;; when `o' (wl-summary-refile) is performed in a summary buffer.
+;(unless (memq 'wl-refile-guess-by-spam wl-refile-guess-functions)
+; (setq wl-refile-guess-functions
+; (cons #'wl-refile-guess-by-spam
+; wl-refile-guess-functions)))
+
+;; Judge *first* whether a message is a spam
+;; when `C-o' (wl-summary-auto-refile) is performed in a summary buffer.
+;(unless (memq 'wl-refile-guess-by-spam wl-auto-refile-guess-functions)
+; (setq wl-auto-refile-guess-functions
+; (cons #'wl-refile-guess-by-spam
+; wl-auto-refile-guess-functions)))
+
+;; When you want to give priority to refile-rule (same as spamfilter-wl.el
+;; or bogofilter-wl.el), please confirm the setup here.
+;(unless (memq 'wl-refile-guess-by-spam wl-auto-refile-guess-functions)
+; (setq wl-auto-refile-guess-functions
+; (append wl-auto-refile-guess-functions
+; '(wl-refile-guess-by-spam))))
+
+;; In moving to each summary, judge whether a message is a spam
+;; according to a setup of wl-spam-auto-check-policy-alist.
+;(add-hook 'wl-summary-prepared-pre-hook #'wl-summary-auto-check-spam)
+
+;; Attach a refile mark to the message judged to be spam after going into +inbox.
+;(setq wl-spam-auto-check-policy-alist '(("\\+inbox" . refile)))
+
+;; Make the spam processor learn at the time of execution of refile.
+;; Even if the following setup was carried out, it does not always learn.
+;; See the docstring of wl-spam-undecided-folder-regexp-list and
+;; wl-spam-ignored-folder-regexp-list in wl-spam.el for details.
+;(let ((actions wl-summary-mark-action-list)
+; action)
+; (while actions
+; (setq action (car actions)
+; actions (cdr actions))
+; (when (eq (wl-summary-action-symbol action) 'refile)
+; (setf (nth 4 action) 'wl-summary-exec-action-refile-with-register)
+; (setq actions nil))))
+
;;; dot.wl ends here