SelvirK
SelvirK

Reputation: 925

Mail body parsing - open source mail client (PHP or ASP.NET)

I have one interesting problem.

I must parse mail body (regular expression), get some data from mail body, put this data to mail subject and forward this mail to another address. This must be done immediately when mail is received.

Is any free WEBMAIL client that allow writing custom filter, or I must make application for this simple task?

Which is best open source mail client (PHP or ASP.NET)?

Upvotes: 0

Views: 3673

Answers (4)

Gabriel Sosa
Gabriel Sosa

Reputation: 7956

I use this one to parse bounce emails

http://pear.php.net/package/Mail_Mime

good results so far.

EDIT:

also http://www.xpertmailer.com/ has a very nice MIME library that can help you.

Upvotes: 1

Cohen
Cohen

Reputation: 2720

Look at Bugtracker.net they implement a pop3 client which can receive and process incoming emails (which in their case are stored as bug cases) to process the mail content they use SharpMime.

Upvotes: 0

Karsten
Karsten

Reputation: 14642

I don't know any freemailer where you could run such highly customized filters.

Please specify 'open source mail client', as your question doesn't show any need for a webmail-interface.

As a possible solution you could write a small script that a) collects the mails every x minutes (cronjob) and b) applies your filter. This works at a lot of free php webhosters, there are also some free cronjob-services (first google hit) which can call your script every x minutes.

Zend_Mail and maybe PHPMailer are nice mail-libraries.

Upvotes: 1

David Schmitt
David Schmitt

Reputation: 59356

To get immediate processing of mails without polling, this should be integrated into your mail delivery process (MDA, Mail Delivery Agent). On most Unix boxes, this can be easily done via procmail and formail (part of procmail).

If you have more control over your mailer, tighter integration might be possible for more performance || better error handling.

Upvotes: 1

Related Questions