Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now