LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices

Reply
 
Search this Thread
Old 08-03-2005, 06:48 PM   #1
sallas
Member
 
Registered: Aug 2003
Location: Australia ACT
Distribution: Debian 2.6
Posts: 31

Rep: Reputation: 15
Mail text -> website ?


Hi all,

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.

TIA
 
Old 08-03-2005, 07:43 PM   #2
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
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...

Hope this helps

Last edited by pnellesen; 08-03-2005 at 08:59 PM.
 
Old 08-04-2005, 01:25 AM   #3
sallas
Member
 
Registered: Aug 2003
Location: Australia ACT
Distribution: Debian 2.6
Posts: 31

Original Poster
Rep: Reputation: 15
Cheers!
Drupal functionality are provided in the form of modules, and it just so happens there in PHP - so will be giving that a go!

Thanks for the link!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash scripting to check text in a website carlp Programming 2 09-20-2005 11:14 AM
PHP Website with e-mail forms, what mail daemon? gbkyle Linux - Software 1 07-05-2005 12:33 PM
How to host website and e-mail from DSL? moosturdsoed25 Linux - Networking 4 06-05-2005 07:20 PM
local users can't see website or get mail Michele Linux - Newbie 8 07-01-2004 01:00 PM
Opening a website in text mode HadesThunder Linux - Newbie 5 03-26-2004 06:20 PM


All times are GMT -5. The time now is 06:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration