Solved

PHP script or class to copy emails from a POP3 server to a database

Posted on 2007-03-25
2
320 Views
Last Modified: 2013-12-25
Anybody know of a good PHP command line script that will connect to a POP3 mail client and download the contents of the emails into a database. Need one that splits up the to, from, subject, content, time, etc ... and that will save the attachments into a subdirectory and store the filenames in the db at the same time.

If nobody knows of a command line script, maybe a PHP class with some of this functionality that I can adapt?

Doesn't even have to be PHP ... a Perl solution would be fine.
0
Comment
Question by:under_dog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
BrianGEFF719 earned 500 total points
ID: 18789771
The pear package Net_POP3 can do exactly what you want:
 http://pear.php.net/package/Net_POP3
0
 
LVL 16

Expert Comment

by:alain34
ID: 18792041
I wrote a project that read a pop3 account and create a xml feed from it.
Everything that you need must be in this project. Surely from the feed, you should be able to load it a database.
http://freshmeat.net/projects/conceptrm/
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question