Template Draft Files Set Headers

[previous] [next] [table of contents] [index]

You can change the default header of your mail messages. That's a handy way to put in changes that you want made to the headers of all (or most) of the messages you send.

The first time you click the Compose Message button, xmh runs the MH comp command and reads a copy of the header that comp makes. (It actually runs comp -file tempfile -nowhatnowproc -nodraftfolder and gets a copy of tempfile.) It does the same kind of thing for the Reply and Forward commands.

By default, those MH commands read the template draft header files named components, replcomps, and forwcomps. To change the xmh draft header, you can change those template draft files.

For instance, if you make a components file like this:

To:
Reply-to: ehuser@asun.xxx.yyy.zzz
cc:
Fcc: outbox
Subject:
---------
that's what the default fields in your composition window will look like when you use Compose Message.

Note that xmh only runs comp once per xmh session and saves the result. Therefore, if you change your components file, you'll need to restart xmh for the changes to take effect there. But xmh has to run the MH repl and forw commands before each message that you reply to or forward. Your changes to replcomps and forwcomps take effect right away.

[Table of Contents] [Index] [Previous: Conflicts Between xmh and MH Customization] [Next: Changing Table of Contents]


Last change $Date: 1996/06/06 15:14:48 $

This file is from the third edition of the book MH & xmh: Email for Users & Programmers, ISBN 1-56592-093-7, by Jerry Peek. Copyright © 1991, 1992, 1995 by O'Reilly & Associates, Inc. This file is freely-available; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more information, see the file copying.htm.

Suggestions are welcome: Jerry Peek <jpeek@jpeek.com>