From: Alexandros V. <av...@no...> - 2005-07-26 13:08:56
|
On Tue, 2005-07-26 at 14:28 +0200, Ralf Hildebrandt wrote: > How can I add debugging to see which IMAP commands are being sent to > the server? You could probably add debug statements inside sqimap_run_command(), et al, but if a plugin is badly written and uses, for instance, fputs() instead of the Squirrelmail interface, that wouldn't do any good. example: function sqimap_run_command ($imap_stream, $query, $handle_errors, & $response, &$message, $unique_id = false,$filter=false, $outputstream=false,$no_return=false) { if ($imap_stream) { $sid = sqimap_session_id($unique_id); print "<PRE>DEBUG: fputs ($imap_stream, $sid $query )</PRE>"; ....... Cheers, Alexandros |