Monitoring spam filters This code allows for checking a series of mailboxes for mail and spam. ’emails.db’ contains the data collected so far.