[Pmwiki-users] Dev Q: PHP / IMAP capabilities

Steven Leite steven_leite
Mon Jun 21 08:01:34 CDT 2004


I've been toying with the idea of writing a Cookbook add-on that allows
a user to view/create/modify WikiPages via email.  I want to do it
simply, without a lot of configuration on the user ("admins") side.

I noticed PHP has built-in functions in the IMAP category.  I'm not sure
if "built-in" is the correct wording, but let's just say the functions
are listed in the PHP manual.  Under the Requirements section, it notes
that you need to have c-client library installed.  Further, under the
Installation section, it suggests that you must compile PHP with
the --with-imap[=DIR]  parameter.

Anyways, I'm just wondering if the IMAP functions are available (by
default) on most "typical" ISP PHP install, or if this is a special
featureset that most people won't have access to.

Doesn't make much sense to write a Cookbook recipe that nobody can use.

If it turns out that a vast number of users will have access to the IMAP
functions in PHP, then I think it would be very easy to have PmWiki (via
a Cookbook recipe) periodically check a POP mailbox on the local server,
download messages, process the messages, and delete the old messages
from the server.  All this could be accomplished with a single .php
file.

This seems WAY EASIER than the other methods that I've seen.

Comments/Suggestions?

-Steven Leite




More information about the pmwiki-users mailing list