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!