LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2006, 11:25 AM   #1
senyahnoj
Member
 
Registered: Jul 2004
Location: Gloucestershire, UK
Distribution: Ubuntu, Debian & Gentoo
Posts: 74

Rep: Reputation: 16
PHP - parsing maildir


I'm looking for a PHP script/class which can parse emails directly from a maildir.

Has anyone come across such a thing?

Thanks
 
Old 12-01-2006, 07:27 PM   #2
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
You can write your own script that parses the mailboxes but I do not suggest that 'cause there are alternatives to access maildir.
What you need is a function with which you can download, browse modify the maildir, right?
http://www.php.net/manual/en/function.imap-open.php
Connection to the servern via POP3 or IMAP is a fairly easy thing to do. Everything you need is curl.
 
Old 12-01-2006, 07:27 PM   #3
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
Ahh... A question. Do you want to write a webmail client? If so you might want to visit the phpmailer.sf.net. (^_^)
 
Old 12-01-2006, 07:53 PM   #4
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
And one more thing... pear.php.net This is an amazing site to find some premade scripts that you can download and use on you website. Esp: Mail_Imap2 -> it makes the life easier. I created a simepl webmail client app in 25 mins. Read mail, send mail, that's all can do but it is working. (^_^) (No mime support)
 
Old 12-02-2006, 12:33 PM   #5
senyahnoj
Member
 
Registered: Jul 2004
Location: Gloucestershire, UK
Distribution: Ubuntu, Debian & Gentoo
Posts: 74

Original Poster
Rep: Reputation: 16
Thanks for the suggestions. What I'm actually doing is creating a simple RSS feed off on inbox which receives emails from a mailing list.

I was trying to avoid having to use IMAP if possible and simply parse the files in the local maildir but I see that this is the other way of doing it.
 
Old 12-03-2006, 09:02 PM   #6
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
I am sure that with the pear module it is gonna be easy. (^_^) Have fun
 
  


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
PHP Parsing ToothlessRebel Programming 20 10-25-2006 07:35 PM
Parsing URL in PHP benrose111488 Programming 6 10-12-2005 12:12 PM
php parsing some includes. others are not. toadeny Linux - Newbie 4 09-18-2003 09:50 AM
php not parsing chens_83 Linux - General 9 02-19-2003 04:53 AM
PHP -> parsing urls DJFauß Programming 14 08-07-2001 01:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration