Absent Member.
Absent Member.
1488 views

Can't get SMTP-sent messages via SOAP

Hi,
I've written a SOAP retention client in java that reads messages from all users in my GW system (8.0.2). This works flawlessly as long as the messags originate from within GW. If I use SMTP to send a message to a GW user via the GWIA, that message does appear in the user's inbox, but I can't find it in that same inbox using my message cursor. Even if I clear the retention date from the mailbox completely, I can't get the cursor to list the new SMTP-origin messages. I know it's there, I just can't get to it using SOAP. Not being able to archive messages that don't originate within the system obviously greatly limits the usefulness of my archiving app, so I'm hoping someone can help me out with this.

The view I use for the cursor is "peek message/RTF delivered subject priority hasAttachments priority size attachments custom email from default recipients sendoptions".
The container I query is "folders".

I've searched this forum and the docs for this, but can't seem to figure it out. I must be missing a setting somewhere, or something. Anyone have any idea how I can access smtp-origin messages from SOAP?

Thanks in advance,
Maarten
Labels (1)
0 Likes
2 Replies
Absent Member.
Absent Member.

You could do a SOAP trace to see if the internet
messages are getting to your application. My guess
is your application is getting hung up on the
"internet" attribute. Any item that comes in
through the GWIA will have an 'internet="1"'
attribute. That should be the only major difference
between an internal message and an external one.

Preston

>>> On Wednesday, September 01, 2010 at 7:06 AM,

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

> Hi,
> I've written a SOAP retention client in java that reads messages from
> all users in my GW system (8.0.2). This works flawlessly as long as the
> messags originate from within GW. If I use SMTP to send a message to a
> GW user via the GWIA, that message does appear in the user's inbox, but
> I can't find it in that same inbox using my message cursor. Even if I
> clear the retention date from the mailbox completely, I can't get the
> cursor to list the new SMTP‑origin messages. I know it's there, I just
> can't get to it using SOAP. Not being able to archive messages that
> don't originate within the system obviously greatly limits the
> usefulness of my archiving app, so I'm hoping someone can help me out
> with this.
>
> The view I use for the cursor is "peek message/RTF delivered subject
> priority hasAttachments priority size attachments custom email from
> default recipients sendoptions".
> The container I query is "folders".
>
> I've searched this forum and the docs for this, but can't seem to
> figure it out. I must be missing a setting somewhere, or something.
> Anyone have any idea how I can access smtp‑origin messages from SOAP?
>
> Thanks in advance,
> Maarten

0 Likes
Absent Member.
Absent Member.

Hi Preston,
Thanks for the tip. Did a soap trace and realized/remembered that I was setting a source filter with the value "sent received" like so:

final FilterEntry f2 = new FilterEntry();
f2.setOp(FilterOp.IS_OF);
f2.setField("source");
f2.setValue("sent received");
fg.getElement().add(f2);


If I remove that filter I get everything. Weird, because you'd think it still falls under the "received" category.

Regards,
Maarten

Preston Stephenson;2017692 wrote:
You could do a SOAP trace to see if the internet
messages are getting to your application. My guess
is your application is getting hung up on the
"internet" attribute. Any item that comes in
through the GWIA will have an 'internet="1"'
attribute. That should be the only major difference
between an internal message and an external one.

Preston
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.