Using the RetrieveMail Task allows you to get Emails from your IMAP or POP3 email servers.
If you do a search for "Email Lists" in your help text, you'll find a listing of each of the Email Attributes that are retrieved. This includes the Subject. Looping through a For-Each of your Email List, you can address any part of the emails, including inserting those values into a Database Table.
Lead Solutions Consultant