Hello all.
I would like to use PHP to administer a Cyrus/IMAP server. I would also like to use an existing script coming with the application itself (my app. will then be Web-based, of course).
This script opens a telnet-like prompt. THe admin can then input commands to create, delete, list, modify accounts ...
Ex:
[root@isham cyrus-imapd-2.0.16]# cyradm --user cyrus localhost
IMAP Password:
becker> listmailbox
user.ajansen
user.ajansen.Drafts
user.ajansen.Sent
user.ajansen.Trash
user.ajene1617_site08
user.ajene1617_site08.Drafts
user.ajene1617_site08.Sent
user.ajene1617_site08.Trash
user.aka28_site08
user.aka28_site08.Drafts
user.aka28_site08.Sent
user.aka28_site08.Trash
...
becker>
I would like to know if its possible to 'call' this script with PHP, be able to pass command to it, and be able to 'read' what the scripts outputs me, so that I can deal with it my own way, on a nice web-based GUI.
An idea ?
Thanks for you precious help.