Hey,

I was configuring the maildaemon on my install under Ubuntu 8.10. It doesnt
come by default with the PECL extentsion that provides the function
"mailparse_rfc822_parse_addresses()" My attemts to compile/install this
extension didnt work. [1]

So I replaced that function call with a regex and it worked! [1]

preg_match('/[\\w\\.\\-+=*...@[\\w\\.\\-+=*_]*/', $from_hdr , $froms);
$from = $froms[0];

I was wondering if this is the only place in laconica this PECL extension is
used. If so we could get rid of this dependency with above line. (in the to
and from)

-Eric Helgeson

[1] http://wiki.cerb4.com/wiki/Installing_PHP_Mailparse
[2]
http://us3.php.net/manual/en/function.mailparse-rfc822-parse-addresses.php#74970
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to