Quantcast
Channel: Zimbra :: Forums - Developers
Viewing all 286 articles
Browse latest View live

Listening an appointment delete action.

$
0
0
I need to synchronize my application appointments with the Zimbra owned appointments.
In such application, then, I need to be notified when an appointment is deleted in the Zimbra environment.
In other words I need to "listen" such event and comunicate it to my application.
Is there a solution for my problem ?
Tks
Tullio

piwik and zimbra

Two JSESSIONID on response.sendRedirect()

$
0
0
I am new to Zimbra and trying to move existing integration from Zimbra 6 to Zimbra 7 (and later to Zimbra 8 once the zimlets and extensions are compiled with new code). I am running into some session issue. Here is what's going on:

The code authenticates the user. It then creates a new cookie/token:

String authToken = zAuth.getToken();
Cookie c = new Cookie("ZM_AUTH_TOKEN", authToken);
c.setPath("/");
response.addCookie(c);

Everything is good so far. The token is valid. We use Tomcat 6. I see that Tomcat has correct JSESSIONID with a path "/something".

Next line in the code is:

response.sendRedirect(mailUrl);

On redirect, it does show me the correct the Zimbra mailbox but this last line of code creates new Tomcat JSESSIONID with path "/". So now I have two JSESSIONID's. One with path "/something" and the other with "/".

This was not happening in Zimbra 6 as far as I can tell. (The Zimbra 6 and 7 installations are on different servers so may be some configuration is causing this?). Any one can throw light at why two JSESSIONID's are getting created?

Thanks...

SearchDocument returns unkown Document error

$
0
0
Hello!
I am trying to send the following request to the Zimbra server:

Code:

POST /service/soap HTTP/1.1
SOAPAction: ""
Content-Type: text/xml;charset="utf-8"
Accept: text/xml
Host: 192.168.138.133
Content-Length: 514
Expect: 100-continue

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
  <soap:Header>
    <authToken>%token acquired from AuthRequest%</authToken>
    <context xmlns="urn:zimbra" />
  </soap:Header>
  <soap:Body>
    <SearchRequest xlmns="urn:zimbraMail">
      <query>is:unread</query>
    </SearchRequest>
  </soap:Body>
</soap:Envelope>

What am I doing wrong?
Thanks in advance.

Add CheckBox to the Compose Mail Panel

$
0
0
Hi All,

Currently I am working on Zimbra Server version 7.0.Guys I have a situation here, Can you please suggest me in this.How to add New check box to the Compose mail panel.

I mean How to add Own controls to the Zimbra server panel? Can you please tell me ,Is the above scenario is possible with Zimbra server?
If Own customization is possible, Where I need to be added the code which files I should be edited to do like that?

Thanks in advance..:cool:


Regards
Phani

How to use javascript to call Zimbra SOAP

$
0
0
Hi,

I'm trying to learn how to use javascript to call Zimbra SOAP request as well as parse the content of the SOAP response message.Could you give me a clue about how to accomplish that,of course it would be better if you post the code here.

Any help would be appreciated,thanks.

Zimbra Webmail displaying two similar calendar days when printing

$
0
0
I have a client where a user insists on only using their webmail to access their email. When she attempts to print out the calendar week, Sunday is displaying twice, which then moves the scheduled tasks a day early.

Example:

Sun Nov 4 Sun Nov 4 Mon Nov 5 Tues Nov 6 etc

All tasks scheduled for the day they're supposed to be on get moved one calendar day to the left. So Tuesdays meetings are printing for Monday.

I closed her Zimbra just to see if it was temporarily acting up but it did it again upon reload. I also tried different views and it did this for each mode selected.

Any ideas?

Zimbra UC Provider documentation

$
0
0
Hi!

Is there already some documentation available on how to create your own UC provider? I'd like to create an IM-provider to replace the old Zimbra IM/Chat-feature.

Kind regards
Dennis

Update Field Status in Database

$
0
0
Hi All,

I'm very new to Zimbra Application. I've scenario like, added one button (Archive) in Compose mail window. If I click on the button then I need to store a Boolean value in database. I'm able to set the Boolean value by using event mechanism through Zimlet, but I'm failing to update this Boolean value in the database. Please any one let me know how can we do this process using zimlet or any alternate way to do this. I'm really breaking my head, sine last two days.

Thanks & Regards

Sai Mohan

adPassword extension for ZCS 7/8

$
0
0
For the users of this extension:

  • Let me know how it works
  • Signal every bug/issue
  • Suggest improvements


Thank you all.

SOAP CreateAccountRequest

$
0
0
I would like to add users using the SOAP API.

My header is:

Code:

POST /service/admin/soap HTTP/1.1
Host: mail.server.com
Content-Type: text/xml; charset="utf-8"

The body of request is:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
                xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
                xmlns:zimbra="urn:zimbra"
                xmlns:zaccount="urn:zimbraAccount"
                xmlns:zmail="urn:zimbraMail">
<soap:Header>
        <context xmlns="urn:zimbraAdmin"/>
</soap:Header>
<soap:Body>
        <AuthRequest xmlns="urn:zimbraAdmin">
                <name>user@server.com</name>
                <password>passwd</password>
        </AuthRequest>
    <CreateAccountRequest xmlns="urn:zimbraAdmin">
      <name>test@server.com</name>
      <password>passwd</password>
    </CreateAccountRequest>
  </soap:Body>
</soap:Envelope>

I get a valid response, but it didn't add the user.
Do you know the reason?

Thanks in advance.

Code:

Response

HTTP/1.1 200 OK
Date: Tue, 13 Nov 2012 17:11:44 GMT
Set-Cookie: ZM_ADMIN_AUTH_TOKEN=0_bf74bb086651e83fcddb84eb7fe278df78f60b37_69643d33363a62343436316436332d326163612d346366342d613939392d3232343037333166336662323b6578703d31333a313335323836393930343139353b61646d696e3d313a313b76763d313a303b747970653d363a7a696d6272613b;Path=/;Secure;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/xml;charset=UTF-8
Cache-Control: no-store, no-cache
Connection: close

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><context xmlns="urn:zimbra"><change token="3"/></context></soap:Header><soap:Body><AuthResponse xmlns="urn:zimbraAdmin"><authToken>0_bf74bb086651e83fcddb84eb7fe278df78f60b37_69643d33363a62343436316436332d326163612d346366342d613939392d3232343037333166336662323b6578703d31333a313335323836393930343139353b61646d696e3d313a313b76763d313a303b747970653d363a7a696d6272613b</authToken><lifetime>43200000</lifetime></AuthResponse></soap:Body></soap:Envelope>

Importing appointments from SugarCRM

$
0
0
Hi,

What's the best way to test if a given appointement hasn't been created twice ? I already have create the necessary javascript code to import and create appointments in zimbra that relate to appointemnts in sugarcrm by user action (click on zimlet). But if the user clicks again, the script will import the same appointments again and they'll be created as many times as that zimlet is invoked.

Do you have any suggestion on how to create these appointments only once ?

Can I save some metadata inside the zimbra appointments that I can check to not create a copy of it ?

Thanks for your thoughtful ideas.

ZCS 8 soap api error using LmcAdminAuthRequest

$
0
0
Hi All,

We are using the zimbra soap api in our java webapplication to automate the adminsitration of a zimbra system.
eg. to share a mailbox accounts for a group of other emails accounts.
Therefore the applicaiton need to get a LmcSession with the scope of a global admin.


protected LmcSession getLmcSession(Account acc) throws Exception {

LmcAdminAuthRequest authRequest = new LmcAdminAuthRequest();
authRequest.setRequestedAccountId(acc.getId());
authRequest.setUsername(getAdminCrd()[0]); // global admin Name
authRequest.setPassword(getAdminCrd()[1]); // global admin password
LmcAuthResponse authResponse = (LmcAuthResponse) authRequest
.invoke(getZimbraAdminUrl());
LmcSession session = authResponse.getSession();
if (session == null)
throw new MailServiceRequestException(
"FAILED TO START LMCSESSION");
return session;
}



This code works fine with a zimbra 7.x server but when we connect our application with a zimbra 8 we receive the following error.

Wed Nov 14 15:28:28 CET 2012 BEGIN TEST net.atos.canopy.mailservice.test.CreateFunctionalA ccountsUTest

com.zimbra.common.soap.SoapFaultException: no valid authtoken present
ExceptionId:qtp364656927-3267:https://192.168.50.101:7071/service/...:SoapEngine157
Code:service.AUTH_REQUIRED
at com.zimbra.common.soap.Soap12Protocol.soapFault(So ap12Protocol.java:88)
at com.zimbra.common.soap.SoapTransport.extractBodyEl ement(SoapTransport.java:354)
at com.zimbra.common.soap.SoapTransport.parseSoapResp onse(SoapTransport.java:313)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:260)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:164)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:407)
at com.zimbra.cs.client.soap.LmcSoapRequest.invoke(Lm cSoapRequest.java:142)
at net.atos.canopy.mailservice.cmdclient.AbstractFunc tionalAccountHdl.getLmcSession(AbstractFunctionalA ccountHdl.java:65)
at net.atos.canopy.mailservice.cmdclient.AbstractFunc tionalAccountHdl.createShare(AbstractFunctionalAcc ountHdl.java:132)



Does the authentication method change in Version 8 ?
Thanks in advance

Extending com.zimbra.cs.account.ldap.LdapProvisioning in ZCS 8.x

$
0
0
I have this class:

Code:

public class MyProvisioning extends LdapProvisioning {

    public MyProvisioning() {
        super();
        ZimbraLog.account.info("[MyProvisioning] MyProvisioning() constructor");
    }   

    @Override
    public Account get(AccountBy keyType, String key, boolean loadFromMaster) throws ServiceException {
        ZimbraLog.account.info("[MyProvisioning] get(AccountBy keyType, String key, boolean loadFromMaster) method");
        Account acct = super.get(keyType, key, loadFromMaster);
        return acct;
    }
}

If I assing it as a new zimbra_class_provisioning via zmlocalconfig it works as expected in ZCS 7.x: the get() method is always called when a user lookup occours.

In ZCS 8.x I can see just the constructor log message and it seems that my get() method is never called.

Does anyone know why?

TIA,
Antonio

Many changes for Zimbra 7.2.0 (automatic updating, SPNEGO admin/user & etc)

$
0
0
Hello.

I did for our distribution. ROSA Linux. ROSA It's for Zimbra 7.2.0.

The attachments:

- helix-720.patch.tar.bz2

- binary.sh. It compresses some binary files.

- scripts.tar.bz2. It merges zimbra*.spec files to zimbra.spec

- zimbra.spec.

Major changes.

1) Replacement. Heimdal kerberos -> MIT Kerberos. ThirdParty.

2) An external OpenLDAP. Automatic updating. Dynamic and static configuration. New scripts. A wrapper for LDAP requets. Relocating root DN.

3) rpm packages. Automatic updating. It can restart only needed components. I changed zmcontrol.

4) Working SPNEGO. Linux. I changed admin.jdp and login.jsp and other files.

5) Setup changes for Kerberos. I changed zmsetup.pl and other files.

6) .../ThirdPartyBuilds/build/opt/zimbra/... I changed the building system. Not only root. Any user can build it.

7) Web UI. Address book. I added a button. It shows all users in the global address list. It's very comforting to see them all without searching.

8) Clean operation. It can malformed during configuring. You can reset it.

9) I removed versions for automatic updating. /opt/zimbra/mysql/ , /opti/zimbra/jetty and etc.
Attached Files

Zimbra via REST: Update / Delete of changed Appointments not possible

$
0
0
Hi at all,

I try to update / delete an existing appointment via the REST API, which was created with the Zimbra REST API and edited in the Zimbra Web Interface.

Update and deletion of appointments which were not edited in the Zimbra Web Interface works well.

I use Zimbra 7.1.4_GA_2555.

Thank you for your help!

Daniel

IM for Zimbra 8.0

$
0
0
Hi guys I will get straight to the point. My company just will be using Zimbra 8.0 but they told me to research on how to integrate an IM. So I am thinking of ejabberd or open fire. Here's the thing I am in Entry Level meaning this is my first job and I would like to get some help on how to use ejabberd or open fire for zimbra 8.0. Is there any tutorials? Documents? or anything that can help me on my project. Thanks in advance and please inform me if this is the right category for my post.



thanks, Robin.

[REST API]:delete inbox messages

$
0
0
Hello,
I need to delete a message in the inbox as a regular user (not an administrator). Is there any way to do it with REST Api ? What are the arguments/url to use ? I successfully manage to get information from inbox with the API.
Thanks

Zimbra holds BLOB message files open - how to solve?

$
0
0
Hi everyone,

I have an issue customizing Zimbra. I need to have each mailbox located on different mount point, mounting/unmounting them on login/logout.
For now - I face the situation when I cannot unmount user BLOB storage (/opt/zimbra/store/x/yy) because message files remain open(hold) by JAVA process even after user logout. This happens if any email message was open during user session. Please find below output of lsof command:
Code:

[root@aaa store]# lsof /opt/zimbra/store/0/5
COMMAND  PID  USER  FD  TYPE DEVICE SIZE/OFF NODE NAME
java    28801 zimbra  216r  REG  253,1    2720  20 /opt/zimbra/store/0/5/msg/0/340-13900.msg
java    28801 zimbra  226r  REG  253,1    1944  17 /opt/zimbra/store/0/5/msg/0/300-6600.msg

I am not so familiar with zimbra source/administration to avoid/fix this.

Can anyone help me with this?
Any help/advise is appreciated!

Thank you very much in advance!

Product Information

$
0
0
Hi ,

Is there any soap api which provides (directly/indirectly infer) information on which type of ZCS product variant is installed?

Zimbra Collaboration Suite - Business Email Edition
Zimbra Collaboration Suite - Business Email Edition Plus
Zimbra Collaboration Suite - Consumer Edition
Zimbra Collaboration Suite - Professional Edition


TIA,
Ganesh
Viewing all 286 articles
Browse latest View live


Latest Images