On 10/27/06, Duff Mckagan <mckagan@gmail.com> wrote:
On 10/27/06, Steve Reilly <sfsmiley@yahoo.com> wrote:
Hi,
anyone know how you would go about having the ouput of a system command as the footer for an email? like uname, uptime, etc.
is it possible?
thanks.
In KMail, I have seen an option that may do what you want. It is found under your account, in the "Signature" section.
I don't remember the exact navigation path, but I will tell you later.
Okay..here it is. This is what I found out. :) Excerpt from this<http://docs.kde.org/development/en/kdepim/kmail/configure-identity.html>link. Check the Enable signature option if you want to be able to append the signature when using this identity. To *automatically* append it to every new message you also have to select Automatically append signature in the Composer configuration page. KMail can obtain the signature text from various sources. The traditional way on Unix is to read the text from a file called .signature in your home folder. This file can be shared between several programs, so you get the same signature in each mail program you use. To read the text from a text file you select Obtain signature text from file. Enter the filename in the Specify file edit field or hit the button to the right of it to browse your filesystem. If you want to edit the file, hit the Edit File button. KMail can also read the signature text from the output of a command. Thus, you can use programs such as *fortune* to create a new signature text for every message. Everything the program prints onto stdout is caught and used as the signature text. To read the text from the output of a command you select Obtain signature text from Output of Command. Enter the command (preferably with full path) in the Specify command edit field. As a third option, you can enter the signature text directly in KMail's configuration dialog. To do this, select Obtain signature text from input field below and enter the text into the appearing text box. Note On the Internet, signatures are by convention separated from the body of the message by a line containing only the three character "-- " (dash, dash, space). KMail will automatically prepend the signature text with this line if it is not already present in the signature text. If you do not wish the separator to be prepended automatically by KMail, simply add it to the signature text yourself. -- http://mckagan.googlepages.com