View Single Post
  #7  
Old August 4th 09, 03:19 PM posted to microsoft.public.outlook.program_addins
Problem with UserProperty of mail object
external usenet poster
 
Posts: 1
Default Folder move event

hello,

I have some issue related to the mail which is movd from one folder
to another. I use vsto 2005 and my target application is outlook 2007. As
soon as the mail comes to outlook, i read its contents like 'to address',
'from address', etc and generate a uniqueID and call a webservice to insert a
record into the database.

Basing on the 'Rules and Alerts' specified, the mail goes to custom
folder. The problem is I am unable to assign that uniqueID to UserProperty of
the mail in the destination custom folder.

I would be thankful to the people who help me.

Thanks & Regards,
Varma



"Ken Slovak - [MVP - Outlook]" wrote:

Use a timer to set up the polling for that. In that event handler set a
boolean flag and initialize the timer, when it fires do what you have to do.
Persist that MAPIFolder reference so you can use it in the timer event.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
I'm using outlook 2003.

Keep that MAPIFolder reference and find it after the event finishes, at
which point the folder path should be correct.


If i keep Mapifolder reference then in which event/function i should find
it? After Folder_Add event folder_change event is not called for new
folder ( Drafts folder where i moved a folder).



Ads