Re: mystery of ofrmating evolution signatures.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Aaron Konstam wrote:
In what form do you have to put the signature file in evolution so it is
formatted properly when its displayed in the message.

I have done mine somehow by trial and error but my method is very
screwy. There must be a better way. Does anyone know what it is?

The regular static signatures that I have, I have put in via the Evo GUI. In looking at the files in ~/.evolution/signatures, they all appear to be normal text files, with regular line breaks, etc.

I do have a couple of scripts that I use rarely, mainly just examples of dynamically generated sigs. One of them is in Perl:

#!/usr/bin/perl

# get current kernel version
$version = `uname -r`;

# get current uptime
$uptime = `uptime`;

# get ram
$ram = `cat /proc/meminfo | grep MemTotal`;

# get cpu
$cpu = `cat /proc/cpuinfo | grep "model name"`;

# Linux Version
$ lv = `cat /etc/fedora-release`;

# version string has built-in newline.
print "--<br>";
print "$lv - Kernel: $version<br>";
print "$cpu<br>";
print "$ram<br>";
print "$uptime<br>";

exit(0);



The above then generates:

--
Fedora Core release 6 (Zod) - Kernel: 2.6.18-1.2849.fc6
model name : Mobile Intel(R) Pentium(R) 4 CPU 3.20GHz
MemTotal: 2075224 kB
11:53:40 up 2:31, 0 users, load average: 1.77, 1.38, 1.28


HTH,

Marc Schwartz


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux