An imap agent that learns from existing folders and contents which e-mails are likely to be filed in which folders.