Check if folder exists in SOAP

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
vdagost-fr
Posts: 43
Joined: Mon Apr 11, 2016 11:59 am

Check if folder exists in SOAP

Post by vdagost-fr »

Hello,

To check if a folder exists in SOAP I try a GetFolder request.

But each time the folder does not exist a not such folder path WARN Zimbra exception is throwed at com.zimbra.cs.mailbox.MailServiceException.NO_SUCH_FOLDER(MailServiceException.java:239).

How to nicely check for folder existence ?

Regards,
Victor
User avatar
Gren Elliot
Advanced member
Advanced member
Posts: 183
Joined: Tue Jun 10, 2014 4:45 am

Re: Check if folder exists in SOAP

Post by Gren Elliot »

What's wrong with that? Seems pretty clear to me?
vdagost-fr
Posts: 43
Joined: Mon Apr 11, 2016 11:59 am

Re: Check if folder exists in SOAP

Post by vdagost-fr »

Hi Gren

Nothing wrong but each days our soap applications generate a lot off useless warning logs.
I was wondering if there is a CheckIfFolderExists or something like that SOAP function.
Post Reply