Quantcast
Channel: Zimbra :: Forums - Zimlets
Viewing all 171 articles
Browse latest View live

Zimlet with CRUD (POST, GET, PUT and DELETE) operations

$
0
0
Hey Guys,

Just started out working with zimlets, however, my requirement is to interact with a WebService that employs CRUD operations. The AjxRpc seems to work perfectly with GET and POST operations, however, I can't seem to figure out how to send a PUT or DELETE method.

I'd prefer to use raw interfaces on ZCS rather than loading additional libraries and modules.

Do you guys have any suggestions around how to accomplish the PUT and DELETE methods - and potentially using the same framework, accommodate GET and POST.

My requests have to be asynchronous.

Appreciate the assistance.

Many thanks
Doug

invoke custom servlet in zimlets

$
0
0
Hi

Is posible to invoke a custom servlets in zimlets, If yes, in which type of file (war, jar) should I package my servlets and where to put it ?,
I would like to invoke it as action of my jsp form page.



Thanks

Zimlet gallery login is not working

$
0
0
Hi Zimbra,
I found that login on Zimlet gallary is not working !!!

Is there something wrong with it?

Jignesh.

Can I have more than one zimletPanelItem in my zimlet?

$
0
0
Hi,
I want more than one zimletPanelItem in my zimlet.

I've tried to duplicate the zimletPanelItem tag in my xml conf but no success.

Can't find any info about that in wiki and forum.

Anyone knows if that's possible?


Thanks in advance.

Can't see Zimlet icons during a search

$
0
0
Hi,
I have a Zimlet that makes some stuff when I drag 'n drop an email onto its icon.

Sometimes I have to search the interested email, but... in search view there are no Zimlet icons... O.O

Anyone knows a workaround for this problem?

Thanks in advance.

how to get event calendar responding message from hotmail,outlook to Zcs 8.0

$
0
0
Sir,
i am using zcs 8.0, i have create an event and invite some people, while people Accept/Decline/Tentative respond with a message, i am trying to get that message in zcs side (java code),
Attached Images

Add an integrated zimlet in the New dropdown list menu

$
0
0
Hello there

I’m trying to add a new Integrated Zimlet in the New Message dropdown list menu. When I do a click in the arrow I see options like Message, Contact, Contact Group, Appointment, task, etc. and I need to add a new element under the Message Item.
I can’t figure it out how to do this since I’m new Zimlet developer and I don’t know how to access this toolbar…
I will appreciate some help.
Thanks

Zimlet Email Reminder in Zimbra 8

$
0
0
Hi
Who can help to update this zimlet for Zimbra 8?

gallery.zimbra.com

I like idea to how make reminder.

The system error when try resp:

EmailReminderZimlet.prototype._createEmailFollowup Folder =
function() {
var soapDoc = AjxSoapDoc.create("CreateFolderRequest", "urn:zimbraMail");
var folderNode = soapDoc.set("folder");
folderNode.setAttribute("name", EmailReminderZimlet.CALENDAR_EMAIL_REMINDERS);
folderNode.setAttribute("l", appCtxt.getFolderTree().root.id);
folderNode.setAttribute("view", EmailReminderZimlet.VIEW_CALENDAR);
var command = new ZmCsfeCommand();
var resp = command.invoke({soapDoc: soapDoc});
var id = resp.Body.CreateFolderResponse.folder[0].id;
if (!id) {
var errMsg = AjxMessageFormat.format(this.getMessage("EmailRemi nder_error_createcalendar"), EmailReminderZimlet.CALENDAR_EMAIL_REMINDERS);
throw new AjxException(errMsg, AjxException.INTERNAL_ERROR, "createEmailFollowupFolder");
}
this.emailFollowupFolderId = id;

soapDoc = AjxSoapDoc.create("FolderActionRequest", "urn:zimbraMail");
var actionNode = soapDoc.set("action");
actionNode.setAttribute("op", "color");
actionNode.setAttribute("id", id);
actionNode.setAttribute("color", "5");
command = new ZmCsfeCommand();
resp = command.invoke({soapDoc: soapDoc});
this._justCreatedCalendarFolder = true;
};

Zimlet doesn't initialize on Zimbra 8

$
0
0
Hi all,

We've just finished ou Zimbra migration from 7.2.6 to 8.06 and everything works well except a Zimlet.

This Zimlet is the exact copy of example Tab_IFrame given in Wiki here : ZCS 6.0:Zimlet Developers Guide:Examples:Tab iFrame - Zimbra :: Wiki
The only difference is the URL of the website in iFrame.

It works perfectly on Zimbra 7.2.6 but not on Zimbra 8. Each time we receive the following error during initialization
Code:

TypeError: 'undefined' is not a function (evaluating 'this.handlerObject._init(this,DwtShell.getShell(window))')
Is there someone who knows how to make it fully functionnal ?

Thank you


Here is the code (website url modified and change by XXX.XXX.XX
Code:

/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Zimlets
* Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License.  You may obtain a copy of the License at
* http://www.zimbra.com/license.
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
* ***** END LICENSE BLOCK *****
*/
/**
* Defines the Zimlet handler class.

*/
function com_zimbra_osticket_HandlerObject() {
}
/**
* Makes the Zimlet class a subclass of ZmZimletBase.
*
*/
com_zimbra_osticket_HandlerObject.prototype = new ZmZimletBase();
com_zimbra_osticket_HandlerObject.prototype.constructor = com_zimbra_osticket_HandlerObject;
/**
* This method gets called by the Zimlet framework when the zimlet loads.
*
*/
com_zimbra_osticket_HandlerObject.prototype.init =
function() {
this._simpleAppName = this.createApp("osTicket app", "zimbraIcon", "osTicket dans un onglet");
};
/**
* This method gets called by the Zimlet framework each time the application is opened or closed.
*
* @param {String} appName  the application name
* @param {Boolean} active  if true, the application status is open; otherwise, false
*/
com_zimbra_osticket_HandlerObject.prototype.appActive =
function(appName, active) {

switch (appName) {
  case this._simpleAppName: {
 
  var app = appCtxt.getApp(appName); // get access to ZmZimletApp
  break;
  }
}

// do something
};
/**
* This method gets called by the Zimlet framework when the application is opened for the first time.
*
* @param {String} appName  the application name
*/
com_zimbra_osticket_HandlerObject.prototype.appLaunch =
function(appName) {
switch (appName) {
  case this._simpleAppName: {
  // do something
 
  var app = appCtxt.getApp(appName); // get access to ZmZimletApp
  app.setContent("<iframe id=\"tabiframe-osTicket\" name=\"tabiframe-osTicket\" src=\"http://XXX.XXX.XX/\" width=\"100%\" height=\"100%\" /></iframe>"); // write HTML to app
  break;
  }
}
};

How to close my zimlet tab application using javascript???

$
0
0
Hello there

I developed a zimlet tab app and I launch it using javascript when I do click in a toolbar button. That works fine, my app is open in a tab perfectly using this:

Code:

var simpleAppName = this.createApp("MyApp", "zimbraIcon", " MyApp ");
var app = appCtxt.getApp(simpleAppName);       
app.launch();

Inside my zimlet I have a Cancel button and I want to close my tab application (like we close the compose tab) and switch to the Mail View when I do a click on it. So far, I just manage to change the view using this:

Code:

appCtxt.getAppController().activateApp("Mail")
But I steel need to close the tab which remains open but inactive, any suggestions please??????
Thanks

Samba+Posix zimbra Ldap

$
0
0
Hello good people,
I have been strugglling with this problem for days now. I can't seem to join my PCs to samba. Here are various configurations. Please tell me what am doing wrong.

Code:

authconfig --test
caching is enabled
nss_files is always enabled
nss_compat is disabled
nss_db is disabled
nss_hesiod is disabled
 hesiod LHS = ""
 hesiod RHS = ""
nss_ldap is enabled
 LDAP+TLS is disabled
 LDAP server = "ldap://main-fff.com/"
 LDAP base DN = "dc=main-fff,dc=com"
nss_nis is disabled
 NIS server = ""
 NIS domain = ""
nss_nisplus is disabled
nss_winbind is disabled
 SMB workgroup = "MAIN-FFF"
 SMB servers = ""
 SMB security = "user"
 SMB realm = ""
 Winbind template shell = "/bin/false"
 SMB idmap uid = "16777216-33554431"
 SMB idmap gid = "16777216-33554431"
nss_sss is disabled by default
nss_wins is disabled
pam_unix is always enabled
 shadow passwords are enabled
 password hashing algorithm is md5
pam_krb5 is disabled
 krb5 realm = "EXAMPLE.COM"
 krb5 realm via dns is disabled
 krb5 kdc = "kerberos.example.com:88"
 krb5 kdc via dns is disabled
 krb5 admin server = "kerberos.example.com:749"
pam_ldap is enabled

 LDAP+TLS is disabled
 LDAP server = "ldap://main-fff.com/"
 LDAP base DN = "dc=main-fff,dc=com"
pam_pkcs11 is disabled

 use only smartcard for login is disabled
 smartcard module = "coolkey"
 smartcard removal action = "Ignore"
pam_smb_auth is disabled
 SMB workgroup = "MAIN-FFF"
 SMB servers = ""
pam_winbind is disabled
 SMB workgroup = "MAIN-FFF"
 SMB servers = ""
 SMB security = "user"
 SMB realm = ""
pam_sss is disabled by default
pam_cracklib is enabled (try_first_pass retry=3)
pam_passwdqc is disabled ()
pam_access is disabled ()
pam_mkhomedir is disabled ()
Always authorize local users is disabled ()
Authenticate system accounts against network services is disabled



Code:

testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[netlogon]"
WARNING: The "share modes" option is deprecated
Processing section "[profiles]"
Processing section "[profiles.V2]"
Processing section "[MAIN-FFF]"
Processing section "[MAIN-FFF_Photos2]"
Processing section "[Finance_Administration]"
Processing section "[HR]"
Processing section "[Projects]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

[global]
        workgroup = MAIN-FFF
        netbios name = MAIN-FFF_SERVER
        server string = Samba Server Version %v
        passdb backend = ldapsam:ldap://main-fff.com/
        log file = /var/log/samba/%m.log
        max log size = 500
        name resolve order = wins lmhosts hosts bcast
        add user script = /usr/sbin/adduser -m "%u"
        add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u
        logon script = %u.bat
        logon path =
        domain logons = Yes
        os level = 33
        domain master = Yes
        wins support = Yes
        ldap admin dn = "cn=config"
        ldap group suffix = ou=groups
        ldap machine suffix = ou=machines
        ldap suffix = dc=main-fff,dc=com
        ldap ssl = no
        ldap user suffix = ou=people
        idmap config * : backend = tdb
        cups options = raw

[homes]
        comment = Home Directories
        valid users = %S
        create mask = 0700
        directory mask = 0700
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        print ok = Yes
        browseable = No

[netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon
        guest ok = Yes
        share modes = No

[profiles]
        comment = User profiles
        path = /var/lib/samba/profiles
        valid users = %U
        force user = %U
        read only = No
        profile acls = Yes

[profiles.V2]
        comment = User profiles
        path = /var/lib/samba/.v2
        valid users = %U
        force user = %U
        read only = No
        profile acls = Yes

[MAIN-FFF]
        comment = MAIN-FFF Stuff
        path = /home/MAIN-FFF
        write list = +amaina
        read only = No
        guest ok = Yes

Samba version 3.6.6-0.138.el5_10
Plartform: Centos 5.8
Zimbra 7.2.2

Kindly assist thanks

Zimlet userProperties width of textarea

$
0
0
I would like to use userProperties to let users enter data in a textarea.

Defining that is easy:
<userProperties>
<property type="string" label="Trusted public keys" name="zimbra_openpgp_pubkeys" rows="20"/>
</userProperties>


Is it possible to define the WIDTH and HEIGHT of the string (textarea) that is displayed to the end user? Because now it is
to small for nice overview. See attachment.

Anyone? Please let me know thanks,


Barry
Attached Images

ProcessMaker 252 - Zimbra Collaboration System Integration

$
0
0
Hi Team,

I am a newbie in using ProcessMaker and Zimbra Collaboration Suite, and we are planning to use the system as part of the Zimbra Collaboration Suite 8.0.7 Network Edition. We already installed the two systems on different machines. We also use the zimbra plug-in ( com_processmaker_zimbra.zip ) as zimlet for the integration. In the ProcessMaker I already created the workflow and the dynaforms. I even tried and test the processmaker with transactions. We manage to connect the ProcessMaker using the "Setup" menu. But when we tried to recreate a transaction / case, by clicking on New Case, there is no reaction from the system. When I tried to look up on some other forums regarding the integration, I noticed that they use older version of zimbra and Processmaker. Is there any update on the plug-ins for the new versions of systems?

Here are the settings that we have so far:

Zimbra System:
Zimbra Collaboration System Network Edition 8
OS : CentOS 6.5 x64 with Prerequisite software
Zimbra Installation without DNS server configuration
Zimbra zimlet : ProcessMaker zimlet

ProcessMaker:
OS: Centos 6.5 x64
ProcessMaker
Process Creation (workflow and dynaforms

Please let me know how I can resolve this issue. Your immediate response will be much appreciated.

Regards,
Richard Catibog

How does Content Object -> match Method work properly

$
0
0
In the zimlet definition file there is an easy hook to put a regex match to an email body:

<matchOn>
<regex attrs="ig">lab|user|remodel</regex> <!-- matches lab or user or remodel -->
</matchOn>

Two questions, whenever a mail is opened the .match event fires like 30 times.

Is there an event that fires only once? If not what is the proper attribute to check if there was a match AND how to get the matched content.

I cannot find it in the documentation, or examples.

Thanks, Barry!!

NEW Zimbra OpenPGP Zimlet alpha development version 0.2 released


Zimlet works in dev mode but won't with zmcontrol deploy

$
0
0
I am looking for a way to bypass the build-in Zimbra Javascript optimizer, since it breaks openpgp.js... anyone know how to do this?

https://github.com/barrydegraaff/pgp-zimlet

What is the disadvantage from running a zimlet in dev mode forever?

Thanks Barry

Action Menu button: get message IDs with "zero" selection?

$
0
0
I'm adding a button to the action/context menu in the Mail list view. I have no problems getting the message ID in the button handler when the message is either visible in the viewing pane (e.g. has been clicked on), or is checked. When I right-click on a message that isn't visible, I can't get the ID. However, when I select one of the built-in actions, like Mark as Unread, that action is able to get the message IDs.

That was probably a bit complicated to follow, so here's a video of what I'm talking about: https://www.youtube.com/watch?v=ozxw...ature=youtu.be

My code to add the button:
Code:

ca_sfu_archiveMessage.prototype.onActionMenuInitialized = function(controller, actionMenu) {

    // enable the button for multi-selections and zero-selections(?)
    controller.operationsToEnableOnMultiSelection.push('ARCHIVE_MESSAGE');
    controller.operationsToEnableOnZeroSelection.push('ARCHIVE_MESSAGE');

    this.addArchiveButton('actionMenu', actionMenu, controller);
};

ca_sfu_archiveMessage.prototype.addArchiveButton = function(where, target, controller) {
    var offsets = {
        toolbar: 1,
        actionMenu: 1
    }
    , index = -1
    , buttonArgs, button;
    for (var i=0; i < target.opList.length; i++) {
        if (target.opList[i] === ZmOperation.SPAM) {
            index = i + offsets[where];
            break;
        }
    };

    buttonArgs = {
        text: 'Archive',
        tooltip: 'Archive Message',
        index: index,
        image: 'Warning',
        enabled: false
    };

    button = target.createOp('ARCHIVE_MESSAGE', buttonArgs);
    var listener = new AjxListener(this, this.buttonHandler, controller);
    button.addSelectionListener(listener);
};

ca_sfu_archiveMessage.prototype.buttonHandler = function(controller, ev) {
    var dlg = appCtxt.getMsgDialog();
    dlg.setTitle('Get Message Test');
    var msg = controller.getMsg();
    var content = msg ? "Selected Message ID: " + msg.id : "No Message Selected";
    dlg.setContent(content);
    dlg.popup();
};

I've tried using the same methods that ZmMailListController.prototype._redirectListener and ZmMailListController.prototype._markUnreadListener use to get the IDs, since they work with in a "zero-selection" scenario, but haven't had any luck.

Anyone have an idea as to how I can get the ID in this situation? It's not a big deal for this particular zimlet, but I would like to figure it out since the built-in actions seem to support it.

External widgets

$
0
0
I looked around a bit but could not find anything on this, so I will just ask here.
You know how Twitter provides widgets that can be used on any external page to display a Twitter feed or Twitter hashtag search? LinkedIn and Facebook provide something like that too.
Is anything like that available from Zimbra?
Example, a widget that displays a feed from a specific Community group, either in read-only mode or which also might provide the viewer to interact or post.
Our existing Zimbra instance does have RSS feeds, but that's not what I'm thinking of.
Thanks for the help.

Cleaning up mailbox space with Zimcleaner

$
0
0
Today I want to share with you a zimlet I started to develop some months ago.

The Zimbra web client does not provide a way of visualizing how the used space is distributed. Zimcleaner's aim is to analyze the user's mailbox and ease its cleaning, while it gives useful suggestions and posible actions to take.

Features:
- Use of space: Inbox, Sent, ... and subfolders
- Mailbox analysis: Trash, drafts and briefcase overuse. Too many heavy or old messages. Too many unread messages.
- Clean-up action: Empty trash, export heavy or old messages and automatically tags them.

Some of my users are currently using it, but I doubt about its utility. This is why I need feedback.

I hope you can give it an opportunity.
Attached Files

Access to current Email-Object

$
0
0
Hey guys,

I need your help. I searched in Google, but I can't find a solution.
I want to get the current opened ZmMailMsg-Object. There are solutions for drag and drop, but I don't want to drop the email. I want to get the current opened EmailObject, after some event.

How I can achieve this?

Thank you! ps: I'm on Zimbra 8
Viewing all 171 articles
Browse latest View live




Latest Images