Results 1 to 4 of 4

Thread: How to copy a message using REST

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    17
    Rep Power
    6

    Default How to copy a message using REST

    I need to use REST API in order to copy a message from a folder to another.
    I'm able to read a message but I didn't see the way to upload it to a different folder.
    The import message API seem to use only a file as input and only examples I saw were created using "curl -- upload".
    Is there any good example to look into ?
    Any siggestion ?
    Tks
    Tullio

  2. #2
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    Zimbra Ajax WebClient and Zimbra Desktop have import/export functions on their Preference tab.
    And these use REST API. So you better look into that with Firebug or something like that.

  3. #3
    Join Date
    May 2009
    Posts
    17
    Rep Power
    6

    Default

    Tks for Your help.
    I didn't find any import/export in my WebClient preference tab.
    Anyway I tried using the right button and I found a Move menu item.
    I tried it but it goes to soap and not to rest APIs.
    Anyway in the manual the Import/Export API exists but they work all on a file : I mean they write/read to/from a file.
    I'd like to avoid files and do all in memory, deleting the mail after copy in the original folder.
    How can I do ?
    Tks

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

    Default

    It is REST API, so you use a GET request to the correct URL to get the data, then you do a POST request to send the data.

    Curl CLI use a file but in the end it only send a POST request.

Similar Threads

  1. REST message formats documentation.
    By tullio0106 in forum Developers
    Replies: 6
    Last Post: 10-16-2011, 01:36 PM
  2. Create a copy of a message - is it possible?
    By simonfishley in forum General Questions
    Replies: 8
    Last Post: 04-21-2011, 10:55 AM
  3. cannot copy message in sent
    By intern in forum Administrators
    Replies: 0
    Last Post: 11-29-2010, 02:05 AM
  4. Emails bouncing with "Error Text: 401,'null'"
    By sholden in forum Zimbra Connector for Outlook
    Replies: 27
    Last Post: 08-20-2008, 04:59 PM
  5. Away message without local copy
    By lalas in forum Administrators
    Replies: 0
    Last Post: 12-18-2006, 02:35 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
  •