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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux