Results 1 to 6 of 6

Thread: bulk signature provisioning

  1. #1
    BrianA is offline Senior Member
    Join Date
    Jan 2008
    Posts
    70
    Rep Power
    7

    Default bulk signature provisioning

    Hi,

    I am trying to set the signatures for all my users. I have a script that creates the signature in html and in plain text.

    the problem is that if in the user preferences they have the signature "format as plain text" then the html signature gets broken.

    how do I change this setting for all users to be "format as html"

    I have done zmprov ga on my account with the setting changed, and there is no changed ldap setting in the output before and after changing the option.

    thanks in advance

    Brian

  2. #2
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    disclaimer: this code is written off the top of my head i havn't tested it it's meant to get you on the right path. if you don't understand what it's doing then you may not want to run it

    make a shell script and run as zimbra user

    Code:
    #!/bin/bash
    for i in `zmprov gaa`
    do
       zmprov ma $i zimbraPrefComposeFormat html
    done
    that will loop through all accounts and set the preferred compose to html

  3. #3
    BrianA is offline Senior Member
    Join Date
    Jan 2008
    Posts
    70
    Rep Power
    7

    Default close, but no cigar...

    that changes the default email edit mode, not the signature edit mode..



    I am doing this,

    set up the account detail..
    Code:
             print qq{ca $uid\@$domain $password\n};
             print qq{ma $uid\@$domain zimbraCOSid "$cosid"\n};
             print qq{ma $uid\@$domain givenName "$given"\n};
             print qq{ma $uid\@$domain sn "$surname"\n};
             print qq{ma $uid\@$domain cn "$uid"\n};
             print qq{ma $uid\@$domain title "$title"\n};
             print qq{ma $uid\@$domain displayName "$given $surname"\n};
             print qq{ma $uid\@$domain telephoneNumber "P:$ph  M:$mob  F:$fax"\n};
             print qq{ma $uid\@$domain userPassword "$password"\n};
             print qq{ma $uid\@$domain streetAddress "$addr"\n};
             print qq{ma $uid\@$domain l "$suburb"\n};
             print qq{ma $uid\@$domain st "$state"\n};
             print qq{ma $uid\@$domain postalCode "$postcode"\n};
             print qq{ma $uid\@$domain zimbraPasswordMustChange FALSE\n};
             print qq{ma $uid\@$domain zimbraPrefComposeFormat html\n};
    create the html sig

    Code:
            print qq{ma $uid\@$domain  zimbraPrefMailSignatureEnabled TRUE  
    zimbraPrefMailSignatureStyle internet zimbraPrefMailSignatureHTML \'};
            print qq{<div><table>};
            print qq{<tr>};
            print qq{<td>};
            print qq{<font face=\"Times New Roman\" size=\"3\">};
            print qq{<b>};
            print qq{$given $surname};
            print qq{</b><br>};
            print qq{$title};
    ...
           print qq{</table></div>};
            print qq(\'\n);
    and the plain text sig

    Code:
            print qq{ma $uid\@$domain  zimbraPrefMailSignature \'};
            print qq{$given $surname\\n};
            print qq{$title\\n};
    ...
            print qq(\'\n);

    heres an image of the setting thats in question... (attachment)

    doing zmprov ga account.name@domain.com.au shows no change when it its set as html or text (I did a diff of the two outputs), yet it makes a big difference on the signature that is displayed.
    Attached Images Attached Images

  4. #4
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    oh i see what you're saying. yeah i don't see any user setting for that either it may just be hard coded. you might want to file a rfe

  5. #5
    BrianA is offline Senior Member
    Join Date
    Jan 2008
    Posts
    70
    Rep Power
    7

    Default

    it has to be saved somewhere? its persistant across logins.
    I guess I'll just set it via admin login for the users - theres only 60 of them.

  6. #6
    Baylink is offline Elite Member
    Join Date
    Aug 2008
    Location
    St Pete FL USA
    Posts
    392
    Rep Power
    6

    Default

    Well, HTML mail is the antiChrist, anyway, but perhaps I should just keep my mouth shut, here. :-)

    (Seriously: HTML mail is bad on so many levels; *seriously* consider not setting it as your default.)
    Jay R. Ashworth - ZCS 6.0.9CE/CentOS5 - St Pete FL US - Music - Blog - Photography - IANAL - IAAMA
    Try to Ask Questions The Smart Way -- you'll get better answers.

    Put your product and version in your profile/signature - All opinions strictly my own, even though I have an employer these days.
    If you [SOLVE] something, please tell everyone how for the archives
    And, please... read what people write, and answer the questions they asked, not the ones they didn't.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 04-20-2009, 06:23 PM
  2. Bulk Provisioning Russian character
    By Isvet in forum Migration
    Replies: 0
    Last Post: 03-12-2009, 06:03 AM
  3. Bulk provisioning zimlet
    By sn00p in forum Administrators
    Replies: 1
    Last Post: 12-02-2008, 09:48 PM
  4. group bulk provisioning - ldap sync
    By Artturi in forum Administrators
    Replies: 3
    Last Post: 10-11-2007, 04:53 PM
  5. Bulk Provisioning
    By scalper in forum Administrators
    Replies: 4
    Last Post: 05-16-2007, 01:42 AM

Posting Permissions

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