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...
(Store the account name etc for later retrieval)
(This is what you would eventually call with a trigger to get the mail on a regular basis)
(This is the public interface to the database of store mail.)