Name Date Size #Lines LOC

..19-Jun-2024-

setup/H19-Jun-2024-

README.mdH A D19-Jun-20241.1 KiB2518

bug31142_1.phptH A D19-Jun-20241.1 KiB5641

bug31142_2.phptH A D19-Jun-2024591 2722

bug32589.phptH A D19-Jun-2024644 3126

bug35669.phptH A D19-Jun-20241.7 KiB6552

bug40854.phptH A D19-Jun-20241.1 KiB5440

bug44098.phptH A D19-Jun-2024247 1412

bug45705_1.phptH A D19-Jun-2024348 1714

bug45705_2.phptH A D19-Jun-20241.3 KiB5046

bug46918.phptH A D19-Jun-20241.4 KiB7269

bug53377.phptH A D19-Jun-2024606 3634

bug63126.phptH A D19-Jun-20241.4 KiB5654

bug64076.phptH A D19-Jun-2024602 2726

bug75774.phptH A D19-Jun-2024394 2318

bug77020.phptH A D19-Jun-2024333 1715

bug77153.phptH A D19-Jun-2024534 2322

bug80213.phptH A D19-Jun-2024434 2522

bug80215.phptH A D19-Jun-20241 KiB6867

bug80216.phptH A D19-Jun-2024425 1615

bug80220.phptH A D19-Jun-2024531 3327

bug80223.phptH A D19-Jun-2024663 2726

bug80226.phptH A D19-Jun-2024544 2926

bug80242.phptH A D19-Jun-2024349 2120

bug80438.phptH A D19-Jun-20241.3 KiB6759

bug80710_1.phptH A D19-Jun-20241.1 KiB3630

bug80710_2.phptH A D19-Jun-20241.1 KiB3630

bug80800.phptH A D19-Jun-2024539 2419

gh9309.phptH A D19-Jun-2024603 2928

imap_8bit_basic.phptH A D19-Jun-2024788 2522

imap_append_basic.phptH A D19-Jun-20241.8 KiB6557

imap_base64_basic.phptH A D19-Jun-2024806 3934

imap_binary_basic.phptH A D19-Jun-20241.6 KiB4034

imap_body_basic.phptH A D19-Jun-20241 KiB4437

imap_body_errors.phptH A D19-Jun-20241.1 KiB5344

imap_body_uid.phptH A D19-Jun-2024619 3125

imap_bodystruct_basic.phptH A D19-Jun-20241.6 KiB7461

imap_clearflag_full_basic.phptH A D19-Jun-20242.3 KiB121112

imap_clearflag_full_uid.phptH A D19-Jun-20241.8 KiB9383

imap_close_basic.phptH A D19-Jun-20241.5 KiB5344

imap_close_variation4.phptH A D19-Jun-20242.5 KiB8974

imap_constructor.phptH A D19-Jun-2024291 1513

imap_createmailbox_basic.phptH A D19-Jun-20242 KiB7158

imap_delete_uid.phptH A D19-Jun-2024953 5446

imap_errors_basic.phptH A D19-Jun-2024571 2723

imap_fetch_overview_basic.phptH A D19-Jun-20241.7 KiB9277

imap_fetch_overview_uid.phptH A D19-Jun-2024707 3226

imap_fetch_overview_variation5.phptH A D19-Jun-20242.2 KiB140121

imap_fetch_overview_variation6.phptH A D19-Jun-20242.6 KiB10686

imap_fetchbody_basic.phptH A D19-Jun-20242.2 KiB8269

imap_fetchbody_errors.phptH A D19-Jun-20241.2 KiB5242

imap_fetchbody_uid.phptH A D19-Jun-2024680 3226

imap_fetchbody_variation6.phptH A D19-Jun-20241.4 KiB5646

imap_fetchheader_basic.phptH A D19-Jun-20241.9 KiB8070

imap_fetchheader_errors.phptH A D19-Jun-20241.2 KiB5041

imap_fetchheader_uid.phptH A D19-Jun-2024654 3125

imap_fetchheader_variation5.phptH A D19-Jun-20241.4 KiB6250

imap_fetchmime_errors.phptH A D19-Jun-20241.2 KiB5242

imap_fetchmime_uid.phptH A D19-Jun-2024680 3226

imap_fetchstructure_basic.phptH A D19-Jun-20241.2 KiB6456

imap_fetchstructure_errors.phptH A D19-Jun-20241.1 KiB5041

imap_fetchstructure_uid.phptH A D19-Jun-2024709 3226

imap_final.phptH A D19-Jun-2024217 119

imap_gc_error.phptH A D19-Jun-2024645 3430

imap_getsubscribed_basic.phptH A D19-Jun-20241.2 KiB5545

imap_headerinfo_basic.phptH A D19-Jun-20242.3 KiB133118

imap_is_open.phptH A D19-Jun-2024699 3831

imap_list_basic.phptH A D19-Jun-2024667 3225

imap_lsub_basic.phptH A D19-Jun-20241 KiB5039

imap_mail_copy_basic.phptH A D19-Jun-2024895 3933

imap_mail_move_basic.phptH A D19-Jun-2024903 3933

imap_mutf7_to_utf8.phptH A D19-Jun-2024253 1916

imap_open_error.phptH A D19-Jun-2024894 4033

imap_open_with_cl_expunge.phptH A D19-Jun-20241.1 KiB4638

imap_renamemailbox_basic.phptH A D19-Jun-2024940 4134

imap_reopen_with_cl_expunge.phptH A D19-Jun-20241.3 KiB5141

imap_rfc822_parse_headers_basic.phptH A D19-Jun-20242.1 KiB126110

imap_rfc822_write_address_basic.phptH A D19-Jun-2024215 1110

imap_savebody_basic.phptH A D19-Jun-2024852 4640

imap_savebody_errors.phptH A D19-Jun-20241.2 KiB5242

imap_savebody_uid.phptH A D19-Jun-2024940 4233

imap_search_basic.phptH A D19-Jun-2024688 4438

imap_setflag_full_basic.phptH A D19-Jun-20241.3 KiB8576

imap_setflag_full_uid.phptH A D19-Jun-20241.9 KiB11199

imap_sort_uid.phptH A D19-Jun-2024839 5953

imap_timeout_basic.phptH A D19-Jun-2024998 5144

imap_undelete_basic.phptH A D19-Jun-2024573 3327

imap_undelete_uid.phptH A D19-Jun-2024819 4841

imap_utf8.phptH A D19-Jun-2024220 1916

imap_utf8_to_mutf7_basic.phptH A D19-Jun-2024253 1916

nil_constant.phptH A D19-Jun-2024164 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