SOAP: Reading Unread Mails

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
Vlerrie
Posts: 1
Joined: Tue Dec 05, 2017 12:54 pm

SOAP: Reading Unread Mails

Post by Vlerrie »

Having trouble here. I am able to getFolder where I can see the unread mails, but I cant find any documentation as to how i can get the unread mail ids or read the mails. I'm Writing a cron job to access a mailbox and search for excel attachments and then import the excel to my database. But I can't get The SOAP API to open the mails.

Kind Regards
User avatar
msquadrat
Advanced member
Advanced member
Posts: 183
Joined: Mon Oct 14, 2013 10:09 am

Re: SOAP: Reading Unread Mails

Post by msquadrat »

I'd do a SearchRequest with types="message" and a query like "in:Inbox is:unread attachment:excel" (or just "is:unread has:attachment").
Post Reply