5. Mew Tips



[Back to Contents]
5.2 How can I switch my signatures selectively ?
5.3 How can I switch my X-Faces selectively?
5.4 I'd like to use citation prefix.
5.5 How can I trace folder to which new e-mail messages are forwarded by procmail?
5.6 By using mh-biff, I'd like to check unread e-mail messages.
5.7 I'd like to write e-mail messages during off-line and send all of them at one time when a connection with network is established.
5.8 I'd like to reserve copies of e-mail messages which I have sent.
5.9 I'd like to insert a fixed form prhase into my mail automatically.

5.2 How can I switch my signatures selectively ?

Q.
How can I switch my signatures selectively ?
A.
The c-sig package enables you to do it. (This page is written in Japanese. You can get directly the package from http://www.threeweb.ad.jp/%7Ekshibata/c-sig/programs/c-sig.3.7-beta.tar.gz.)
For example, if you put the following setting in your $(HOME)/.emacs, then you can select your signature intaractively.
(autoload 'add-signature "c-sig" "c-sig" t)
(autoload 'delete-signature "c-sig" "c-sig" t)
(autoload 'insert-signature-eref "c-sig" "c-sig" t)          ;; for intaractive selection
(autoload 'insert-signature-automatically "c-sig" "c-sig" t) ;; for automatic selection from your signature database.
(autoload 'insert-signature-randomly "c-sig" "c-sig" t)      ;; for random selection

;;; Setting for selecting your signatures intaractively.
(add-hook 'mew-draft-mode-hook
        (function (lambda ()
            (define-key mew-draft-mode-map "\C-c\C-i" 'insert-signature-eref)))) 
     

[Back to Contents] [Back to Top Page]


5.3 How can I switch my X-Faces selectively?

Q.
How can I switch my X-Faces selectively?
A.
The select-xface enables you to do it. For example, if you put following setting in your $(HOME)/.emacs, then you can select your X-Face selectively.
(require 'select-xface)
(add-hook 'mew-draft-mode-hook
          (lambda ()
            (define-key (current-local-map) "\C-c\C-x" 
              'select-xface)))

With above setting, put each X-Face files in a directory named `$(HOME)/.xfaces'. You can name each of files as you like. And if you input `C-c C-x' in Draft buffer of Mew, the buffer to select X-Face: appears. On this buffer, select and decide X-Face as follows.

`p'
Show previous X-Face
`n'
Show next X-Face
`Return'
Decide current X-Face

[Back to Contents] [Back to Top Page]


5.4 I'd like to use citation prefix.

Q.
I often see that citation prefix such as "hoge-san>" is used in the cited text of replied e-mail. How can I use such prefix?
A.

[Back to Contents] [Back to Top Page]


5.5 How can I trace folder to which new e-mail messages are forwarded by procmail?

Q.
I am using procmail in order to forward arrived e-mail messages to specific folder automatically. But I want to know folder to which folder the messages have been forwarded.
A.
The `prom-mew' package (http://www02.so-net.ne.jp/~murata/software/prom.html) shows the list of newly arrived e-mail messages forwarded to each folder by looking at the log file of procmail. To get detailed information, please refer to "prom-usage.jis" in the package.

[Back to Contents] [Back to Top Page]


5.6 By using mh-biff, I'd like to check unread e-mail messages.

Q.
I am using mh-biff in order to check unread e-mail messages forwarded by slocal. When we use mh-e or mnews, the number of the unread messages has been decreasing as we read each of them. But the number of them doesn't decrease when we use Mew. Can Mew enable mh-biff to check unread e-mail messages?
A.
Please put following setting in your $(HOME)/.emacs.
(add-hook 'mew-message-hook
    '(lambda ()
        (and fld msg (not (boundp 'program))
            (mh-biff-delete-unseen-sequence fld msg))))

[Back to Contents] [Back to Top Page]


5.7 I'd like to write e-mail messages during off-line and send all of them at one time when a connection with network is established.

Q.
I want to stock queue with e-mail messages prepared for sending for a while, and want to send all of them at one time when a connection with network is established. How can I do so?
A.
If you put following setting in your $(HOME)/.im/Config, e-mail message sent by `C-c C-c' is actually not sent but stored in queue.
JustQueuing=yes

And if you execute as follows when you make connection with network, all messages stored in queue are sent at one time.

% imput -q

[Back to Contents] [Back to Top Page]


5.8 I'd like to reserve copies of e-mail messages which I have sent.

Q.
How can I reserve copies of e-mail messages which I have sent?
A.
Please put following setting in your $(HOME)/.emacs.
(setq mew-fcc "<folder name where you want to reserve>")

In this case, `Message-Id:' is added if you are using IM or MH compiled with SMTP option. And you can reserve copies even if e-mail messages are lost for some reason.

[Back to Contents] [Back to Top Page]


5.9 I'd like to insert a fixed prhase into my mail automatically.

Q.
I am getting tired of inserting a fixed prahase like `Hi, there.' into my mail every time.
A.
Put the following setting in your $(HOME)/.emacs
(add-hook 'mew-draft-mode-hook
	  (function
	   (lambda ()
	     (let ((p (point)))
	       (goto-char (point-max))
	       (insert-file "~/Mail/hoge")
	       (goto-char p)))))
    
Then the text of the file $(HOME)/hoge is inserted into the top of your mail automatically whenever you write a mail.