Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-2009, 04:49 PM
Junior Member
 
Posts: 9
Default Message ID IMAP mapping to Message ID in Store

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?

I hope I'm being clear enough. Thanks!
Reply With Quote
  #2 (permalink)  
Old 09-02-2009, 10:16 AM
Senior Member
 
Posts: 60
Default Retrieving Zimbra message id from Message-ID: header

Quote:
Originally Posted by crunch View Post
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

Last edited by lindsey; 09-02-2009 at 10:19 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.