Default Mail Applications (mailto reprised) We’ve had some great responses to my blog post yesterday about changing the default mailto links using Firefox. There’s a couple of problems with my method: 1) It’s not really scalable for an admin [ie no auto install] 2) Not really applicable for Safari and Internet Explorer. I found that there are many different ways to change the default mail handler in windows. I decided to set out on a journey that would last me most of the night, and this morning testing most of the different methods in Parallels. As I said, the largest problem with yesterday’s tutorial was that it isn’t easily scalable. Most admins don’t to walk around to each PC, and install Firefox, then install the Firefox extension we talked about yesterday. The most dominent browser and operating system is is Internet Explorer and Windows, and we really do have to play by their rules.
The most obvious solution for Windows users is to have a registry file that you can import. regedit /s zimbra.reg Here’s the registry file. Repository - [zimbra] Index of /trunk/ZimbraServer/src/perl/soap. Login and manipulate Zimbra account with Perl. I hacked together this small API to manipulate a Zimbra account using Perl. If you've been trying to find a Zimbra SOAP API for Perl you've probably ran into the scripts located at Zimbra Scripts And as of now this module ZimbraSession.pm is the closest thing to an API for Zimbra SOAP. To obtain the module you need to download the attachment on the Forum post I originally put up which is here: ZimbraSession.pm.txt (the original forum post is here). The file is .txt so just rename it to .pm and it will be good to go. If you are familiar with Perl then using this module is nothing new. First thing you need to download the following Perl Modules from zimbra.svn.sourcefourge.net: Soap.pm Soap11.pm Soap12.pm SuddsException.pm XmlDoc.pm XmlElement.pm And you need to get ZimbraSession.pm from the form post.
First thing before you start writing your code you need to save all the Zimbra modules into a folder and put them somewhere you will remember. Now it's time to write your script. #! Delete Folder. Zimbra-api-php - An API in PHP for working with Zimbra Collaboration Suite. Working with the Zimbra SOAP API can sometimes be complicated for simple business logic. This API helps to simplify this process when developing with PHP. The code is also available on Plymouth State's website, it is possible that the code provided there may be more current than what is here. Plymouth State is running this in production with their Zimbra 5.x install. Plymouth State's PHP Zimbra API Brief and simple example: <? Require_once 'zimbra.class.php'; // include the library$zimbra = new Zimbra('username','prod'); // instantiate with username and instance$zimbra->connect(); // make the connection $task_list = $zimbra->getTasks(); // execute some function, in this example get the tasks // then do some other stuff...?
If you are looking to do single-sign on to Zimbra, it is relatively simple: // $username must be somehow set to a known username// one possible solution would be to use phpCAS to get it // import phpCAS lib ( Repository - [zimbra] Contents of /trunk/ZimbraServer/docs/soap.txt. Repository - [zimbra] Contents of /trunk/ZimbraServer/docs/soap-admin.txt.