[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdepim-users
Subject:    Re: [kdepim-users] ? Howto use some output into a Signature ?
From:       Adriaan de Groot <groot () kde ! org>
Date:       2007-03-21 11:01:22
Message-ID: 200703211251.36993.groot () kde ! org
[Download RAW message or body]

On Wednesday 21 March 2007 11:36, Joao-Philippe wrote:
> On Wednesday 21 March 2007 14:10, Boyan Tabakov wrote:
> > That great - someone noticed my signatures! :) Another thing you can do
> > is write a simple shell/other script that gives more control on the
> > output. In my case this is a perl script that prints some extra stuff
> > besides the fortune output (and furtune uses my custom made Nightwish
> > quotes).
>
> On my Slack box, I got a "hitchhiker" fortune, but it isn't that great.
> Yep ! share your script ! Not that I speak anything Perl...

Here's one I use, which you can easily adapt to read the strings from a file. 
I've removed the taglines I use, just fill in @tags and perhaps print some 
fixed strings at the end.

#! /usr/bin/env perl
use strict;
use Text::Wrap;

my @tags = (
	# Put strings here
        );

my $l = 0 + @tags;

$Text::Wrap::columns = 72;
print "-- \n"; # email signature delimiter
print wrap('','',$tags[int(rand($l))]) . "\n";
# Print other static content if you wish


-- 
KDE Quality Team  http://www.englishbreakfastnetwork.org/
GPG: FEA2 A3FE    http://people.fruitsalad.org/adridg/
    "It is impossible to make an emphatic point with only two arms."
_______________________________________________
KDE PIM users mailing list
kdepim-users@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic