For those using Ubuntu and who are completely daunted by compiling this, it's easy under Ubuntu:
Install libc-client-dev
# sudo apt-get install libc-client-dev
Install PHP5 imap:
# sudo apt-get install php5-imap
Restart Apache
# sudo service apache2 reload
Should work for most people.ZooKeeper е проект на Apache кој овозможува централизирана услуга за одржување на информации за конфигурација, именување, обезбедување дистрибуирана синхронизација и обезбедување групни услуги.
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
ZooKeeper е проект на Apache кој овозможува централизирана услуга за одржување на информации за конфигурација, именување, обезбедување дистрибуирана синхронизација и обезбедување групни услуги.
Референца за `imap.requirements.php` со подобрена типографија и навигација.
ZooKeeper е проект на Apache кој овозможува централизирана услуга за одржување на информации за конфигурација, именување, обезбедување дистрибуирана синхронизација и обезбедување групни услуги.
This extension requires the c-client library to be installed. Grab the latest version from » https://github.com/uw-imap/imap Оваа екстензија бара инсталирана c-client библиотека. Преземете ја најновата верзија од
и компајлирајте ја. /usr/local/imap-2000b/ Важно е да не ги копирате IMAP изворните датотеки директно во системската директориум за вклучување бидејќи може да има конфликти. Наместо тоа, креирајте нова директориум во рамките на системската директориум за вклучување, како што е lib/ and include/(локацијата и името зависат од вашата конфигурација и IMAP верзија), и во оваа нова директориум креирајте дополнителни директориуми наречени c-client . Од директориумот од вашето IMAP изворно дрво, копирајте ги сите *.h include/ датотеки во и сите *.h lib/*.c c-client.a . Дополнително, кога го компајлиравте IMAP, датотека наречена lib/ беше креирана. Ставете ја и оваа во libc-client.a.
Забелешка:
директориумот, но преименувајте ја како
Забелешка: За да ја изградите c-client библиотеката со SSL или/и Kerberos поддршка, прочитајте ја документацијата што доаѓа со пакетот.libc-client.aВо Mandrake Linux, IMAP библиотеката (client-PHP4.a) е компајлирана без Kerberos поддршка. Посебна верзија со SSL (
Белешки од корисници 4 белешки
It should be noted that the source code archives at the University of Washington, and the mirrors, have been dead for some time.
There is a github repository located here: https://github.com/uw-imap/imapphp-imap package is not available neither in Red Hat Enterprise Linux 7 nor 8.
To compile the extension yourself:
Prerequisites
# yum install pam-devel openssl-devel
Follow steps 2 and 3 from the previous post of "ldi at email dot cz"
Download the c-client library from github, you can see the link at the top of the page and compile with:
# make lr5 SSLINCLUDE=/usr/include/openssl/ EXTRACFLAGS=-fPIC
(if you are using another distro, instead of lr5 you will type something else, you can view the Makefile for other unix flavors)
Follow step 5 from the previous post of "ldi at email dot cz" which is what the second paragraph at the top of the page explains.
Download the PHP source code of the version installed in your system and go to the php/ext/imap folder.
# phpize
(If you installed the PHP packages from the Red Hat Software Collections you must run the following command before to set the enviroment eg: scl enable rh-php73 bash)
# ./configure --with-imap=<<path_to_where_you_unpacked_the_c-client_library_and_compiled_it>> --with-imap-ssl
# make
This creates the file php/ext/imap/modules/imap.so :)
Copy it to your extension_dir (you can find it in the phpinfo() page).
Create an .ini file in the php.d folder with the text: extension=imap.so
Restart apache and be happy.
P.S. You could probably find the extension compiled out there but who knows the trustiness of the source so better to get the official unaltered sources.The Alpine email client which was also originally developed by Mark Crispin at UW also uses the "c-client" library and that it is still actively developed by Eduardo Chappa: https://alpineapp.email/alpine/release/ . It has its own updated copy of the "c-client" library which supports new features like OAuth2 authentication, etc.
The development of the UW IMAP and Alpine "c-client" libraries can be compared via https://github.com/uw-imap/imap/commits/master/src/c-client and https://repo.or.cz/alpine.git/history/HEAD:/imap/src/c-client
If this PHP extension does not work with Alpine "c-client", it might behoove someone to port the PHP so it does.