Hey guys,

I am writing a macro letting user move his e-mails to a local folder, called smallBucket. When the size reaches 5, a user is asked whether or not to move the content of the folder to a public folder. I have a working code that moves e-mails to a local folder, copies the local folder to the public folder, removes the local folder's content and it all works fine. The problem is that when multiple clients do this, multiple folders are being created in the public folder. Ultimately I want all the e-mails to be directly in the public folder without any sub-folders, and here is where my problem beings.

When I just move the files to the public folder, called largeBucket, the "To" property gets messed up. While moving the e-mails within local folders, if an e-mail was sent to me, it will still say it is "To: Rafal" When moved to the public folder, it becomes "To: largeBucket"

any ideas how I can fix this?

I tried
[VBA]currentMailItem.To = nameSpace.CurrentUser.Name 'currentMailItem is the email in the public folder[/VBA]
Also I tried to copy the e-mail and move the copy, but still no luck

Thanks