Message ID IMAP mapping to Message ID in Store
I'm writing an application that will directly download attachments through the /service/content/get?id=<id>&part=<part> url. I would like to bring down the message via IMAP but not the actual attachments. I want to provide a link to the attachments via http.
I would like to know how can you determine what the id is other than looking at the link in the Web UI? Is there a way to specify the actual IMAP Message ID to retrieve an attachment? What's the best way to do this?
I hope I'm being clear enough. Thanks!
Retrieving Zimbra message id from Message-ID: header
Use zmmboxsearch. i.e.
Originally Posted by crunch
/opt/zimbra/bin/zmmboxsearch -m email@example.com -q 'msgid:firstname.lastname@example.org '
It will return an XML; you're interested in the 'id' attribute.