tedivm/Fetch — pull request #44 by dangerous (2014-04-03 00:08:51+00:00)
Title: Allow the passing of connection parameters to imap_open()

Since version 5.3.2 of PHP, imap_open() has an optional 6th
parameter which allows you to set certain connection parameters.

Currently the only key is:

- DISABLE_AUTHENTICATOR - Disable authentication properties

see https://bugs.php.net/bug.php?id=33500

Example of use:

$server = new Server('imap.example.com', 993);
$server->setParam('DISABLE_AUTHENTICATOR', 'GSSAPI');

This gets rid of the following errors:

Notice: Unknown: Unknown GSSAPI failure: An invalid name was
supplied (errflg=1) in Unknown on line 0

Notice: Unknown: GSSAPI mechanism status: Hostname cannot be
canonicalized (errflg=1) in Unknown on line 0