;;;###autoload
(defvar mail-signature nil
"*Text inserted at end of mail buffer when a message is initialized.
-If t, it means to insert the contents of the file `~/.signature'.")
+If t, it means to insert the contents of the file `mail-signature-file'.")
+
+(defvar mail-signature-file "~/.signature"
+ "*File containing the text inserted at end of mail buffer.")
(defvar mail-reply-buffer nil)
(defvar mail-send-actions nil
;; Insert the signature. But remember the beginning of the message.
(if to (setq to (point)))
(cond ((eq mail-signature t)
- (if (file-exists-p "~/.signature")
+ (if (file-exists-p mail-signature-file)
(progn
(insert "\n\n-- \n")
- (insert-file-contents "~/.signature"))))
+ (insert-file-contents mail-signature-file))))
(mail-signature
(insert mail-signature)))
(goto-char (point-max))
C-c C-f C-c move to CC: C-c C-f C-b move to BCC:
C-c C-f C-f move to FCC:
C-c C-t mail-text (move to beginning of message text).
-C-c C-w mail-signature (insert `~/.signature' file).
+C-c C-w mail-signature (insert `mail-signature-file' file).
C-c C-y mail-yank-original (insert current message, in Rmail).
C-c C-q mail-fill-yanked-message (fill what was yanked).
C-c C-v mail-sent-via (add a Sent-via field for each To or CC)."
(search-forward (concat "\n" mail-header-separator "\n")))
\f
(defun mail-signature (atpoint)
- "Sign letter with contents of the file `~/.signature'.
+ "Sign letter with contents of the file `mail-signature-file'.
Prefix arg means put contents at point."
(interactive "P")
(save-excursion
(or atpoint
(delete-region (point) (point-max)))
(insert "\n\n-- \n")
- (insert-file-contents (expand-file-name "~/.signature"))))
+ (insert-file-contents (expand-file-name mail-signature-file))))
(defun mail-fill-yanked-message (&optional justifyp)
"Fill the paragraphs of a message yanked into this one.
When this function returns, the buffer `*mail*' is selected.
The value is t if the message was newly initialized; otherwise, nil.
-Optionally, the signature file `~/.signature' can be inserted at the end;
-see the variable `mail-signature'.
+Optionally, the signature file `mail-signature-file' can be inserted at the
+end; see the variable `mail-signature'.
\\<mail-mode-map>
While editing message, type \\[mail-send-and-exit] to send the message and exit.