Solved

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

Posted on 2007-03-25
2
316 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to dynamically set the form action using jQuery.

749 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