php-src/ext/imap/tests
2019-05-12 22:03:10 +02:00
..
bug31142_1.phpt Fixed tests 2018-11-13 17:00:06 +03:00
bug31142_2.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug32589.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug35669.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug40854.phpt Fixed tests 2018-11-13 17:00:06 +03:00
bug44098.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug45705_1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug45705_2.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug46918.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug53377.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug63126.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug75774.phpt Fixed bug #75774 imap_append HeapCorruction 2018-01-12 17:13:18 +01:00
bug77020.phpt Fix #77020: null pointer dereference in imap_mail 2018-12-03 00:00:56 -08:00
bug77153.phpt Disable rsh/ssh functionality in imap by default (bug #77153) 2018-11-20 11:21:29 -08:00
clean.inc Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
imap_8bit_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:46:15 +02:00
imap_alerts_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_append_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_base64_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:46:15 +02:00
imap_binary_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:46:15 +02:00
imap_body.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_body_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_bodystruct_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_clearflag_full_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_close_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_close_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_close_variation3.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_close_variation4.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_createmailbox_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_errors_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_expunge_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetch_overview_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetch_overview_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetch_overview_variation3.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetch_overview_variation4.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetch_overview_variation5.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetch_overview_variation6.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchbody_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchbody_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchbody_variation4.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchbody_variation5.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchbody_variation6.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchheader_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchheader_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchheader_variation3.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchheader_variation4.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchheader_variation5.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_fetchstructure_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_gc_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_getsubscribed_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_headerinfo_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_headerinfo_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_headers.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_include.inc [ci skip] Migrate tests READMEs to Markdown 2019-05-12 22:03:10 +02:00
imap_list_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_lsub_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_mail_copy.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_mail_copy_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_mail_move.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_mail_move_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_mutf7_to_utf8.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
imap_num_msg_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_num_recent_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_open_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_ping_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_renamemailbox_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_rfc822_parse_headers_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_savebody_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_timeout_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_undelete_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_undelete_error.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_utf8.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
imap_utf8_to_mutf7_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
README.md [ci skip] Migrate tests READMEs to Markdown 2019-05-12 22:03:10 +02:00
skipif.inc Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00

The imap extension tests

Many of the tests in this directory require a mail server to be running, if there is no mail server the test will skip and warn, see skipif.inc for details.

To make the tests run parameters in the skipif.inc and imap_include.inc files will need to be changed to match the local mailserver configuration.

The tests have been checked using dovecot (on Linux 32 and 64 bit systems) and hMailServer on Windows. The tests are intended to be mailserver agnostic.

The tests can be run without modification with a fairly minimal dovecot installation. For information, the dovecot.conf file used in running the tests is given below. The dovecot password file (dovecotpass) requires a password for one user, webmaster@something.com. It's also necessary to set up one additional user ID (vmail) to own the mail directory.

protocols = imap imaps

listen = *

ssl_disable = yes

disable_plaintext_auth=yes

## Mailbox locations and namespaces

mail_location = maildir:/home/vmail/mail/%d/%n/Maildir

auth_verbose = yes

auth_debug = yes

auth default {
  mechanisms = login

  passdb passwd-file {
    args = /etc/dovecot/dovecotpass
  }

  userdb static {
    args = uid=11459 gid=1002 home=/home/vmail/dovecot/mail/%d/%n
  }

  user = root
}