Name Date Size #Lines LOC

..25-Nov-2021-

setup/H27-Feb-2021-

README.mdH A D02-Dec-20201.1 KiB2518

bug31142_1.phptH A D02-Dec-20201.2 KiB6045

bug31142_2.phptH A D02-Dec-2020675 2924

bug32589.phptH A D02-Dec-2020728 3328

bug35669.phptH A D02-Dec-20201.8 KiB6754

bug40854.phptH A D02-Dec-20201.2 KiB5844

bug44098.phptH A D02-Dec-2020331 1614

bug45705_1.phptH A D02-Dec-2020434 1916

bug45705_2.phptH A D02-Dec-20201.4 KiB5248

bug46918.phptH A D02-Dec-20201.5 KiB7673

bug53377.phptH A D02-Dec-2020690 3836

bug63126.phptH A D02-Dec-20201.5 KiB5653

bug64076.phptH A D02-Dec-2020582 2524

bug75774.phptH A D02-Dec-2020537 2621

bug77020.phptH A D02-Dec-2020228 1413

bug77153.phptH A D02-Dec-2020618 2524

bug80213.phptH A D02-Dec-2020507 2724

bug80215.phptH A D02-Dec-20201.1 KiB7069

bug80216.phptH A D02-Dec-2020498 1817

bug80220.phptH A D02-Dec-2020604 3529

bug80223.phptH A D02-Dec-2020736 2928

bug80226.phptH A D02-Dec-2020524 2724

bug80242.phptH A D02-Dec-2020422 2322

bug80438.phptH A D03-Dec-20201.3 KiB6557

bug80710_1.phptH A D27-Apr-20211.2 KiB3832

bug80710_2.phptH A D27-Apr-20211.2 KiB3832

bug80800.phptH A D27-Feb-2021519 2217

imap_8bit_basic.phptH A D02-Dec-2020872 2724

imap_append_basic.phptH A D02-Dec-20201.8 KiB6355

imap_base64_basic.phptH A D02-Dec-2020890 4136

imap_binary_basic.phptH A D02-Dec-20201.7 KiB4236

imap_body_basic.phptH A D02-Dec-20201,008 4235

imap_body_errors.phptH A D03-Dec-20201.1 KiB5142

imap_body_uid.phptH A D03-Dec-2020599 2923

imap_bodystruct_basic.phptH A D02-Dec-20201.5 KiB7259

imap_clearflag_full_basic.phptH A D02-Dec-20202.3 KiB119110

imap_clearflag_full_uid.phptH A D03-Dec-20201.8 KiB9181

imap_close_basic.phptH A D02-Dec-20201.5 KiB5142

imap_close_variation4.phptH A D02-Dec-20202.4 KiB8772

imap_createmailbox_basic.phptH A D02-Dec-20202 KiB6956

imap_delete_uid.phptH A D03-Dec-2020933 5244

imap_errors_basic.phptH A D02-Dec-2020756 3227

imap_fetch_overview_basic.phptH A D02-Dec-20201.7 KiB9075

imap_fetch_overview_uid.phptH A D03-Dec-2020687 3024

imap_fetch_overview_variation3.phptH A D02-Dec-20201.7 KiB7159

imap_fetch_overview_variation5.phptH A D02-Dec-20202.2 KiB138119

imap_fetch_overview_variation6.phptH A D02-Dec-20202.6 KiB10484

imap_fetchbody_basic.phptH A D02-Dec-20202.2 KiB8067

imap_fetchbody_errors.phptH A D03-Dec-20201.2 KiB5040

imap_fetchbody_uid.phptH A D03-Dec-2020660 3024

imap_fetchbody_variation4.phptH A D02-Dec-20201.8 KiB7562

imap_fetchbody_variation6.phptH A D02-Dec-20201.3 KiB5444

imap_fetchheader_basic.phptH A D02-Dec-20201.8 KiB7868

imap_fetchheader_errors.phptH A D03-Dec-20201.1 KiB4839

imap_fetchheader_uid.phptH A D03-Dec-2020634 2923

imap_fetchheader_variation3.phptH A D02-Dec-20201.8 KiB7260

imap_fetchheader_variation5.phptH A D02-Dec-20201.4 KiB6048

imap_fetchmime_errors.phptH A D03-Dec-20201.2 KiB5040

imap_fetchmime_uid.phptH A D03-Dec-2020660 3024

imap_fetchstructure_basic.phptH A D02-Dec-20201.1 KiB6254

imap_fetchstructure_errors.phptH A D03-Dec-20201.1 KiB4839

imap_fetchstructure_uid.phptH A D03-Dec-2020689 3024

imap_gc_error.phptH A D02-Dec-2020625 3228

imap_getsubscribed_basic.phptH A D02-Dec-20201.2 KiB5343

imap_headerinfo_basic.phptH A D02-Dec-20202.3 KiB131116

imap_list_basic.phptH A D02-Dec-2020647 3023

imap_lsub_basic.phptH A D02-Dec-20201 KiB4837

imap_mail_copy_basic.phptH A D02-Dec-2020875 3731

imap_mail_move_basic.phptH A D02-Dec-2020883 3731

imap_mutf7_to_utf8.phptH A D02-Dec-2020298 1916

imap_open_error.phptH A D02-Dec-2020863 3831

imap_open_with_cl_expunge.phptH A D27-Feb-20211.1 KiB4436

imap_renamemailbox_basic.phptH A D02-Dec-2020920 3932

imap_reopen_with_cl_expunge.phptH A D27-Feb-20211.3 KiB4939

imap_rfc822_parse_headers_basic.phptH A D02-Dec-20202.1 KiB124108

imap_rfc822_write_address_basic.phptH A D02-Dec-2020288 1312

imap_savebody_basic.phptH A D02-Dec-2020832 4438

imap_savebody_errors.phptH A D03-Dec-20201.2 KiB5040

imap_savebody_uid.phptH A D03-Dec-2020920 4031

imap_search_basic.phptH A D03-Dec-2020668 4236

imap_setflag_full_basic.phptH A D03-Dec-20201.3 KiB8374

imap_setflag_full_uid.phptH A D03-Dec-20201.9 KiB10997

imap_sort_uid.phptH A D03-Dec-2020819 5751

imap_timeout_basic.phptH A D02-Dec-2020978 4942

imap_undelete_basic.phptH A D02-Dec-2020553 3125

imap_undelete_uid.phptH A D03-Dec-2020799 4639

imap_utf8.phptH A D02-Dec-2020265 1916

imap_utf8_to_mutf7_basic.phptH A D02-Dec-2020324 1916

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