From cf14ed186f2a175db9d8894f51c3186e077f7017 Mon Sep 17 00:00:00 2001 From: thomasb Date: Tue, 8 Nov 2011 10:46:03 +0000 Subject: Implement common setters for debug mode git-svn-id: https://svn.roundcube.net/trunk@5397 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'roundcubemail/program/include/rcube_imap.php') diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index a1ddde76d..43d35908f 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -316,6 +316,19 @@ class rcube_imap } + /** + * Activate/deactivate debug mode + * + * @param boolean $dbg True if IMAP conversation should be logged + * @access public + */ + function set_debug($dbg = true) + { + $this->options['debug'] = $dbg; + $this->conn->setDebug($dbg, array($this, 'debug_handler')); + } + + /** * Set default message charset * -- cgit v1.2.3