Home

Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Get MIME format Mail Item.

Hybrid View

  1. #1

    Get MIME format Mail Item.

    Hi,

    From Object Java API, I can use getMIME() from a Mail object to retrieve the MIME format of a Mail message.

    But from GWSOAP interface, I can not find a way to do that.

    http://forums.novell.com/novell-deve...mime-data.html

    The above is another post in this forum and Preston had provided an example for retrieving the attachment information but I still do not know how to get the information from a Mail Item like that.

    Please help.

    Thanks,

    Richard

  2. #2
    Preston Stephenson NNTP User

    Re: Get MIME format Mail Item.



    >>> On Thursday, June 04, 2009 at 6:16 AM,

    daisysendermoon02<daisysendermoon02@no-mx.forums.novell.com> wrote:

    > Hi,
    >
    > From Object Java API, I can use getMIME() from a Mail object to
    > retrieve the MIME format of a Mail message.
    >
    > But from GWSOAP interface, I can not find a way to do that.
    >
    >

    http://forums.novell.com/novell‑de...upwise‑web
    service‑soap/36
    > 4822‑mime‑data.html
    >
    > The above is another post in this forum and Preston had provided an
    > example for retrieving the attachment information but I still do not
    > know how to get the information from a Mail Item like that.
    >
    > Please help.
    >
    > Thanks,
    >
    > Richard


  3. #3
    Preston Stephenson NNTP User

    Re: Get MIME format Mail Item.

    Sorry, I pressed the wrong key.
    To get a mime formatted message you have
    to use the HTTP GET mechanism. You pass
    the id of the item, plus mime=1/
    HTTP GET /attachment?session=...&id=...&mime=1

    The mime value can be 1 or true.
    Here is an example.

    GET
    /attachment?session=kz4qLx26whEAEw_X&id=49E34D4E.do main.PO1.100.1776172.1.C9
    C8.1%4011%3A7.domain.PO1.100.0.1.0.1%4016&mime=tru e HTTP/1.1

    Preston

    >>> On Thursday, June 04, 2009 at 11:22 AM, Preston

    Stephenson<PStephenson@gw.novell.com> wrote:

    >
    >>>> On Thursday, June 04, 2009 at 6:16 AM,

    > daisysendermoon02<daisysendermoon02@no‑mx.forums .novell.com> wrote:
    >
    >> Hi,
    >>
    >> From Object Java API, I can use getMIME() from a Mail object to
    >> retrieve the MIME format of a Mail message.
    >>
    >> But from GWSOAP interface, I can not find a way to do that.
    >>
    >>

    >

    http://forums.novell.com/novell‑de...oupwise‑web*

    > ‘service‑soap/36
    >> 4822‑mime‑data.html
    >>
    >> The above is another post in this forum and Preston had provided an
    >> example for retrieving the attachment information but I still do not
    >> know how to get the information from a Mail Item like that.
    >>
    >> Please help.
    >>
    >> Thanks,
    >>
    >> Richard


  4. #4

    Re: Get MIME format Mail Item.

    Thanks Preston.

    OK, I followed your directions and I ran the following lines.

    URL url = new URL(str);
    HttpURLConnection huc = (HttpURLConnection) url.openConnection();
    InputStream is = huc.getInputStream();
    byte[] b = new byte[16384];
    FileOutputStream out = new FileOutputStream(new File("c:\\temp", "Mime.822"));

    int len;
    for (;;)
    {
    len = is.read(b, 0, 16384);
    if (-1 == len) {
    break;
    }
    out.write(b, 0, len);
    }
    out.flush();
    out.close();


    But everytime when "huc.getInputStream()" is called, the POA just crashed.

    Is there anything I can do?

    Thanks,

    Richard

  5. #5
    Preston Stephenson NNTP User

    Re: Get MIME format Mail Item.

    What version of the POA are you using?

    >>> On Thursday, June 04, 2009 at 12:06 PM,

    daisysendermoon02<daisysendermoon02@no-mx.forums.novell.com> wrote:

    > Thanks Preston.
    >
    > OK, I followed your directions and I ran the following lines.
    >
    > URL url = new URL(str);
    > HttpURLConnection huc = (HttpURLConnection) url.openConnection();
    > InputStream is = huc.getInputStream();
    > byte[] b = new byte[16384];
    > FileOutputStream out = new FileOutputStream(new File("c:\\temp",
    > "Mime.822"));
    >
    > int len;
    > for (;;)
    > {
    > len = is.read(b, 0, 16384);
    > if (‑1 == len) {
    > break;
    > }
    > out.write(b, 0, len);
    > }
    > out.flush();
    > out.close();
    >
    >
    > But everytime when "huc.getInputStream()" is called, the POA just
    > crashed.
    >
    > Is there anything I can do?
    >
    > Thanks,
    >
    > Richard


  6. #6

    Re: Get MIME format Mail Item.

    GW 7.0.3

    Thanks,

    Richard

  7. #7
    Preston Stephenson NNTP User

    Re: Get MIME format Mail Item.

    The mime code is only in 8.0.0 and later.
    Preston

    >>> On Thursday, June 04, 2009 at 1:26 PM,

    daisysendermoon02<daisysendermoon02@no-mx.forums.novell.com> wrote:

    > GW 7.0.3
    >
    > Thanks,
    >
    > Richard


  8. #8

    Re: Get MIME format Mail Item.

    Thanks a lot Preston.

    Richard Liu

    Quote Originally Posted by Preston Stephenson View Post
    The mime code is only in 8.0.0 and later.
    Preston

    >>> On Thursday, June 04, 2009 at 1:26 PM,

    daisysendermoon02<daisysendermoon02@no-mx.forums.novell.com> wrote:

    > GW 7.0.3
    >
    > Thanks,
    >
    > Richard

  9. #9
    Join Date
    Apr 2009
    Posts
    4

    Re: Get MIME format Mail Item.

    Quote Originally Posted by daisysendermoon02 View Post
    Thanks a lot Preston.

    Richard Liu
    I hope it is not the case that this is not supported. It is in Novell's documentation that 7.0.3 supports this. I certainly hope so as we had a prominent customer update to 7.0.3 w/ Hot Patch 3 so we could use attachment streaming and now it causes the POA to crash every time we try to pull from that URL. The very same attachment streaming code with 8.0 does not cause the POA to crash. Unfortunately, updating to 8.0 is not an option at this customer site.

    Here is the link for the documenation:

    Novell Documentation

    Go to GroupWise Web Service and click on GroupWise 7 SP3 changes. Attachment streaming is pretty much the only change listed. Also, click on 'Using Streaming Attachments'. The very first line says to make sure you are connecting to a 7.0.3 POA.

  10. #10
    Preston Stephenson NNTP User

    Re: Get MIME format Mail Item.

    Attachment streaming is supported, but not generating
    a MIME (rfc822) attachment if the rfc822 attachment doesn't
    already exist.

    >>> On Monday, July 20, 2009 at 1:46 PM,

    vip8439<vip8439@no-mx.forums.novell.com>
    wrote:

    > daisysendermoon02;1804502 Wrote:
    >> Thanks a lot Preston.
    >>
    >> Richard Liu

    >
    > I hope it is not the case that this is not supported. It is in
    > Novell's documentation that 7.0.3 supports this. I certainly hope so as
    > we had a prominent customer update to 7.0.3 w/ Hot Patch 3 so we could
    > use attachment streaming and now it causes the POA to crash every time
    > we try to pull from that URL. The very same attachment streaming code
    > with 8.0 does not cause the POA to crash. Unfortunately, updating to
    > 8.0 is not an option at this customer site.
    >
    > Here is the link for the documenation:
    >
    > 'Novell Documentation'
    >

    (http://developer.novell.com/document...ex.html?page=/

    > documentation/gwsoap/gwwbserv/data/bktitle.html)
    >
    > Go to GroupWise Web Service and click on GroupWise 7 SP3 changes.
    > Attachment streaming is pretty much the only change listed. Also, click
    > on 'Using Streaming Attachments'. The very first line says to make sure
    > you are connecting to a 7.0.3 POA.


Page 1 of 2 12 LastLast

Posting Permissions

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