Hi,

I have a folder structure as below

Inbox
.A
...1
...2
...3
.B
...21
...22
...23

The mails are addressed to [email protected], [email protected]

I want a VBA script that can move messages sent to a.1 ==> Inbox.a.1 Folder, b.21 ==> Inbox.b.1 folder and so on.
Its possible that a message is sent to [email protected] and there is no b.99 folder. In that case, the message should go to "Inbox.b" folder

I am newbie at Outlook VBA and will use the code as "run a script" in Rules wizard.
Can this work? Please help.