update wl-draft-reply-*-argument-list
[elisp/wanderlust.git] / samples / ja / dot.wl
index 3f9fa69..f22dc17 100644 (file)
@@ -3,10 +3,10 @@
 ;; [[ \e$BF0:n$KI,MW$J@_Dj\e(B ]]
 
 ;; \e$B$^$:!"<!$N@_Dj$r\e(B ~/.emacs \e$B$J$I$K=q$$$F$/$@$5$$!#\e(B
-;; \e$B$3$3$+$i\e(B
+;; XEmacs \e$B$N\e(B package \e$B$H$7$F%$%s%9%H!<%k$5$l$F$$$k>l9g$OI,MW$"$j$^$;$s!#\e(B
 (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)
-;; \e$B$3$3$^$G\e(B
 
 ;; \e$B%"%$%3%s$rCV$/%G%#%l%/%H%j\e(B
 ;; XEmacs \e$B$N\e(B package \e$B$H$7$F%$%s%9%H!<%k$5$l$F$$$k>l9g$OI,MW$"$j$^$;$s!#\e(B
 ;; Message-ID \e$B$N%I%a%$%s%Q!<%H$r6/@)E*$K;XDj\e(B
 ;(setq wl-message-id-domain "hostname.example.com")
 
+;; Message-ID \e$B$N%I%a%$%s%Q!<%H$r\e(B wl-from \e$B$+$i@8@.$7$^$9!#\e(B
+;; global\e$B$J\e(BIP\e$B$r;}$?$J$$>l9g$K;H$C$F$/$@$5$$!#\e(B
+;; wl-local-domain, wl-message-id-domain\e$B$KM%@h$7$^$9!#\e(B
+;(setq wl-message-id-use-wl-from t)
 
 ;;; [[ \e$B%5!<%P$N@_Dj\e(B ]]
 
 ;(setq elmo-pop3-use-cache t)
 
 ;; \e$B%*%U%i%$%s\e(B(unplugged)\e$BA`:n$rM-8z$K$9$k\e(B(\e$B8=:_$O\e(BIMAP\e$B%U%)%k%@$N$_\e(B)
-;(setq elmo-enable-disconnected-operation t)
+(setq elmo-enable-disconnected-operation t)
 
 ;; unplugged \e$B>uBV$GAw?.$9$k$H!$%-%e!<\e(B(`wl-queue-folder')\e$B$K3JG<$9$k\e(B
 (setq wl-draft-enable-queuing t)
 
 ;;; [[ \e$BFC<l$J@_Dj\e(B ]]
 
+;; \e$B%5%^%j$G$N\e(B "b" \e$B$r%a%C%;!<%8:FAw$K$9$k\e(B (mutt \e$B$N\e(B "b"ounce)
+;(add-hook 'wl-summary-mode-hook
+;        '(lambda ()
+;           (define-key wl-summary-mode-map "b" 'wl-summary-resend-message)
+;           ))
+
 ;; \e$B%0%k!<%W$r\e(Bcheck\e$B$7$?8e$KL$FI$,$"$k%U%)%k%@$N%0%k!<%W$r<+F0E*$K3+$/\e(B
 ;(add-hook 'wl-folder-check-entity-hook
 ;        '(lambda ()
 
 ;; ML \e$B$N%a%C%;!<%8$G$"$l$P!$%5%^%j$N\e(B Subject \e$BI=<($K\e(B
 ;; ML\e$BL>\e(B \e$B$d\e(B ML\e$B$K$*$1$k%a%C%;!<%8HV9f$bI=<($9$k\e(B
-(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")
+;; \e$B%U%)%k%@Kh$K%5%^%j$NI=<(7A<0$rJQ$($k@_Dj\e(B
+;(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 \e$B$K$h$jHsF14|$GAw?.$9$k\e(B
 ;; (utils/im-wl.el \e$B$r%$%s%9%H!<%k$7$F$*$/I,MW$,$"$j$^$9!#\e(B
 
 ;; \e$BC;$$\e(B User-Agent: \e$B%U%#!<%k%I$r;H$&\e(B
 ;(setq wl-generate-mailer-string-function
-;      (function
-;       (lambda ()
-;       (concat "User-Agent: "
-;               (wl-generate-user-agent-string-1 nil)))))
+;      'wl-generate-user-agent-string-1)
+
+
+;; \e$BJQ99$5$l$?%I%i%U%H$,$"$l$P\e(B 20 \e$BIC$4$H$K<+F0J]B8$9$k!#\e(B
+;(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)
 
 
 ;;; [[ \e$B%F%s%W%l!<%H\e(B ]]
 
 ;; \e$B%F%s%W%l!<%H$N@_Dj\e(B
-(setq wl-template-alist
-      '(("default"
-        ("From" . wl-from)
-        ("Organization" . "~/.wl sample")
-        (body . "  \e$B!{!{$G$9!#\e(B\n"))       ; \e$BK\J8\e(B
-       ("report"
-        ("To" . "boss@example.com")
-        ("Subject" . "\e$BJs9p\e(B")
-        (top . "\e$B:#=5$NJs9p$G$9!#\e(B\n")     ; \e$BK\J8@hF,$X$NA^F~\e(B
-;;      (bottom-file . "~/work/report.txt") ; \e$BK\J8KvHx$X%U%!%$%k$NA^F~\e(B
-        )
-       ))
+;(setq wl-template-alist
+;      '(("default"
+;       ("From" . wl-from)
+;       ("Organization" . "\e$B%G%U%)%k%H$NAH?%L>\e(B")
+;       (body . "  \e$B!{!{$G$9!#\e(B\n"))       ; \e$BK\J8\e(B
+;      ("report"
+;       ("To" . "boss@example.com")
+;       ("Subject" . "\e$BJs9p\e(B")
+;       (top . "\e$B:#=5$NJs9p$G$9!#\e(B\n")     ; \e$BK\J8@hF,$X$NA^F~\e(B
+;       (bottom-file . "~/work/report.txt") ; \e$BK\J8KvHx$X%U%!%$%k$NA^F~\e(B
+;       )
+;      ))
 
 ;; \e$B%I%i%U%H%P%C%U%!$NFbMF$K$h$j\e(B From \e$B$d\e(B Organization \e$B$J$I$N%X%C%@$r<+\e(B
 ;; \e$BF0E*$KJQ99$9$k\e(B
-(setq wl-draft-config-alist
-      '((reply                 ;; \e$BJV?.85$N%P%C%U%!$r8+$k\e(B
-        "^To: .*test-notsend-wl@lists\\.airs\\.net"
-        (template . "default"))        ; \e$B%F%s%W%l!<%H\e(B
-       ("^To: .*test-notsend-wl@lists\\.airs\\.net"
-        wl-ml-draft-config-function    ; \e$B4X?t\e(B
-        ("From" . wl-from)             ; \e$BJQ?t\e(B
-        ("Organization" . "~/.wl sample")) ; \e$BJ8;zNs\e(B
-       ("^Newsgroups: test.*"
-        ("Organization" . "\e$B%K%e!<%9Ej9F;~$NAH?%L>\e(B"))
-       ))
+;(setq wl-draft-config-alist
+;      '((reply                                ; \e$BJV?.85$N%P%C%U%!$r8+$k\e(B
+;       "^To: .*test-notsend-wl@lists\\.airs\\.net"
+;       (template . "default"))        ; \e$B%F%s%W%l!<%H\e(B
+;      ("^To: .*test-notsend-wl@lists\\.airs\\.net"
+;       ding                           ; \e$B4X?t\e(B
+;       ("From" . wl-from)             ; \e$BJQ?t\e(B
+;       ("Organization" . "\e$BAH?%L>\e(B"))     ; \e$BJ8;zNs\e(B
+;      ("^Newsgroups: test.*"
+;       ("Organization" . "\e$B%K%e!<%9Ej9F;~$NAH?%L>\e(B"))
+;      ))
 
 ;; \e$B%I%i%U%H:n@.;~\e(B(\e$BJV?.;~\e(B)\e$B$K!$<+F0E*$K%X%C%@$rJQ99$9$k\e(B
 ;(add-hook 'wl-mail-setup-hook
 ;; "a" (without-argument)\e$B$G$O\e(B Reply-To: \e$B$d\e(B From: \e$B$J$I$G;XDj$5$l$?M#0l?M\e(B
 ;; \e$B$^$?$OM#0l$D$NEj9F@h$KJV?.$9$k!#$^$?!$\e(BX-ML-Name: \e$B$H\e(B Reply-To: \e$B$,$D$$\e(B
 ;; \e$B$F$$$k$J$i\e(B Reply-To: \e$B08$K$9$k!#\e(B
-(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)\e$B$G$"$l$P4X78$9$kA4$F$N?M!&Ej9F@h$KJV?.$9$k!#\e(B
-(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))))
+
+;; 2.11.0 \e$B0JA0$N%G%U%)%k%H@_Dj\e(B
+;(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))))
 
 
 ;;; [[ \e$B%a%C%;!<%8I=<($N@_Dj\e(B ]]