Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] Simple dynamic signature generator with mutt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 471
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Mon Dec 19, 2005 8:45 am    Post subject: [HOWTO] Simple dynamic signature generator with mutt Reply with quote

I've always perfered dynamic signatures, and I used to run a cron script to create a new one once per minute. but that was a waste of my cpu, so I've been looking for a better solution. Of course, if you want it, best way is to build it yourself.

So first I created a script named sigmaker

Code:
# /bin/sh
alias kernelver="uname -r"
echo "Posted from $(hostname) at $(dnsdomainname) on $(date) running Gentoo Linux, Kernel $(kernelver)" > .signature
uptime >> .signature
fortune >> .signature
echo "nqs at nqs dot is-a-geek dot net" >> .signature
vim $1


I then added this to my .muttrc:

Code:
set editor=~/sigmaker


don't forget to run chmod 0700 on the script.

every time you start or reply to a new masil in mutt, a different .sig will be generated.

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum