PDA

View Full Version : Saving mails in respective folders



ramserp
03-17-2010, 05:00 AM
samples here.

"101011 - User Creation"
"Re:101011 - User Creation"
"Fwd:Re:101011 - User Creation"


"102022 - User Creation"
"Re:102022 - User Creation"
"Fwd:Re:102022 - User Creation"



Based on this number, a folder should be created automatically, all the respectives mails should move there.



Example:


Create a folder called ‘My Emails’.
My Emails - Main Folder
101011 - Sub Folder
(all the three mails)
102022 - Sub Folder
(all the three mails)


Have to Extract all the email messages tied to the number & Place in folder.

If attachment exists, Ensure attachment remains attached to message Make a copy of the attachment – same name
Place in the same folder

Please kindly help me with appropriate code.

The folders need to be created in hard disk and mails based based on subject need to be stored in the folders.

Thanks & Regards
Ramesh