Re: Different signature/tag line each day/email.
On Wed, Jun 14, 2000 at 10:47:35AM -0400, Bob Bell wrote: Wouldn't something like this work and be simpler? set signature='(cat .signature fortune -s) |' I've been playing around with some stuff to put my uptime in my signature. You can see that it works from the sig below. I use the above format to do this set signature='(buildsig)|' Problem is that I have two signatures, the formal one below, and an informal one. So I modified my script to take an argument depending on the sigfile I want to use. send-hook exceptionalminds.com set signature='(buildsig .siginformal)|' This doesn't work. and mutt spits up over it. How do I pass an argument to a script in my .muttrc? Thanks. -- Stand Fast, tjg. Timothy Grant [EMAIL PROTECTED] Chief Technology Officer www.exceptionalminds.com Red Hat Certified Engineer (503) 246-3630 Avalon Technology Group, Inc. fax (503) 246-3124 I have not rebooted for: 32 days 20:22 hours
Re: Different signature/tag line each day/email.
On Wed, Oct 04, 2000 at 01:32:30PM -0700, Timothy Grant wrote: On Wed, Jun 14, 2000 at 10:47:35AM -0400, Bob Bell wrote: Wouldn't something like this work and be simpler? set signature='(cat .signature fortune -s) |' I've been playing around with some stuff to put my uptime in my signature. You can see that it works from the sig below. I use the above format to do this set signature='(buildsig)|' Problem is that I have two signatures, the formal one below, and an informal one. So I modified my script to take an argument depending on the sigfile I want to use. send-hook exceptionalminds.com set signature='(buildsig .siginformal)|' This doesn't work. and mutt spits up over it. How do I pass an argument to a script in my .muttrc? I don't think you do. What I do is this: I have a perl script which does what I want: so much time to a certain event (which I am not using here). I customize it by providing different input times as one input string and an event input string string that describes what will happen x days, etc from now. I provide the time and event to the perl script in a shell script, very brain dead. I have a default send-hook to set up my defaul signature file, below. Then I have send hooks for various lists and/or people which change the signature file to execute the appropriate script. So, where until.pl is the perl script, this is the shell script I use for the Wyoming Libertarian Party, polls.sh: # -*- shell-script -*- # Time-stamp: 2000-10-03 12:23:59 ccurley until.pl "The Wyoming Libertarian Party, http://www.geocities.com/wyolp/ Vote early and vote often! -- W.C. Fields privacy The polls open " "7:00 Nov 7th 2000" And here are some appropriate lines from my .muttrc: send-hook . set signature=~/.signatures/.signature send-hook '~C [EMAIL PROTECTED]' "set signature=~/.signatures/polls.sh|; \ my_hdr Reply-To: [EMAIL PROTECTED]; unset pgp_autosign" send-hook my sweetie's email address set signature=~/.signatures/sweetie.sh| The result for the Wyoming LP list is: -- C^2 The Wyoming Libertarian Party, http://www.geocities.com/wyolp/ Vote early and vote often! -- W.C. Fields The polls open 1 month, 2 days, 14 hours, 39 minutes, 38 seconds from now. Note that mutt provides the signature delimiter, "-- ". You would no doubt be able to simplify this considerably, but that should give you a good start. -- -- C^2 No windows were crashed in the making of this email. Looking for fine software and/or web pages? http://w3.trib.com/~ccurley PGP signature
Re: Different signature/tag line each day/email.
On Wed, Oct 04, 2000 at 04:25:45PM -0600, Charles Curley wrote: How do I pass an argument to a script in my .muttrc? I don't think you do. What I do is this: I have a perl script which does what I want: so much time to a certain event (which I am not using here). I customize it by providing different input times as one input string and an event input string string that describes what will happen x days, etc from now. I provide the time and event to the perl script in a shell script, very brain dead. I have a default send-hook to set up my defaul signature file, below. Then I have send hooks for various lists and/or people which change the signature file to execute the appropriate script. So, where until.pl is the perl script, this is the shell script I use for the Wyoming Libertarian Party, polls.sh: # -*- shell-script -*- # Time-stamp: 2000-10-03 12:23:59 ccurley until.pl "The Wyoming Libertarian Party, http://www.geocities.com/wyolp/ Vote early and vote often! -- W.C. Fields privacy The polls open " "7:00 Nov 7th 2000" And here are some appropriate lines from my .muttrc: send-hook . set signature=~/.signatures/.signature send-hook '~C [EMAIL PROTECTED]' "set signature=~/.signatures/polls.sh|; \ my_hdr Reply-To: [EMAIL PROTECTED]; unset pgp_autosign" send-hook my sweetie's email address set signature=~/.signatures/sweetie.sh| The result for the Wyoming LP list is: -- C^2 The Wyoming Libertarian Party, http://www.geocities.com/wyolp/ Vote early and vote often! -- W.C. Fields The polls open 1 month, 2 days, 14 hours, 39 minutes, 38 seconds from now. So, when I thought I might have to create a separate script for each sig I wasn't wrong! That's too bad, but it has the advantage of being easy to implement! Thanks for the response! -- Stand Fast, tjg. Timothy Grant [EMAIL PROTECTED] Chief Technology Officer www.exceptionalminds.com Red Hat Certified Engineer (503) 246-3630 Avalon Technology Group, Inc. fax (503) 246-3124 I have not rebooted for: 32 days 22:33 hours
Re: Different signature/tag line each day/email.
On Wed, Oct 04, 2000 at 04:25:45PM -0600, Charles Curley wrote: On Wed, Oct 04, 2000 at 01:32:30PM -0700, Timothy Grant wrote: [snip] Problem is that I have two signatures, the formal one below, and an informal one. So I modified my script to take an argument depending on the sigfile I want to use. send-hook exceptionalminds.com set signature='(buildsig .siginformal)|' This doesn't work. and mutt spits up over it. How do I pass an argument to a script in my .muttrc? I don't think you do. [snip] What about: send-hook exceptionalminds.com 'set signature="(buildsig .siginformal)|"' (note the nesting of double quotes in single quotes) Ben -- Benjamin Korvemaker Windows is perfectly stable. [EMAIL PROTECTED] As long as you don't do anything unexpected. Like move the mouse. PGP signature
Re: Different signature/tag line each day/email.
Timothy Grant [EMAIL PROTECTED] wrote on Wed, 04 Oct 2000: send-hook exceptionalminds.com set signature='(buildsig .siginformal)|' This doesn't work. and mutt spits up over it. How do I pass an argument to a script in my .muttrc? I'm using signature="randsig.sh ~/.sig-body|" currently, and it works just fine. I think you have a quoting issue with the send-hook using the set signature command, like someone else posted. I use various send-hooks to change my signature, but they all take the form of "source .mutt/profile-whatever" so I can just edit the profile files, and not have to worry about quoting all the time. Also worth noting is that you don't need the ()'s unless you want the output of more than one command grouped together. Hope this helps, Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / "I'm not cheap, but I am on special this week."
Re: Different signature/tag line each day/email.
On Jun/14/2000, eric a . Farris wrote: i use signify (part of Debian GNU/Linux, couldn't find a home page for I use it too :-) It's ... well, perfect :-) And it's done in Perl, what makes it even more perfect :-D The homepage, I guess, should be the one of the company that did it, Verisim. Try http://www.verisim.com, or .org, or ... :-) signify can also run as a FIFO if you use other mail agents occasionally Yes, but I tried to use it this way and had a few problems :-m The process writing on the fifo died quite often, I don't know very well why :-m Anyway, as I only use Mutt for everything related to mail (mail, news, fido), it's no problem now :-) -- Roberto Suarez Soto ·Orange is young full of daring [EMAIL PROTECTED]· But very unsteady in the first go-round Corgo/Lugo/Galicia/Spain ·
Re: Different signature/tag line each day/email.
On 2000-06-14 03:20:03 +0300, Mikko Hänninen wrote: It's a pretty simple thing, attached is the perl script randline.pl that I wrote for my own use. It prints out a random line from the file given as argument. set signature="fortune -s|" -- Barometer, n.: An ingenious instrument which indicates what kind of weather we are having. -- Ambrose Bierce, "The Devil's Dictionary"
Re: Different signature/tag line each day/email.
Thomas Roessler proclaimed on mutt-users that: On 2000-06-14 03:20:03 +0300, Mikko Hänninen wrote: It's a pretty simple thing, attached is the perl script randline.pl that I wrote for my own use. It prints out a random line from the file given as argument. set signature="fortune -s|" This helps tag a fortune cookie to your regular .sig ~/muttsig - symlinked to ~/.mutt #!/bin/sh WHOAMI=`whoami` if [ -f /tmp/sig.$USER ] then rm -f /tmp/sig.$USER fi cat $HOME/.signature /tmp/sig.$USER /usr/local/games/bin/fortune -s /tmp/sig.$USER /usr/local/bin/mutt set signature=/tmp/sig.your_login_here -- Suresh Ramasubramanian + [EMAIL PROTECTED] "If you have to hate, hate gently"
Re: Different signature/tag line each day/email.
Hi all! On Wed, 14 Jun 2000, Nigel Tamplin wrote: I have noticed that many people have a humorous tag line at the end of their emails. I have also read in the mutt docs that you can pipe the output of a command into your signature. I want to combine these, so that when I compose an email it picks a tag line from a collection of tag lines and sets that as the signature. Are there any tools/ scripts written that do this? I use sigrot. It has an archive (aka an flat file) with signatures, each separated by an EMPTY line. You can also define a prefix (and mayby a sufffix) which are prepended and appended to the signature. Thats written into your ~/.signature. I use to change my sig daily via cron. And at last mutt also supports different signatures ... for instance to differ business and privat mail. Good luck. Ciao for now, Dirk -- Dirk Ruediger, Rostock, Germany Anyone can become angry -- that is easy; but to be angry with the right person, to the right degree, at the right time, for the right purpose and in the right way -- that is not easy. -- Aristotle
Re: Different signature/tag line each day/email.
On Wed, Jun 14, 2000 at 03:20:03AM +0300, Mikko H?nninen wrote: Nigel Tamplin [EMAIL PROTECTED] wrote on Wed, 14 Jun 2000: I want to combine these, so that when I compose an email it picks a tag line from a collection of tag lines and sets that as the signature. Are there any tools/ scripts written that do this? It's a pretty simple thing, attached is the perl script randline.pl that I wrote for my own use. It prints out a random line from the file given as argument. [nifty little Perl script deleted] i use signify (part of Debian GNU/Linux, couldn't find a home page for it other than the Debian page): http://www.debian.org/Packages/stable/mail/signify.html source is available from there. it's pretty powerful, supporting nifty things like aligning left/center/right, weighting some random parts so they appear more/less often, arbitrary inline Perl, and some other cool things. once it's set up, (i can give you my .signify file if you want a sample) just add this line to your .muttrc: set signature=signify| signify can also run as a FIFO if you use other mail agents occasionally (shame on you :) -- eric a. Farris [EMAIL PROTECTED] www.bigfoot.com/~eafarris Systems Administrator Appalachian Laboratory, UMCES www.al.umces.edu Celebrate the Linux "WE'RE NEVER GOING OUT OF BUSINESS SALE" by downloading an entire operating system, apps, games, utilities, and source code at http://www.debian.org/ Computers are worthless. They can only give you answers. -- Pablo Picasso
Re: Different signature/tag line each day/email.
On Wed, Jun 14, 2000 at 02:49:48PM +0530, Suresh Ramasubramanian [EMAIL PROTECTED] wrote: This helps tag a fortune cookie to your regular .sig ~/muttsig - symlinked to ~/.mutt #!/bin/sh WHOAMI=`whoami` if [ -f /tmp/sig.$USER ] then rm -f /tmp/sig.$USER fi cat $HOME/.signature /tmp/sig.$USER /usr/local/games/bin/fortune -s /tmp/sig.$USER /usr/local/bin/mutt set signature=/tmp/sig.your_login_here Wouldn't something like this work and be simpler? set signature='(cat .signature fortune -s) |' -- Bob BellCompaq Computer Corporation Software Engineer 110 Spit Brook Rd - ZKO3-3/U14 TruCluster GroupNashua, NH 03062-2698 [EMAIL PROTECTED] 603-884-0595
Re: Different signature/tag line each day/email.
Bob Bell proclaimed on mutt-users that: set signature='(cat .signature fortune -s) |' Not bad at all :) -- Suresh Ramasubramanian + [EMAIL PROTECTED] http://www.pcquest.com/june00/linux_spam.asp
Different signature/tag line each day/email.
Hello, I have noticed that many people have a humorous tag line at the end of their emails. I have also read in the mutt docs that you can pipe the output of a command into your signature. I want to combine these, so that when I compose an email it picks a tag line from a collection of tag lines and sets that as the signature. Are there any tools/ scripts written that do this? Thanks, -- Nigel Tamplin. email: [EMAIL PROTECTED]
Re: Different signature/tag line each day/email.
Nigel Tamplin [EMAIL PROTECTED] wrote on Wed, 14 Jun 2000: I want to combine these, so that when I compose an email it picks a tag line from a collection of tag lines and sets that as the signature. Are there any tools/ scripts written that do this? It's a pretty simple thing, attached is the perl script randline.pl that I wrote for my own use. It prints out a random line from the file given as argument. Hope this is of use to you, Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / The knack of flying: learning how to throw yourself at the ground and miss. #!/usr/bin/perl if ($ARGV[0]) { open(FILE, "$ARGV[0]") || die "Cannot open file $ARGV[0] for reading: $!\n"; $lines = 0; srand( time() + $$ ); #srand( (time() 1) + $$ ); #srand( time() ^ ($$ + ($$ 15)) ); while(FILE) {$lines++;} seek(FILE, 0, 0); $linenr = 0; for($randline = int(rand($lines)) + 1; $linenr $randline; $linenr++) { $line = FILE; } close(FILE); print $line; } else { print STDERR "No file.\n"; }