Some users like to have a few lines added automatically at the bottom of each message they send.
This is easy to do with comp. Put the line(s) at the end of your components file, and they'll be copied into the draft automatically. Unless you use its -noprepend switch, prompter will prompt you with:
--------Enter initial textand wait for you to type CTRL-D before it copies the rest of the components file into the draft. The example below has a typical components file with a signature at the end. Standard signatures start with a line that contains exactly two dashes and a space (-- ). The space at the end of the line is important. This syntax lets programs detect where the body ends and your signature starts, so it's a good convention to follow.
To: cc: Fcc: outbox Subject: -------- -- Emma H. User, firstname.lastname@example.org, phone +1 301 456-7890You can't add a signature to the template files for the forw or repl -filter commands, though. That's because they add their text (the forwarded message or copy of the original message) after the contents of the forwcomps or replcomps file, respectively. So your signature would be at the start of the draft message.
In repl, you can handle that by adding the signature to the end of your -filter file. mhl reads the filter file, so use a colon (:) before each line of the signature, as shown in the following example:
:-- Emma H. User, email@example.com, phone +1 301 456-7890It's hard to use one of these methods on forwarded messages because the signature goes in the wrong place whether you prepend or noprepend. Some answers are:
To: cc: Fcc: outbox Subject: -------- #<text/plain [Signature] \ |\.-./| Cynthia Pribram * System Administrator \\ |'a a`| O'Reilly Media, Inc. \\ =(= v =)= 103A Morris Street * Sebastopol, CA 95472 \\ /\_^_/\ (800)998-9938 * (707)829-0515 x 218 * fax: (707)829-0104 \| \_/ | firstname.lastname@example.org \ || || / (__||-||__) ^^ ^^In a repl filter file, remember to add the colon (:) to the start of each line of the body -- including the #<text/plain directive.
This file is from the third edition of the book MH & xmh: Email for Users & Programmers, ISBN 1-56592-093-7, by Jerry Peek. It 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 COPYING.
Copyright © 1991, 1992, 1995 O'Reilly Media, Inc.
Copyright © 1996, 1997, 1999, 2000, 2002, 2004 Jerry Peek
Last modified: 2006-05-31 15:13:43 -0700