Problem: mail filter maildaemon.php wasn't working

Running it with a file containing a fake email message showed the
error was a missing module

# scripts/maildaemon.php < $HOME/crap2

"unknown function mailparse_rfc822_parse_addresses() in line ..."

In my case I decided to download and build the apparently missing package:

# wget "http://pecl.php.net/get/mailparse-2.1.4.tgz";

However, having no experience with building a php5 extension, and
finding no makefile, I couldn't immediately see what to do. I finally
resorted to reading the doc here:

 http://www.php.net/manual/en/install.pecl.windows.php

Boiled down, here's what I did after downloading

# tar -xvzf mailparse-(versions).tgz
# cd  mailparse(version)
# phpize

// from there it's the age-old ritual convocations

# ./configure
# make
# make install

I haven't actually tested it yet but I see it is installed. I assume
extensions.ini needs to be modified, so I added extension=mailparse.so
to that file and restarted apache. I now see mailparse when I call
phpinfo();

# php -r "phpinfo();" | grep mailparse

I hope this helps others

r
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to