Results 1 to 6 of 6

Thread: How i will read Zimbra mail and Attachement through Rest API ?

Hybrid View

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

    Question How i will read Zimbra mail and Attachement through Rest API ?

    Hello All,

    I have tried RestAPI for reading mail from zimbra mail account and i got all mail in my inbox, but now i want to read a single email through id for e.g
    let's take id = 302

    https://domain/home/username/inbox.xml?id=302

    this will give me an output as plain text.

    Is it any way to distinguish between mail content and attachment ?


    Thanks in Advance.

  2. #2
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    10

    Default

    Yes, there is.
    Check the "part" parameter.

  3. #3
    Join Date
    Oct 2013
    Posts
    7
    Rep Power
    3

    Default

    Hello tdesorbaix

    thanks for replay,

    i know about part parameter.
    fore e.g. https://domain/home/username/inbox.xml?id=802&part=2
    this will download or open file if it contains attachment..

    But how i will find no of parts in mail and how i will distinguish between them. ?

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

    Default

    You can not find this informations with only the REST API, you must use the SOAP API if you want that kind of information.

  5. #5
    Join Date
    Oct 2013
    Posts
    7
    Rep Power
    3

    Default

    Hello tdesorbaix,

    Can you please share example (soap API) if you have in asp.net C#?

    Kindly share some details information for how to access soap api in asp.net c# for reading mail from zimbra mail account.?

  6. #6
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    10

    Default

    Sorry, I don't have example in asp.net.
    But you can find the documentation for soap API on your zimbra server in :
    /opt/zimbra/docs/
    You can also find the API Reference here :
    SOAP API Reference Material Beginning with ZCS 8.0 - Zimbra :: Wiki

Similar Threads

  1. Replies: 0
    Last Post: 09-22-2012, 06:32 PM
  2. Blank message body when using Office "Mail recipient as attachement" function
    By momohteks in forum Zimbra Connector for Outlook
    Replies: 8
    Last Post: 04-14-2011, 04:07 PM
  3. Download file attachement from Zimbra take a long time
    By halim.chaibi in forum Administrators
    Replies: 0
    Last Post: 02-28-2011, 01:53 AM
  4. [SOLVED] Size Attachement - Zimbra Hang
    By antonello74 in forum Administrators
    Replies: 3
    Last Post: 01-27-2010, 11:26 PM
  5. How to catch zimbra read mail events?
    By wangyugod in forum Developers
    Replies: 3
    Last Post: 10-27-2009, 07:16 PM

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
  •