Edit file File name : jed018.html Content :<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="generator" content="hevea 2.35"> <link rel="stylesheet" type="text/css" href="jed.css"> <title>Mail</title> </head> <body > <a href="jed017.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="index.html"><img src="contents_motif.svg" alt="Up"></a> <a href="jed019.html"><img src="next_motif.svg" alt="Next"></a> <hr> <h2 id="sec35" class="section">17 Mail</h2> <p>This section applies to Unix and VMS systems only. On these systems, it is possible to compose and send mail directly using <span style="font-weight:bold">jed</span>. This assumes that the Unix system has <code class="verb">/usr/ucb/mail</code>. It is trivial to modify <code class="verb">mail.sl</code> to support another Unix mailer. For VMS, <span style="font-weight:bold">jed</span> uses the callable mail interface present on VMS versions 5.0 and later.</p><p>The default binding for the mail is <span style="font-variant:small-caps">Ctrl-X m</span>. Alternatively, one may press <span style="font-variant:small-caps">Esc X</span> and enter <code class="verb">mail</code> at the <span style="font-family:monospace">M-x</span> prompt. The mail function will cause a window to open with a buffer called <code class="verb">*mail*</code> which contains the three lines: </p><pre class="verbatim"> To: Subject: ---text follows this line--- </pre><p> Simply enter the email address of the person that you want to send the mail to on the line containing <span style="font-family:monospace">To:</span> and put the subject of the message on the next line labeled <span style="font-family:monospace">Subject:</span>. The text that you wish to mail follows the line labeled <span style="font-family:monospace">---text follows this line---</span> which is used by <span style="font-weight:bold">jed</span> as a marker. After you have composed the mail message, press <span style="font-variant:small-caps">Esc X</span> and enter <code class="verb">send</code> at the <code class="verb">M-x</code> prompt. For example, the following is an email requesting to be put on the <span style="font-weight:bold">jed</span> mailing list:</p><pre class="verbatim"> To: jed@jedsoft.org Subject: jed mailing list ---text follows this line--- Hi, Please add me to the JED mailing list so that I may be notified of upcoming releases of JED. --Maria </pre><p>For VMS systems, the above example will probably fail because an internet address has been used for the example. For systems using a TCP/IP package, it may be necessary to change <span style="font-family:monospace">jed@jedsoft.org</span> to something like <span style="font-family:monospace">smtp%"jed@jedsoft.org"</span>.</p><p>The mail function looks for a user defined hook called <code class="verb">mail_hook</code> and execute it if it exists. This hook may be used to bind certain keys in the keymap associated with the <code class="verb">*mail*</code> buffer. For example,</p><pre class="verbatim"> define mail_hook () { local_unsetkey ("^C"); local_setkey ("send", "^C^C"); } </pre><p>defines the key <span style="font-variant:small-caps">Ctrl-C Ctrl-C</span> in the mail keymap to perform the <code class="verb">send</code> function. Other possibilities include binding a key sequence, say <span style="font-variant:small-caps">Ctrl-C Ctrl-W</span>, to a function that inserts the contents of a signature file.</p> <hr> <a href="jed017.html"><img src="previous_motif.svg" alt="Previous"></a> <a href="index.html"><img src="contents_motif.svg" alt="Up"></a> <a href="jed019.html"><img src="next_motif.svg" alt="Next"></a> </body> </html> Save