Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Was just after some light advice as somewhat of a novice. I am running Debian Stable hosting a Drupal site on Apache2 and was looking into the ability to dump emails as text into the website. Note that I DONT want the ability to send emails from the site (like webmail). I just want copies of emails from a POP3 email account (ISP) to be downloaded to my local machine then copied into the website.
I have some programming experiance (allthough all Windows based - VB, .NET, C++), but thinking the task was as simple as:
- Use Mozilla Thunderbird (using it anyway on the local machine) to download mail from my ISP account
- Create an application/script/cron-job (??) to copy the emails from the Mozilla Thunderbird mail folder (/var/spool/mail ??) to a Drupal directory
- Write a module in PHP to allow display and minor management functions in handling the email text.
I have started reading articles on sendmail, fetchmail etc, but WOW, is it more complicated than what I thought email would be! I just dont think I would need any email services, just ride on the back of Mozilla Thunderbird for now.
Its all a bit of a project, one to get me more into the 'guts' of Linux and also to learn some new languages (PHP,...).
If there is something already out there that does what I am after, I would be interested to know (no point in re-inventing the wheel) as I believe being open-source I would be able to pull apart, examine,modify, and redistribute?
Any information/advice much appreciated, like I said just more of a hobby and a start.
I think PHP may have all the functions you need for this - checkout "http://www.php.net/manual/en/ref.imap.php" You would simply have your PHP script read all the emails from a POP3 account, then display them - you shouldn't have to download them to your machine first (but if you want to do that you could via the same script). I've done something like this before in ColdFusion, and I've found PHP to be quite similar...