Results 1 to 5 of 5

Thread: Signature too large

  1. #1
    StuartDuncan is offline New Member
    Join Date
    Nov 2006
    Posts
    3
    Rep Power
    8

    Default Signature too large

    I'm currently setting up Zimbra and have discovered that the maximum size of the signature block is 1024 characters. Is there any way to change this as I require one and a half times that?

  2. #2
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

    There are two files you need to edit. Change 1024 to whatever you want, like 2048.

    You'll need to stop/restart Zimbra (specifically, openldap and tomcat).

    Code:
    /opt/zimbra/openldap/etc/openldap/schema/zimbra.schema
    
    attributetype ( zimbraPrefMailSignature
            NAME ( 'zimbraPrefMailSignature' )
            DESC 'mail signature'
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024}
            EQUALITY caseIgnoreMatch
            SUBSTR caseIgnoreSubstringsMatch
            SINGLE-VALUE)
    
    /opt/zimbra/conf/attrs/zimbra-attrs.xml 
    
    <attr id="17" name="zimbraPrefMailSignature" type="string" max="1024" cardinality="single" optionalIn="account,identity" flags="domainAdminModifiable">
      <desc>mail signature</desc>
    </attr>
    These files get updated/replaced on upgrades, so you'll have to make the change again.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    StuartDuncan is offline New Member
    Join Date
    Nov 2006
    Posts
    3
    Rep Power
    8

    Default

    Schemers,

    I tried what you suggested but I am still unable to enter a signature larger than 1024 characters. When I do attempt to do so, I get the following message:

    "Signature must be at most 1024 characters"

    I am trialling the open source version of Zimbra and this is the last stumbling block before I can move to user testing.
    Last edited by StuartDuncan; 11-26-2006 at 03:41 PM.

  4. #4
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

    looks like the client has a hardcoded check in ZmPref.js. You'd have to change that as well. That requires unpacking some gzip'd files, editing, repacking. Searching the forums should result in detailed instructions on doing that.

    Ultimately the checks need to be removed from the client, and a better error message returned by the server so the client can display what failed when it tries to modify those prefs.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    StuartDuncan is offline New Member
    Join Date
    Nov 2006
    Posts
    3
    Rep Power
    8

    Unhappy

    I couldn't find any posts regarding unpacking files or ZmPref.js but I did find the ZmPref.js on my system (Which was not compressed) under the /opt/zimbra/apache_tomcat-5.5.15/Webapps/zimbra/js/zimbraMail/prefs/model directory. I modified the ZmPref.MAX_LENGTH[ZmSetting.SIGNATURE] entry but am still not getting any luck.
    Last edited by StuartDuncan; 11-26-2006 at 08:09 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Large ZDB decreasing performance?
    By Guest6400 in forum Administrators
    Replies: 6
    Last Post: 05-31-2007, 08:18 AM
  2. Large number of attachments
    By matthijsberg in forum Users
    Replies: 5
    Last Post: 04-11-2007, 03:41 PM
  3. Replies: 2
    Last Post: 11-15-2006, 12:23 AM
  4. Feature Request: signature from a file
    By Storm16 in forum Developers
    Replies: 1
    Last Post: 11-09-2006, 07:41 AM
  5. Large message operations causing problems.
    By Sam Hunter in forum Administrators
    Replies: 6
    Last Post: 01-31-2006, 05:28 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
  •