Name Date Size #Lines LOC

..28-Mar-2023-

setup/H11-Aug-2022-

README.mdH A D31-Aug-20211.1 KiB2518

bug31142_1.phptH A D31-Aug-20211.1 KiB5641

bug31142_2.phptH A D31-Aug-2021591 2722

bug32589.phptH A D31-Aug-2021644 3126

bug35669.phptH A D31-Aug-20211.7 KiB6552

bug40854.phptH A D31-Aug-20211.1 KiB5440

bug44098.phptH A D31-Aug-2021247 1412

bug45705_1.phptH A D31-Aug-2021348 1714

bug45705_2.phptH A D31-Aug-20211.3 KiB5046

bug46918.phptH A D31-Aug-20211.4 KiB7269

bug53377.phptH A D31-Aug-2021606 3634

bug63126.phptH A D31-Aug-20211.4 KiB5654

bug64076.phptH A D31-Aug-2021602 2726

bug75774.phptH A D31-Aug-2021394 2318

bug77020.phptH A D10-Jul-2023333 1715

bug77153.phptH A D31-Aug-2021534 2322

bug80213.phptH A D31-Aug-2021434 2522

bug80215.phptH A D31-Aug-20211 KiB6867

bug80216.phptH A D31-Aug-2021425 1615

bug80220.phptH A D31-Aug-2021531 3327

bug80223.phptH A D31-Aug-2021663 2726

bug80226.phptH A D31-Aug-2021544 2926

bug80242.phptH A D31-Aug-2021349 2120

bug80438.phptH A D31-Aug-20211.3 KiB6759

bug80710_1.phptH A D31-Aug-20211.1 KiB3630

bug80710_2.phptH A D31-Aug-20211.1 KiB3630

bug80800.phptH A D31-Aug-2021539 2419

gh9309.phptH A D12-Aug-2022603 2928

imap_8bit_basic.phptH A D31-Aug-2021788 2522

imap_append_basic.phptH A D11-Aug-20221.8 KiB6557

imap_base64_basic.phptH A D31-Aug-2021806 3934

imap_binary_basic.phptH A D31-Aug-20211.6 KiB4034

imap_body_basic.phptH A D31-Aug-20211 KiB4437

imap_body_errors.phptH A D31-Aug-20211.1 KiB5344

imap_body_uid.phptH A D31-Aug-2021619 3125

imap_bodystruct_basic.phptH A D31-Aug-20211.6 KiB7461

imap_clearflag_full_basic.phptH A D31-Aug-20212.3 KiB121112

imap_clearflag_full_uid.phptH A D31-Aug-20211.8 KiB9383

imap_close_basic.phptH A D31-Aug-20211.5 KiB5344

imap_close_variation4.phptH A D31-Aug-20212.5 KiB8974

imap_constructor.phptH A D31-Aug-2021291 1513

imap_createmailbox_basic.phptH A D31-Aug-20212 KiB7158

imap_delete_uid.phptH A D31-Aug-2021953 5446

imap_errors_basic.phptH A D31-Aug-2021571 2723

imap_fetch_overview_basic.phptH A D31-Aug-20211.7 KiB9277

imap_fetch_overview_uid.phptH A D31-Aug-2021707 3226

imap_fetch_overview_variation5.phptH A D31-Aug-20212.2 KiB140121

imap_fetch_overview_variation6.phptH A D31-Aug-20212.6 KiB10686

imap_fetchbody_basic.phptH A D31-Aug-20212.2 KiB8269

imap_fetchbody_errors.phptH A D31-Aug-20211.2 KiB5242

imap_fetchbody_uid.phptH A D31-Aug-2021680 3226

imap_fetchbody_variation6.phptH A D31-Aug-20211.4 KiB5646

imap_fetchheader_basic.phptH A D31-Aug-20211.9 KiB8070

imap_fetchheader_errors.phptH A D31-Aug-20211.2 KiB5041

imap_fetchheader_uid.phptH A D31-Aug-2021654 3125

imap_fetchheader_variation5.phptH A D31-Aug-20211.4 KiB6250

imap_fetchmime_errors.phptH A D31-Aug-20211.2 KiB5242

imap_fetchmime_uid.phptH A D31-Aug-2021680 3226

imap_fetchstructure_basic.phptH A D31-Aug-20211.2 KiB6456

imap_fetchstructure_errors.phptH A D31-Aug-20211.1 KiB5041

imap_fetchstructure_uid.phptH A D31-Aug-2021709 3226

imap_final.phptH A D31-Aug-2021217 119

imap_gc_error.phptH A D31-Aug-2021645 3430

imap_getsubscribed_basic.phptH A D31-Aug-20211.2 KiB5545

imap_headerinfo_basic.phptH A D31-Aug-20212.3 KiB133118

imap_list_basic.phptH A D31-Aug-2021667 3225

imap_lsub_basic.phptH A D31-Aug-20211 KiB5039

imap_mail_copy_basic.phptH A D31-Aug-2021895 3933

imap_mail_move_basic.phptH A D31-Aug-2021903 3933

imap_mutf7_to_utf8.phptH A D31-Aug-2021253 1916

imap_open_error.phptH A D31-Aug-2021881 4033

imap_open_with_cl_expunge.phptH A D31-Aug-20211.1 KiB4638

imap_renamemailbox_basic.phptH A D31-Aug-2021940 4134

imap_reopen_with_cl_expunge.phptH A D31-Aug-20211.3 KiB5141

imap_rfc822_parse_headers_basic.phptH A D31-Aug-20212.1 KiB126110

imap_rfc822_write_address_basic.phptH A D31-Aug-2021215 1110

imap_savebody_basic.phptH A D31-Aug-2021852 4640

imap_savebody_errors.phptH A D31-Aug-20211.2 KiB5242

imap_savebody_uid.phptH A D31-Aug-2021940 4233

imap_search_basic.phptH A D31-Aug-2021688 4438

imap_setflag_full_basic.phptH A D31-Aug-20211.3 KiB8576

imap_setflag_full_uid.phptH A D31-Aug-20211.9 KiB11199

imap_sort_uid.phptH A D31-Aug-2021839 5953

imap_timeout_basic.phptH A D31-Aug-2021998 5144

imap_undelete_basic.phptH A D31-Aug-2021573 3327

imap_undelete_uid.phptH A D31-Aug-2021819 4841

imap_utf8.phptH A D31-Aug-2021220 1916

imap_utf8_to_mutf7_basic.phptH A D31-Aug-2021253 1916

nil_constant.phptH A D31-Aug-2021164 1211

README.md

1# The imap extension tests
2
3Many of the tests in this directory require a mail server to be running, if
4there is no mail server the test will skip and warn, see skipif.inc for details.
5
6To make the tests run parameters in the `skipif.inc` and `imap_include.inc`
7files will need to be changed to match the local mailserver configuration.
8
9The tests have been checked using dovecot (on Linux 32 and 64 bit systems) and
10hMailServer on Windows. The tests are intended to be mailserver agnostic.
11
12## Set-up tests on Ubuntu (checked on Ubuntu 18.04 (Bionic))
13The necessary packages can be installed using the following command;
14`apt-get install libc-client-dev libkrb5-dev dovecot-core dovecot-pop3d dovecot-imapd sendmail`
15
16The build of PHP will need to be compiled with the following flags:
17```
18--with-imap --with-kerberos --with-imap-ssl
19```
20
21Then run the set-up script `ext/imap/tests/setup/setup.sh` which will add the `vmail`
22group and user which is used by Dovecot for the mailbox. It will also copy the
23`ext/imap/tests/setup/dovecot.conf` and `ext/imap/tests/setup/dovecotpass` to the correct
24location for Dovecot and restarts it for the new configuration to be enabled.
25