Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    have mail use ~/.signature as a signature ?

    Reply
    wizzleteet | # 1 | 2010-11-03, 15:18 | Report

    Hi All,

    See subject, is it possible ?

    Why ?
    Cronjob runs python script every day on my linux box and crafts a fresh (text-based, but could also be html) signature.
    You know, a fortune and other useless info =)
    I would like to have that on my n900, please.

    thx
    wzzl

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kureyon | # 2 | 2010-11-03, 16:45 | Report

    The signature is stored in that abomination known as gconf under "/apps/modest/accounts". You could write a little script to set it, but I'm not sure how to give it multiline values.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    jacktanner | # 3 | 2010-11-03, 17:00 | Report

    Speaking of... My sig contains
    Code:
    <foo>
    It gets rendered as
    Code:
    &lt;foo&gt;
    . What gives?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kureyon | # 4 | 2010-11-03, 17:03 | Report

    Probably something to do with HTML (formatted text) mail.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    v2px | # 5 | 2010-11-03, 17:46 | Report

    sorry for OT but..
    gconf sucks

    Edit | Forward | Quote | Quick Reply | Thanks

     
    jacktanner | # 6 | 2010-11-03, 19:32 | Report

    I think this is related: https://bugs.maemo.org/show_bug.cgi?id=11451

    Re: OP's question - can you have gconf keys that embed "\n" for newlines?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    benny1967 | # 7 | 2010-11-03, 20:51 | Report

    Originally Posted by jacktanner View Post
    Re: OP's question - can you have gconf keys that embed "\n" for newlines?
    must be. my signature contains 3 lines, and it's displayed as 3 lines when i read it with gconftool-2

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lma | # 8 | 2010-11-04, 09:37 | Report

    Bug 3941 has the same root cause. IMHO converting the message to HTML and back is completely broken behaviour :-(

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kureyon | # 9 | 2010-11-04, 09:45 | Report

    Originally Posted by benny1967 View Post
    must be. my signature contains 3 lines, and it's displayed as 3 lines when i read it with gconftool-2
    Yeah I know that Problem is how to use that pos gconftool-2 to set it?

    I tried:

    Code:
    gconftool-2 --type=string --set /apps/modest/accounts/account_name/signature "name\ncompany\nwebsite"
    This just appears in modest literally (with the \n not converted to newlines)

    Also:

    Code:
    gconftool-2 --type=string --set /apps/modest/accounts/account_name/signature `echo -e "name\ncompany\nwebsite\n"`
    
    Error setting value: Bad key or directory name: "company": Must begin with a slash (/)


    Also if I use modest to edit the signature then do:

    Code:
    gconftool-2 --get /apps/modest/accounts/account_name/signature > sig.txt
    and look at it in using "hexdump -c":

    Code:
    0000000   n   a   m   e  \n   c   o   m   p   a   n   y  \n   w   e   b
    0000010   s   i   t   e  \n
    Assuming that gconftool-2 --get gives a verbatim output then it appears that the signature is being stored as expected with no extraneous control codes or other junk.

    I've been googling around on how to set multiline values, and values with control codes using gconftool-2 but most of the "relevant" hits were just a rehash of the manpage which itself is short of examples.

    Allow me to quote a comment from one of the websites that I found:
    Originally Posted by
    God bless gconf creators…

    They had to feel really down to give the birth to such useless and obscure crap like gconf.
    They said it was created to help administrators…I wonder if they asked firstly to some administrators if they would prefer plain clean text files instead of such rubbish.
    That sums it up pretty neatly I think.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by kureyon; 2010-11-04 at 09:47.
    The Following User Says Thank You to kureyon For This Useful Post:
    benny1967

     
    andresmp | # 10 | 2011-05-12, 21:54 | Report

    recovering old post.

    so can I write script of some kind for the signature? kind of like the bash ones that can be done for evolution?

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout