Next Previous Contents

6. Composing Mail

6.1 How do I add X-Whatever headers to my messages?

Date: June 20, 1998
Updated: February 8, 1999

Add the following to your VM configuration file:

(setq mail-default-headers
      (concat
       "X-Important: special-delivery\n"
       "Return-Receipt-To: username@example.com\n"))

Or, another example:

From: John Owens
I wanted to submit my x-face code (actually snarfed from someone else out there, don't even remember where I picked this up) since I think it's a little better than the "How do I add X-Whatever ..." you have (works in emacs mail mode, not just vm mode). Note that it requires your X-Face in ~/.face.

(defun mail-insert-x-face ()
  (save-excursion
    (goto-char (point-min))
    (search-forward mail-header-separator)
    (beginning-of-line nil)
    (insert "X-Face:")
    (insert-file "~/.face")))

(add-hook 'mail-setup-hook 'mail-insert-x-face)

6.2. How do I include a signature with my mail message?

Date: June 20, 1998
Updated: August 31, 2001

Add the following to your VM configuration file:

(setq mail-signature t)
(setq mail-signature-file "~/.signature")

6.3. How can I include a random signature file?

Date: June 20, 1998
Updated: December 7, 2003

Matt Simmons (the former BBDB maintainer) has written a random signature package for message-mode, which can be used with VM if you put the following forms in your .vm file:

(setq mail-signature nil)
(setq message-signature 'random-signature-fun)
(defun my-mail-setup-hook ()
  (message-insert-signature)
  (mail-to))
(add-hook 'mail-setup-hook 'my-mail-setup-hook)

(Don't forget to download and install the random-signature package.)

From: John Relph

There appear to be some alternate packages available:

6.4. How do I enable draft handling?

From: Robert Fenk
Date: March 24, 2001

There are two possible solutions:


Next Previous Contents