New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Absent Member.
Absent Member.
396 views

VuGen Scripting - MAPI Protocol help

Hi Team,

 

Am working on VuGen scripting to send and delete email from Outlook 2010, while am able to perform the action.

Facing issue in deletion, the script doesn't point to current email, but deletes older ones.

 

The Protocol "  mapi_set_property_sz("Message ID", "");" doesn't seem to point to current session email

Any pointers.

 

Please help!!

Many Thanks for your valuable info.

 

Best Regards,

Fruity

0 Likes
1 Reply
Absent Member.
Absent Member.

Hi Fruity,

 

It would be easier to understand the issue if you provided some code. The mapi_delete_mail API just deletes either the letter with ID specified by Id parameter or the last letter, which can be set in either mapi_read_next_mail (Message ID parameter) or mapi_set_property_sz("Message ID", <ID>).

 

If you call mapi_set_property_sz with empty string, you just reset the last letter ID to undefined and the delete API doesn't delete anything.

 

Regards,

Sergey

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.