{The `mail' Mode

Introduction
The mail mode of jedit is intended for composing email.

This document describes the mail mode available with version 4.0/4.0b of jedit.

The Mail Menu and the Buttonbar
The mail mode provides a mode­specific `Mail' menu and buttonbar each of which provides a `Sign' command which inserts the contents of your ~/.signature file at the bottom of your mail.  (The signature is automatically inserted in a fixed­pitch font, in case you normally use a proportional font and you have ASCII graphics in your .signature, not that I recommend that practise. :-)  The `Mail' menu also duplicates the `Done' command found under `File'.

Preferences
By default, the mail mode displays breaks in long lines at character boundaries rather than just at word boundaries; this makes it a little easier to see if you have a line that's too long for email (assuming your window itself isn't too wide and you use a fixed­pitch font).  Also, mail mode will automatically insert newlines for you as you approach the right margin.  (There are two different concepts here - whether real newlines are inserted, creating a new line even if you didn't hit the Return key, and how long lines are displayed on the screen.  When you're composing email, it's a good idea not to let your lines get any longer than about 72 characters.)

Of course, you can change these preferences on jedit's Mode­Specific Preferences panel.

See Also
	The `mh' Mode
	The `exmh' Mode

Evolution
Future Directions
* The mail mode is extremely minimal right now; I'd like to extend it a bit.  For instance, it should let you choose among several signature files, and maybe it should know how to reformat paragraphs of quoted text (preceded with `>').

* I'd also like to add MIME support at some point, but I'm not sure how to do that in a generic way, since most mail programs that the mail mode would be used with don't provide access to the headers.  (MH does, but there's a separate mode for MH.)
} {{{sel {6.61 6.69}} {jdoc:xref:link {4.17 4.22 14.55 14.80 17.1 17.14 18.1 18.16}} {jdoc:anchor:anchorname {3.0 4.0 8.0 9.0 11.0 12.0 16.0 17.0}} {richtext:font:roman {2.0 3.0 4.0 4.4 4.8 4.17 4.22 6.28 6.32 6.73 6.78 8.0 9.0 9.4 9.8 9.140 9.152 9.332 9.342 11.0 12.0 12.16 12.20 12.283 12.287 12.420 12.424 12.495 12.501 12.530 12.539 14.47 14.52 16.0 17.0 17.1 17.14 18.1 18.16 20.0 22.0 22.6 22.10 22.231 22.232 24.135 24.139 25.0}} {richtext:font:italic {12.420 12.424 12.530 12.539}} {richtext:font:bold {9.140 9.152 9.332 9.342 12.495 12.501}} {richtext:font:bolditalic {17.1 17.14 18.1 18.16}} {richtext:font:typewriter {4.4 4.8 4.17 4.22 6.28 6.32 6.73 6.78 9.4 9.8 12.16 12.20 12.283 12.287 14.47 14.52 22.6 22.10 22.231 22.232 24.135 24.139}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0 8.0 9.0 11.0 12.0 16.0 17.0 20.0 21.0}} {richtext:font:heading2 {21.0 22.0}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:link:jedit.jdoc {4.17 4.22}} {jdoc:link:jedit.jdoc#Mode­Specific_Preferences {14.55 14.80}} {jdoc:anchorname:See_Also {16.0 17.0}} {jdoc:anchorname:The_Mail_Menu_and_the_Buttonbar {8.0 9.0}} {jdoc:anchorname:Preferences {11.0 12.0}} {jdoc:link:jeditmodes/mh-mode.jdoc {17.1 17.14}} {jdoc:link:jeditmodes/exmh-mode.jdoc {18.1 18.16}}} {{abbrevstart 12.263} {matchend 15.0} {richptr 25.0} {abbrevend 12.273} {insert 6.69} {anchor 12.273} {matchstart 15.0} {current 17.14}}}