From: stekkel Date: Fri, 13 Sep 2002 21:15:41 +0000 (+0000) Subject: uid fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=81327f3a7f608db65c7390edc0d339806a77c76c;p=squirrelmail.git uid fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3663 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/spamcop/spamcop.php b/plugins/spamcop/spamcop.php index ddba3220..f43543b0 100644 --- a/plugins/spamcop/spamcop.php +++ b/plugins/spamcop/spamcop.php @@ -11,9 +11,8 @@ require_once(SM_PATH . 'functions/imap.php'); $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); sqimap_mailbox_select($imap_stream, $mailbox); - fputs($imap_stream, 'a010 FETCH ' . $passed_id . ' RFC822' . "\r\n"); - $sid = 'a010'; - if ($uid_support) $sid .= ' UID'; + $sid = sqimap_session_id($uid_support) + fputs($imap_stream, '$sid FETCH ' . $passed_id . ' RFC822' . "\r\n"); $read = sqimap_read_data($imap_stream, $sid, true, $response, $message); array_shift($read);