Page 1 of 1

SOAP: Reading Unread Mails

Posted: Tue Dec 05, 2017 1:07 pm
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

Re: SOAP: Reading Unread Mails

Posted: Tue Dec 05, 2017 3:47 pm
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").