Quantcast
Channel: Zimbra :: Forums - Developers
Viewing all articles
Browse latest Browse all 286

REST API: get email in eml format

$
0
0
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?

Viewing all articles
Browse latest Browse all 286

Trending Articles