To help describe how you can improve the process, Figure 1 shows a typical spam filtering solution where the e-mail is filtered as it comes in, and the e-mail is delivered into individual mailboxes.
It checks the mailboxes on mail servers for E-mail messages, or sends E-mail messages to a mail server, and converts between E-mail messages and business objects.