summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-02-09 11:33:49 +0000
committeralecpl <alec@alec.pl>2011-02-09 11:33:49 +0000
commit890eae675828e4d7e6ecbffc613f1eace87717fa (patch)
treefabbb5db5bb4a69a5f0186e52ef5b7fad008a619 /program/include/rcube_imap.php
parentea23df6e3e0a847ec9520b6160e62740e6d087a4 (diff)
- Use IMAP's ID extension (RFC2971) to print more info into debug log
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index a4e67e140..f5a936890 100644
--- a/program/include/rcube_imap.php
+++ b/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',