Re: [Evolution] Rotating signature
- From: Bram Mertens <bram-mertens linux be>
- To: evolution mailing list <evolution ximian com>
- Subject: Re: [Evolution] Rotating signature
- Date: Fri, 21 May 2004 15:38:24 +0200
On Fri, 2004-05-21 at 09:52, Coume - Lubox.com wrote:
Hello,
I discovered yesterday the ability to use script in the signature under Evolution...
Consequently, I'm kind of sure it is possible to create rotating signature in order that each time you send
an email you have another one.
Before spending hours try to figure out how to do that :) I would like to know if one of you know how to do
that :D
* Install fortune
* Create a script that inserts the appropriate tags [1] and calls
fortune.
or
* create some text-files that contain the text you want to appear in
your sig and name them text001, text002, etc.
* import a random file into your sig each time your script is called
To help you started I'll include my script here:
--- start ---
#!/bin/bash
CURRENT_UPTIME=$(uptime)
CURRENT_KERNEL=$(uname -r)
CURRENT_MACHINE=$(uname -m)
#CURRENT_RELEASE="SuSE 8.2 Pro"
CURRENT_RELEASE=$(rpm -q k_deflt --queryformat %{DISTRIBUTION})
MEM="256MB"
NAME="Mertens Bram \"M8ram\""
EMAIL=$1
LINUXID="Linux User #349737"
printf "<pre>-- \n"
printf "# %-22s %-29s %20s #\n" "$NAME" "$EMAIL" "$LINUXID"
printf "# %-25s kernel %-15s %-5s %8s RAM #\n" "$CURRENT_RELEASE"
"$CURRENT_KERNEL" "$CURRENT_MACHINE" "$MEM"
printf "#%68s #\n" "$CURRENT_UPTIME"
printf "</pre>\n"
--- end ---
This script is called from different scripts to include the appropriate
e-mail address.
HTH
Bram
[1] "-- " [note the space after the --!]
<pre> and </pre> because the signature has to be html formatted
--
# Mertens Bram "M8ram" <bram-mertens linux be> Linux User #349737 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB i686 256MB RAM #
# 3:32pm up 60 days 19:11, 6 users, load average: 0.00, 0.00, 0.00 #
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]