From 06744da24100473aa8180cf07ec1970987d2f66b Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 08 Nov 2011 05:46:03 -0500 Subject: [PATCH] Implement common setters for debug mode --- program/include/rcube_imap.php | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index a1ddde7..43d3590 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -317,6 +317,19 @@ /** + * 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 * * This will be used for message decoding if a charset specification is not available -- Gitblit v1.9.1