This is a basic example intended to show both TCP/IP commands retrieving mail from a POP account and simple database searching of that information. Please explore and change the WebDNA to fit your thoughts...

Setup Preference (Store the account name etc for later retrieval)

Get Mail (This is what you would eventually call with a trigger to get the mail on a regular basis)

View Mail (This is the public interface to the database of store mail.)