comparison man/sending.texi @ 60436:9c630fb92215

(Sending Mail): Minor cleanup. (Mail Aliases): Explain quoting conventions. Update key rebinding example. (Header Editing): C-M-i is like M-TAB. (Mail Mode Misc): mail-attach-file does not do MIME.
author Richard M. Stallman <rms@gnu.org>
date Sun, 06 Mar 2005 17:42:39 +0000
parents f7a3d5a80994
children 87dfc61450d5
comparison
equal deleted inserted replaced
60435:b8d2ec2a15e7 60436:9c630fb92215
43 Because the mail-composition buffer is an ordinary Emacs buffer, you can 43 Because the mail-composition buffer is an ordinary Emacs buffer, you can
44 switch to other buffers while in the middle of composing mail, and switch 44 switch to other buffers while in the middle of composing mail, and switch
45 back later (or never). If you use the @kbd{C-x m} command again when you 45 back later (or never). If you use the @kbd{C-x m} command again when you
46 have been composing another message but have not sent it, you are asked to 46 have been composing another message but have not sent it, you are asked to
47 confirm before the old message is erased. If you answer @kbd{n}, the 47 confirm before the old message is erased. If you answer @kbd{n}, the
48 @samp{*mail*} buffer is left selected with its old contents, so you can 48 @samp{*mail*} buffer remains selected with its old contents, so you can
49 finish the old message and send it. @kbd{C-u C-x m} is another way to do 49 finish the old message and send it. @kbd{C-u C-x m} is another way to do
50 this. Sending the message marks the @samp{*mail*} buffer ``unmodified,'' 50 this. Sending the message marks the @samp{*mail*} buffer ``unmodified,''
51 which avoids the need for confirmation when @kbd{C-x m} is next used. 51 which avoids the need for confirmation when @kbd{C-x m} is next used.
52 52
53 If you are composing a message in the @samp{*mail*} buffer and want to 53 If you are composing a message in the @samp{*mail*} buffer and want to
287 287
288 @example 288 @example
289 alias maingnu gnu@@gnu.org local-gnu 289 alias maingnu gnu@@gnu.org local-gnu
290 @end example 290 @end example
291 291
292 Emacs also recognizes include commands in @samp{.mailrc} files. 292 @noindent
293 Addresses specified in this way should use doublequotes around an
294 entire address when the address contains spaces. But you need not
295 include doublequotes around parts of the address, such as the person's
296 full name. Emacs puts them in if they are needed. For example,
297
298 @example
299 alias chief-torturer "George W. Bush <bush@whitehouse.gov>"
300 @end example
301
302 @noindent
303 is correct. Emacs will insert the address as @samp{"George W. Bush"
304 <bush@whitehouse.gov>}.
305
306 Emacs also recognizes ``include'' commands in @samp{.mailrc} files.
293 They look like this: 307 They look like this:
294 308
295 @example 309 @example
296 source @var{filename} 310 source @var{filename}
297 @end example 311 @end example
361 expansion as well. Here's how to do that: 375 expansion as well. Here's how to do that:
362 376
363 @smallexample 377 @smallexample
364 (add-hook 'mail-mode-hook 378 (add-hook 'mail-mode-hook
365 (lambda () 379 (lambda ()
366 (substitute-key-definition 380 (define-key
367 'next-line 'mail-abbrev-next-line 381 mail-mode-map [remap next-line] 'mail-abbrev-next-line)
368 mail-mode-map global-map) 382 (define-key
369 (substitute-key-definition 383 mail-mode-map [remap end-of-buffer] 'mail-abbrev-end-of-buffer)))
370 'end-of-buffer 'mail-abbrev-end-of-buffer
371 mail-mode-map global-map)))
372 @end smallexample 384 @end smallexample
373 385
374 @node Mail Mode 386 @node Mail Mode
375 @section Mail Mode 387 @section Mail Mode
376 @cindex Mail mode 388 @cindex Mail mode
501 address by typing @kbd{M-@key{TAB}} (@code{mail-complete}). It 513 address by typing @kbd{M-@key{TAB}} (@code{mail-complete}). It
502 inserts the full name corresponding to the address, if it can 514 inserts the full name corresponding to the address, if it can
503 determine the full name. The variable @code{mail-complete-style} 515 determine the full name. The variable @code{mail-complete-style}
504 controls whether to insert the full name, and what style to use, as in 516 controls whether to insert the full name, and what style to use, as in
505 @code{mail-from-style} (@pxref{Mail Headers}). (If your window 517 @code{mail-from-style} (@pxref{Mail Headers}). (If your window
506 manager defines @kbd{M-@key{TAB}} to switch windows, you can type this 518 manager defines @kbd{M-@key{TAB}} to switch windows, you can type
507 Emacs command as @kbd{@key{ESC} @key{TAB}}.) 519 @kbd{@key{ESC} @key{TAB}} or @kbd{C-M-i}.)
508 520
509 For completion purposes, the valid mailing addresses are taken to be 521 For completion purposes, the valid mailing addresses are taken to be
510 the local users' names plus your personal mail aliases. You can 522 the local users' names plus your personal mail aliases. You can
511 specify additional sources of valid addresses; see the customization 523 specify additional sources of valid addresses; see the customization
512 group @samp{mailalias} to see the variables for customizing this 524 group @samp{mailalias} to see the variables for customizing this
624 To include a file in the outgoing message, you can use @kbd{C-x i}, 636 To include a file in the outgoing message, you can use @kbd{C-x i},
625 the usual command to insert a file in the current buffer. But it is 637 the usual command to insert a file in the current buffer. But it is
626 often more convenient to use a special command, @kbd{C-c C-i} 638 often more convenient to use a special command, @kbd{C-c C-i}
627 (@code{mail-attach-file}). This command inserts the file contents at 639 (@code{mail-attach-file}). This command inserts the file contents at
628 the end of the buffer, after your signature if any, with a delimiter 640 the end of the buffer, after your signature if any, with a delimiter
629 line that includes the file name. 641 line that includes the file name. Note that this is not a MIME
642 attachment.
630 643
631 @vindex mail-mode-hook 644 @vindex mail-mode-hook
632 @vindex mail-setup-hook 645 @vindex mail-setup-hook
633 Turning on Mail mode (which @kbd{C-x m} does automatically) runs the 646 Turning on Mail mode (which @kbd{C-x m} does automatically) runs the
634 normal hooks @code{text-mode-hook} and @code{mail-mode-hook}. 647 normal hooks @code{text-mode-hook} and @code{mail-mode-hook}.