diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-09 11:33:49 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-09 11:33:49 +0000 |
| commit | e3204da81533b49b73378b76167ed255cc9a1412 (patch) | |
| tree | 85c8910e87aa59f1cbf549282fdb650aa27f6320 /roundcubemail/program/include/rcube_imap.php | |
| parent | 7352bdf97520c664b0cee33f360b97d9a2f606ed (diff) | |
- Use IMAP's ID extension (RFC2971) to print more info into debug log
git-svn-id: https://svn.roundcube.net/trunk@4512 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index a4e67e140..f5a936890 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -148,9 +148,18 @@ class rcube_imap $this->options['port'] = $port; - if ($this->options['debug']) + if ($this->options['debug']) { $this->conn->setDebug(true, array($this, 'debug_handler')); + $this->options['ident'] = array( + 'name' => 'Roundcube Webmail', + 'version' => RCMAIL_VERSION, + 'php' => PHP_VERSION, + 'os' => PHP_OS, + 'command' => $_SERVER['REQUEST_URI'], + ); + } + $attempt = 0; do { $data = rcmail::get_instance()->plugins->exec_hook('imap_connect', |
