I want to set up an Outlook rule that automatically sorts mail into an appropriate folder based on the contents of the subject line:

So I get emails with case numbers (CSSxxxxxx) in the subject line. I want to configure a rule that sends all such mails to a folder called the same value (So mails with CSS123456 in the subject are automatically put in folder CSS123456).

I know I can do this case-by-case but I have quite a lot of cases to deal with; so what I want to do is to simply create the folder for each case and have the rule be automatically configured from that point on.