Results 1 to 4 of 4

Thread: REST API: get email in eml format

  1. #1
    Join Date
    Oct 2012
    Posts
    7
    Rep Power
    3

    Default REST API: get email in eml format

    I use ZCS 8.0
    If zimbra should return the email with these headers, it would be great:
    Code:
    Content-Type: message/rfc822
    Content-Disposition: attachment; filename=something
    /opt/zimbra/docs/rest.txt:
    Code:
       http://server/home/[~][{username}]/[{folder}]?[{query-params}]
              fmt={ics, csv, etc}
              id={item-id}
              list={item-id}*[,{item-id}]
              imap_id={item-imap-id}  (must also specify folder)
              part={mime-part}
              query={search-query}
              types={types} // when searching
              start={date-specifier}
              end={date-specifier}
              auth={auth-types}
              disp=i|a
    
              {disp} = i - means "inline" and the browser will open up the attachment inline
                       a - means "attachment" and the browser will put up a download window
    
              {types}   = comma-separated list.  Legal values are:
                          conversation|message|contact|appointment|note
                          (default is "conversation")

    I tried this:
    Code:
     http://server/home/[~][{username}]/[{folder}]?id?=1234&fmt=eml&file=test.eml&disp=a
    But the aforementioned headers missing.

    Can anyone help me in this?
    Last edited by mdesign; 10-11-2012 at 11:13 AM.

  2. #2
    Join Date
    Oct 2012
    Posts
    7
    Rep Power
    3

    Default

    No one? Does anybody know when the official REST API documentation will be published?

  3. #3
    Join Date
    Jun 2013
    Posts
    5
    Rep Power
    2

    Lightbulb Solution

    Quote Originally Posted by mdesign View Post
    No one? Does anybody know when the official REST API documentation will be published?

    Hi mdesign,

    there is no possibility to safe on email as eml.. it isn't supported by zimbra..

    but there is a little work around..

    try this:

    http://server/home/[~][{username}]/[{folder}]?id=1234&fmt=zip&file=test

    you will find a zip-file test.zip with a folder inbox in it and in this folder you'll find your mail with id 1234 as "subject titel from the email".eml

    best regards
    dillchen

  4. #4
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    Hi,

    Here is a zimlet I made for the french forums a while ago :
    http://www.starxpert.fr/outils/zimle...t_save_eml.zip

    It does what you want : Use REST to get the eml file content then return it with the correct headers.

Similar Threads

  1. Obtaining email messages through Rest API
    By TheAlfred in forum Developers
    Replies: 2
    Last Post: 08-01-2012, 09:45 AM
  2. Replies: 3
    Last Post: 12-22-2011, 06:47 AM
  3. Compose New Email Format
    By rtsmitty23 in forum General Questions
    Replies: 1
    Last Post: 05-10-2011, 08:49 AM
  4. Email From domino wrong format
    By antonh in forum Administrators
    Replies: 0
    Last Post: 10-30-2010, 12:13 PM
  5. New email via REST
    By Ericx in forum Developers
    Replies: 4
    Last Post: 10-17-2008, 03:39 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •