Quote:
Originally Posted by crunch Hello,
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? |
Use zmmboxsearch. i.e.
/opt/zimbra/bin/zmmboxsearch -m
user@example.com -q 'msgid:029301ca2bd7$8c4a19f0$a4de4dd0$@example.com '
It will return an XML; you're interested in the 'id' attribute.
Chris