Highlighted
Absent Member.. Absent Member..
Absent Member..
334 views

MAPI mapi_read_next_mail - warning message in replay log

Hi,

I've a MAPI script which uses the 'mapi_read_next_mail' command to peek at an email.
However, I'm getting the following warning message in the replay log, which seems to indicate that it's not worked:
'Warning message:No more messages.'

Note: Before I execute the mapi_read_next_mail command, I'm doing the following, which is supposed to reset mail to beginning of mailbox:
mapi_set_property_sz("Message ID", "");

Any suggestions/ideas anyone?
What doesn't kill you only makes you stronger
0 Likes
5 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: MAPI mapi_read_next_mail - warning message in replay log

Stephanie,

I would suggest to open a ticket with hp support.

Thanks
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: MAPI mapi_read_next_mail - warning message in replay log

In the 'mapi_read_next_mail' command I was using Type=mail_type, as per the help example.
When I changed it to Type=IPM it worked.
What doesn't kill you only makes you stronger
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: MAPI mapi_read_next_mail - warning message in replay log

Oh. that's mistake. Example is clearly mentioned as IPM only.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: MAPI mapi_read_next_mail - warning message in replay log

Thanks for the correction madthrt.
I meant in the function reference, not the example.

The following is shown in the function reference help:
Type: The type of mail message. For example, IPM.Note indicates a sticky note. The default is a simple mail message.
Use the following format:
"Type=mail_type"

The example shown is for a sticky note, but I wanted a standard email message.
Its a shame that the valid mail types are not listed.
What doesn't kill you only makes you stronger
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: MAPI mapi_read_next_mail - warning message in replay log

Ok. Noted, will correct it in the future documents.
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.