52c52 < --- > 61a62,68 > > // SDM 2006-07-24 > // first, let's see if this user's email address is known > $who = array('mail' => "$username@$server"); > $u = user_load ($who); > // if this email address is not assigned, bail out > if ( ! $u ) return false; 86c93 < $mbox = @imap_open($mailbox, $username, $password); --- > $mbox = imap_open($mailbox, $username, $password, OP_DEBUG); 112a120,121 > global $user; > $user = $u; 169c178 < } \ No newline at end of file --- > }