Click to See Complete Forum and Search --> : Copying Messages in the inbox into userdefined folders


sreeks84
May 13th, 2006, 03:36 PM
Hi all,
I want to copy the messages in the inbox to user defined folders....
i have seen the API named CopyMessages( ) in MAPI but i dont know how to use MAPI...Should i initialize a MAPI session before using CopyMessages( ) ? if yes how can i do it ? i am not using MFC...Can any one please help me by providing examples or tips on how to do it?

Thanking you a lot,
sreeks84

golanshahar
May 13th, 2006, 04:16 PM
Look at this article: Process Microsoft® Outlook® Messages Automatically (http://www.codeproject.com/internet/processmb.asp?df=100&forumid=2122&exp=0&select=968074)

Cheers

sreeks84
May 14th, 2006, 02:21 PM
thanks for the above post, But i cant use MFC...is there any other example which is non MFC? i am writing code in eVC++...please if u know help me i will be very much greatful to you

golanshahar
May 14th, 2006, 03:13 PM
Look again in the article the code that uses the MAPI functions is pure API, only the wrapper is MFC. Take a look at it again with a little effort you can get the info you need from there! ;)

Cheers