I need to write some code that will parse e-mails and wanted to get some user input as what the best approach is.
Here's the scenario. I will have lots of e-mails coming to my address and need to extract the body information from the e-mails and dump the info into a database. I know how to parse information and interact with databases so that is not a problem.
I'm wondering what the best approach is for giving my parsing script access to the e-mail. One way I see is to simply use Net::POP3 to check my e-mail and then parse each e-mail messaage accordingly. However, I'm not sure how efficient this would be if the volume of e-mail was large. This would require constantly polling the inbox with Net::POP3. Would it be faster to have the e-mails dumped into a file on my computer and then have my parse script parse the file?
Could anybody suggest a method for "linking" my script with my emails? Perhaps there are some programs or modules already out there.
Thanks.