From: Paul L. <pa...@sq...> - 2008-09-09 21:57:38
|
On Tue, Sep 9, 2008 at 1:58 PM, James H. McCullars <mc...@em...> wrote: > At 03:43 PM 9/9/2008, you wrote: > >>OK, just after the line you added (sorry if it's getting confusing), >>add "sqimap_logout($imapConnection);" so those few lines together will >>look like this: >> >> >> if (check_sm_version(1, 5, 2)) $key = FALSE; >>sm_print_r('$imapConnection contains:', $imapConnection); >>sqimap_logout($imapConnection); >> if (!is_resource($imapConnection)) >> $imapConnection = sqimap_login($username, $key, >>$imapServerAddress, $imapPort, 0); >>echo '$mbx_response now contains:<br />'; > > Here's the output: > > $imapConnection contains: > Resource id #70 > > ERROR: > ERROR: Connection dropped by IMAP server. > Query: LOGOUT Uhhh, you're kidding... it won't allow a logout? Is there anything custom with your UW installation? Well, I'm running out of ideas for now, but you can try inserting this BEFORE the sqimap_logout() line (try it both with and without having the sqimap_logout() working too): $read = sqimap_run_command($imapConnection, 'CLOSE', TRUE, $response, $message); If it still has the same problem, you can try to see what this function did by echoing its output: sm_print_r('CLOSE results:', $read, $response, $message); |