Re: [Evolution] Scripting signatures



On Wed, 2004-12-15 at 17:45 +0100, guenther wrote:
I am trying to get a signature block script working in Evo2.0.1 under
SuSE9.2 using Bash 3.00.1(1) (Evolution Menu > Tools > Settings:
Evolution Settings window, Composer Preferences, Signatures tab, Add
script button).

What I am seeing is that when I apply the command "printf" in the script
it doesn't pass the newline (\n) or linefeed (\f) options back to the
signature block of Evo. Using the "echo" command shows the same traits.

for example:
printf "Hello \n\n World"

shows... 
    Hello World 
in the sig block not...
    Hello

    World

Thanks for any help you can give.

Script signatures are evaluated as HTML always, even if you are
composing text/plain mails.

That means, you need to insert "<br>" instead of "\n".

The alternative is to switch off HTML using gconf-editor:

apps->evolution->mail->signatures

There, set 'format="text/plain"' for your specific signature. 

cheers,
-- 
Hanspeter Kunz                  Artificial Intelligence Laboratory
Ph.D. Student                   Department of Information Technology
Email: hkunz ailab ch           University of Zurich
Tel: +41.(0)44.63-54306         Andreasstrasse 15, Office 2.12
http://ailab.ch/people/hkunz    CH-8050 Zurich, Switzerland

Spamtraps: hkunz bogus ailab ch hkunz bogus ifi unizh ch
---
Avoid cliches like the plague.  They're a dime a dozen.




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