Move email messages to a specified folder based on a category

  • Thread starter Thread starter DougLost
  • Start date Start date
D

DougLost

Hi,

Instead of creating over 100+ rules to move messages to a specified
folder based on the category, I'm hoping a macro can do this. I have
over a 100 categories. Each category represents a project I'm working
on.

I have messages already assigned to a category in a file later folder.
I'd like any messages with category x automatically move from my file
alter folder to another folder named x. Messages with category y will
move to folder y. category z messages will move to folder z.


Am hoping somebody has already done this.

Thanks,

Doug
 
This is easy enough to do with a macro. Just loop through the
MAPIFolder.Items collection for the given folder (use
ActiveExplorer.CurrentFolder to work with the currently selected folder) and
read the Item.Categories property, then call Item.Move(MAPIFolder) to move it
to a destination folder you have already retrieved.

The trick for your solution though is mapping Category names to specific
folders; you'll have to build your own name/value array or collection or
whatever and incorporate it into your processing logic.
 
Back
Top