Results 1 to 10 of 10

Thread: [SOLVED] HTML Signatures, any way to manually edit?

  1. #1
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default [SOLVED] HTML Signatures, any way to manually edit?

    Now that formatted signatures are available from Zimbra 5.0.4 I just spent a moment setting one up, and while being able to set character size and colour is a very nice addition to the plaintext alternative, I couldn't help find myself being frustrated at not being able to code it myself.

    I know that wont be for everyone, so I dont mind editing a resource file by hand if I can find it (I'm currently grepping through all the files in the zimbra tree looking for my current sig, but it's taking a while!)

    So when I define a signature, is it stored only in ldap, or is it held in a file I can edit. If it's ldap only, is there a way I can pass a custom string to it?

    Thanks.

  2. #2
    Join Date
    May 2007
    Location
    Ferndale, MI
    Posts
    54
    Rep Power
    8

    Default

    Quote Originally Posted by Dirk View Post
    Now that formatted signatures are available from Zimbra 5.0.4 I just spent a moment setting one up, and while being able to set character size and colour is a very nice addition to the plaintext alternative, I couldn't help find myself being frustrated at not being able to code it myself.

    I know that wont be for everyone, so I dont mind editing a resource file by hand if I can find it (I'm currently grepping through all the files in the zimbra tree looking for my current sig, but it's taking a while!)

    So when I define a signature, is it stored only in ldap, or is it held in a file I can edit. If it's ldap only, is there a way I can pass a custom string to it?

    Thanks.
    Yes, I would also LOVE to know how to manually edit the HTML directly (so as to embed a company logo graphic, etc.).
    mark daniel | actc
    zcs 6 ose | mac pro | mac os x server 10.4.11

  3. #3
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    Ok, the string is not held in a textfile where it'd be nice & easy to edit

    It's in the ldap tables. The following command will show the sig:
    zmprov ga user@domain.tld | grep zimbraPrefMailSignatureHTML

    So I'd assume it'd be a simple matter to inject new text into there from the command line. When I was using the GUI though, I did notice an error informing me that I'd exceeded the 1024 character limit, so this would have to be observed here too I assume.

    So, can I make a cool & professional css sig in just 1k of code? I dont know, but it'll be fun trying.

    In the meantime, does anyone know the synax of the zmprov command to insert a value into this field?

  4. #4
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    Ha! Easy when you try.

    I threw together a little basic html, ignoring everything I've learned about css and compliance with html guidelines and came up with 478 bytes that looked ok. Then I had to do a search & replace to remove all " and replace with '

    Then run
    zmprov ma user@domain.tld zimbraPrefMailSignatureHTML "<this is html></sig>"

    Except I replaced the psudocode with the sig I'd just made. Once zmprov completed, the changes took effect right away. So I headed into the preferences section of the web client and the new sig shows there also, and minor changes can be made inside that editor without destroying everything, which is very nice.

  5. #5
    Join Date
    May 2007
    Location
    Ferndale, MI
    Posts
    54
    Rep Power
    8

    Default

    Hah! Gonna try that today. BTW, you can change that 1k limitation in the CoS for your users. I've bumped mine to 2.5k (to accommodate a privacy statement) without issue.
    mark daniel | actc
    zcs 6 ose | mac pro | mac os x server 10.4.11

  6. #6
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    There is still a bug open for embedding images into the signature. Hopefully we can get some html control as well, that would be nice.

  7. #7
    Join Date
    Jan 2008
    Location
    Gent, Belgium
    Posts
    62
    Rep Power
    7

    Default

    The two main things missing are images and links in the signature.

  8. #8
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    7

    Question

    I think it's not solved...

    I'm in 5.0.5 and i haven't got a bouton in the html menu for add images in signature,like this http://bugzilla.zimbra.com/attachment.cgi?id=7073


  9. #9
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Welcome to the forums,

    The initial work was completed via Bug 6390 - Support formatted (html) signatures

    Dirk has posted a method zmprov ma user@domain.tld zimbraPrefMailSignatureHTML "<this is html></sig>" The thread title is "HTML Signatures, any way to manually edit?" & thus the thread got marked solved.

    You can also vote for these RFE's:
    Bug 27398 - Access to HTML source of signatures from web-ui
    Bug 25797 - RFE: inline/embeded logos in the signature

    Just to orient you a bit:

    Bugs & RFE's (requests for enhancements) can be filed/voted for in Bugzilla & tracked (see priorities & what release their going into) via PMweb.

    The blog has lots of good articles - you might checkout: Open Source Product Management: How do features get into Zimbra?

    Last but definitely not least - the Wiki has all sorts of collective knowledge in it

  10. #10
    Join Date
    Aug 2009
    Location
    Minnesota
    Posts
    16
    Rep Power
    6

    Default

    I'm trying to run the zmprov ma user@domain.tld zimbraPrefMailSignatureHTML "<this is html></sig>" command and having some issues.
    When I run the command as it stands it gives me the args for the command. So I assumed that I would have to add "-" before MA.
    eg zmprov -ma user@domain.tld zimbraPrefMailSignatureHTML "<this is html></sig>"
    However I get the error: cannot specify -m when -l is not specified.
    So I added the -l and it said
    ERROR: account.NO_SUCH_ACCOUNT (no such account: A)
    I know the account exists.
    Any help would be appreciated.

    Release 6.0.4_GA_2038.SLES10_64_20091214220839 SLES10_64 NETWORK edition.
    Last edited by msonen; 03-05-2010 at 11:35 AM. Reason: added version

Similar Threads

  1. HTML Signatures
    By amnz in forum Users
    Replies: 5
    Last Post: 06-21-2011, 01:18 AM
  2. failed to read html content in webmail HTML mode
    By Frederick Cheung in forum Administrators
    Replies: 1
    Last Post: 02-24-2008, 04:32 PM
  3. Replies: 4
    Last Post: 11-13-2007, 08:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •