Chong, Arthur schrieb am Mon, Mar 18, 2002 at 07:44:12AM -0600: > > How does a PHP interface work with cyrus - > the module that is well documented for imap from > PHP is the Washington Uni IMAP. I noticed a > small section in the PHP manuals that talk about > some elementary unsupported cyrus IMAP APIs > but nothing extensive at all. In fact, I did > not see any compile-time configure flags for > cyrus IMAP, and the only available is "--with-imap".
Which means it will go and link in functions from the imap-2000 (or derived) libraries. Do not mix this with servers. The "Washington Uni IMAP" *server* is something completely different. The *library* provides functions for client implementations (and any PHP webmailer is an IMAP client). So the PHP interface could act as an IMAP client and send appropriate commands into the network connection like A01 LOGIN testuser BZgfsdUAHFro * A01 OK A02 SLECT INBOX * A02 OK ... and understand the server responses. Vanilla PHP does not know anything about those commands. It takes the lib and links the functions needed to its own code imap_open() et.al. As a copn- sequence, the output shown above will work with *any* server (cyrus included) as long as that server is IMAP-RFC compliant, and so will PHP. Regards, Birger