LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   reading mails? (https://www.linuxquestions.org/questions/programming-9/reading-mails-157753/)

akaash 03-14-2004 09:04 PM

reading mails?
 
My company is using openwebmail as email client. Respective users' mails are stored in /home/<username>/mail/
where <username> is the name of the user.

In this mail folder there are 4 files in mbox format: sent-mail, saved-messages, saved-drafts and mail-trash
Mails are stored according to the user selection.

Now what i require to do is write a program in perl/cgi which can display mails from a particular folder selected
by the user. i.e. if user selects trash then i need to display all the subjects of the mail on the first page.
And then as the user click any subject then he should be able to see the corresponding mail.

I don't know how to do that ?
Is there any module available on CPAN.org for this purpose so that whenever a user clicks on the subject of the
mail, he is able to see the whole message along with attachments if any ?

Plz. give me some guidance...

ToniT 04-24-2004 06:33 PM

libmail-mbox-messageparser-perl might be useful, thus quite simple.

libmail-box-perl does some more; it contains examples on how to pick the subject fields from the mailbox, etc.

akaash 04-25-2004 10:10 PM

Thanks for ur reply...


All times are GMT -5. The time now is 06:48 AM.