Changeset d559cba in github
- Timestamp:
- Jul 7, 2009 12:38:31 PM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 8bc018a
- Parents:
- b6b5934
- Files:
-
- 5 edited
-
CHANGELOG (modified) (1 diff)
-
config/main.inc.php.dist (modified) (2 diffs)
-
program/include/rcmail.php (modified) (1 diff)
-
program/include/rcube_mdb2.php (modified) (1 diff)
-
program/lib/imap.inc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rb6b5934 rd559cba 2 2 =========================== 3 3 4 - Added 'imap_debug' option 4 5 - Support strftime's format modifiers in date_* options (#1484806) 5 6 - Support %h variable in 'smtp_server' option (#1485766) -
config/main.inc.php.dist
rb6b5934 rd559cba 15 15 $rcmail_config = array(); 16 16 17 18 17 // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace 19 18 $rcmail_config['debug_level'] = 1; … … 125 124 // Log sent messages 126 125 $rcmail_config['smtp_log'] = TRUE; 126 127 // Log SQL queries to <log_dir>/sql or to syslog 128 $rcmail_config['sql_debug'] = false; 129 130 // Log IMAP conversation to <log_dir>/imap or to syslog 131 $rcmail_config['imap_debug'] = false; 127 132 128 133 // How many seconds must pass between emails sent by a user -
program/include/rcmail.php
r0b2ce91 rd559cba 367 367 'delimiter' => isset($_SESSION['imap_delimiter']) ? $_SESSION['imap_delimiter'] : $this->config->get('imap_delimiter'), 368 368 'rootdir' => isset($_SESSION['imap_root']) ? $_SESSION['imap_root'] : $this->config->get('imap_root'), 369 'debug_mode' => (bool) $this->config->get('imap_debug', 0), 369 370 ); 370 371 -
program/include/rcube_mdb2.php
rac62299 rd559cba 702 702 $debug_output = $scope . '('.$db->db_index.'): '; 703 703 $debug_output .= $message . $db->getOption('log_line_break'); 704 write_log('sql log', $debug_output);704 write_log('sql', $debug_output); 705 705 } 706 706 } 707 708 -
program/lib/imap.inc
r72cd3c1 rd559cba 198 198 199 199 function iil_PutLine($fp, $string, $endln=true) { 200 // console('C: '. rtrim($string)); 200 global $my_prefs; 201 202 if(!empty($my_prefs['debug_mode'])) 203 write_log('imap', 'C: '. rtrim($string)); 204 201 205 return fputs($fp, $string . ($endln ? "\r\n" : '')); 202 206 } … … 226 230 227 231 function iil_ReadLine($fp, $size=1024) { 232 global $my_prefs; 233 228 234 $line = ''; 229 235 … … 241 247 break; 242 248 } 243 // console('S: '. chop($buffer)); 249 if(!empty($my_prefs['debug_mode'])) 250 write_log('imap', 'S: '. chop($buffer)); 244 251 $line .= $buffer; 245 252 } while ($buffer[strlen($buffer)-1] != "\n"); … … 266 273 267 274 function iil_ReadBytes($fp, $bytes) { 275 global $my_prefs; 268 276 $data = ''; 269 277 $len = 0; … … 274 282 break; //nothing was read -> exit to avoid apache lockups 275 283 } 276 // console('[...] '. $d); 284 if(!empty($my_prefs['debug_mode'])) 285 write_log('imap', 'S: '. $d); 277 286 $len = strlen($data); 278 287 } while ($len < $bytes); … … 554 563 } else if ($optkey == 'delimiter') { 555 564 $my_prefs['delimiter'] = $optval; 565 } else if ($optkey == 'debug_mode') { 566 $my_prefs['debug_mode'] = $optval; 556 567 } 557 568 }
Note: See TracChangeset
for help on using the changeset viewer.
