Results 1 to 4 of 4

Thread: zimlets access ALL mail headers?

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    25
    Rep Power
    4

    Default zimlets access ALL mail headers?

    Is it possible to have access to all headers from a particular mail-message? For example through the ZmMailMsg object ...

    I see how to request additional specific headers (ZmMailMsg.requestHeaders) however it would be useful for us to access all of the headers from a message in a Zimlet. I haven't been able to find a way to do this ... assuming it's possible.

    As a fall back I thought maybe to access them through the SOAP client: 'com.zimbra.cs.client.*' however those classes (at least the ones that appear related to messages) don't seem to contain the necessary data.

    thx

  2. #2
    Join Date
    Jul 2006
    Location
    Pisa
    Posts
    135
    Rep Power
    9

    Default

    You can use GetMsgRequest
    <GetMsgRequest>
    <m id="{msg-id}" [read="1"] [raw="1"] [max="{max-inlined-length}"] [html="1"] [neuter="0"] [part="{part}"]
    [ridZ="YYYYMMDD[ThhmmssZ]"]
    >
    *(<header n="{header-name}/>)
    </m>
    </GetMsgRequest>

    se the soap.txt

  3. #3
    Join Date
    Jan 2011
    Posts
    25
    Rep Power
    4

    Default

    Thx for reply ...

    * Edit
    Nevermind the soap request seems to be basically working, I wasn't adding the proper urn:zimbraMail after the doc name.

    ... anyway:

    Also it isn't preferable to need to make another request for this. It would still be better if we could get all the headers in the initial message load request. Maybe ZmMailMsg.requestHeaders could be made to accept a wildcard or something?
    Last edited by arw; 02-17-2011 at 02:05 PM.

  4. #4
    Join Date
    Jan 2011
    Posts
    25
    Rep Power
    4

    Default

    Using SOAP doesn't do it ...

    You can get the message through SOAP but it's basically the same as using the JS API, you need to specify the headers to get. I'm hoping to just access all of them regardless of what they are. The headers that come through can vary and having to hardcode specifically which headers to request isn't the idea here ...

    Sorry I maybe wasn't too clear on that before but you can already do everything through the JS api in this respect that you can through SOAP as far as I can tell.
    Last edited by arw; 02-18-2011 at 03:40 PM.

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 02:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. Problem with Postfix and MTA
    By ZMilton in forum Administrators
    Replies: 16
    Last Post: 04-16-2008, 07:47 AM
  4. [SOLVED] Mailserver down when send file attach of 50Mb
    By ZMilton in forum Administrators
    Replies: 20
    Last Post: 04-10-2008, 12:44 PM
  5. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 09:09 AM

Posting Permissions

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