Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-07-2009, 11:53 PM
Senior Member
 
Posts: 70
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
Reply With Quote
  #2 (permalink)  
Old 04-08-2009, 04:38 AM
Moderator
 
Posts: 1,554
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
Reply With Quote
  #3 (permalink)  
Old 04-08-2009, 05:41 AM
Senior Member
 
Posts: 70
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
File Type: jpg sig.JPG (28.0 KB, 115 views)
Reply With Quote
  #4 (permalink)  
Old 04-08-2009, 05:58 AM
Moderator
 
Posts: 1,554
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
Reply With Quote
  #5 (permalink)  
Old 04-13-2009, 06:24 PM
Senior Member
 
Posts: 70
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.
Reply With Quote
  #6 (permalink)  
Old 04-13-2009, 08:41 PM
Elite Member
 
Posts: 380
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.