Re: Mail conversation parser?
| From: | Richard York | Date: | Tue, 21 Sep 2004 03:10:18 +0000 |
| Subject: | Re: Mail conversation parser? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33500@lists.php.net to get a copy of this message | ||
Turadg Aleahmad wrote:
Hi, folks. My site has a mail gateway for our custom forums. It was written years ago and I've been converting some of the code to use PEAR classes that are now available: Mail, Mail_mime, Mail_RFC822, etc. One feature of our forums that I haven't found a PEAR class for is parsing out the novel content of an e-mail reply à la Gmail. When a user replies by e-mail to a comment they received, their mail app automatically tacks on some "Some Dude wrote:" and a quote of all that. Since we're posting the message within a threaded web forum, that part is redundant. Is anyone working on functionality like this for PEAR? Mail_Conversations or somesuch? If not, is anyone interested in such functionality if I where to contribute it? If so, where should it go?I was thinking about writing such a package, but haven't yet been able to get around to it. Such a package should have, IMO, * Parsing and replacement of urls with clickable links in plain text messages. * Perhaps some other formating options for plain text.
i.e. convert dashed lines to horizontal rules,
parse and replace forum code (via HTML_BBCodeParser of course).
grayed out text below the double dash '-- '.
* Regex to find and replace CIDs with file paths for multipart/related
messages
* Replacement of mailto: links in Plain text/HTML message, so that
one could install a click link to their own message composer app.
* Conversations.
I think such a package should be called Mail_Tools or Mail_Utilities.
--
Richard York
------------------------------------------------------------------------
[richy[<@>]smilingsouls[<@>]net] :: [http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail