Re: [Evolution] Signature from a script...



On Sat, 2004-02-21 at 17:59, Ignacio Más Ivars wrote:
Hi all!

I have been trying to find the answer yo this question in the knowledge
base, since it seems to be as quite common, but I could not find it, so
sorry if it has been answered before! I am trying to create a signature
that merely takes the output of the fortune command, but it seems that
evolution is unable to recognize the new line code, so everything
finishes in the same line, which looks quite ugly! The script is just
like this:

/usr/games/fortune -s

Is there any special option that I can enable so that evolution does not
eat the LF characters in the output of fortune?

It may not be in the knowledge base but it is in the archives.  You have
to keep in mind that for some reason Evo expects the signature to be
html-formatted.  You'll probably have to escape the html in order to get
the desired output.

You should edit the script to something like:
#!/bin/bash

printf "<pre>-- \n"
/usr/games/fortune -s
printf "</pre>\n"

Don't forget the space after the --!  

...and another question, which is probably a bug: I am unable to edit or
modify a script in the signatures menu. I write a simple name for the
script, like 'Quote' and fill in the command and evolution complains
'You must specify a valid script name'... there is no way to enter a new
script in the signatures tab, since the name is not recognized... is
this a known bug or am I doing something inherently wrong?

This works for me, is the script in your path?  If not enter the full
path, if it still doesn't work somebody else here will have to help
you...

HTH

Bram
-- 
# Mertens Bram "M8ram"   <bram-mertens linux be>     Linux User #249103 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB      i686                256MB RAM #
#   6:13pm  up 29 days 21:51,  9 users,  load average: 0.28, 0.14, 0.14 #




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