From 9538cd4c6f9026a3bd661a2fd8a029e3b9152ad6 Mon Sep 17 00:00:00 2001 From: stekkel Date: Sun, 6 Oct 2002 17:22:50 +0000 Subject: [PATCH] imap performance related issue, move the fetch to the area we need the result. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3770 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/spamcop/spamcop.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/plugins/spamcop/spamcop.php b/plugins/spamcop/spamcop.php index 90ad526a..704b61ef 100644 --- a/plugins/spamcop/spamcop.php +++ b/plugins/spamcop/spamcop.php @@ -89,13 +89,6 @@ function getMessage_RFC822_Attachment($message, $composeMessage, $passed_id, $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); sqimap_mailbox_select($imap_stream, $mailbox); - - - $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); if ($spamcop_method == 'quick_email' || $spamcop_method == 'thorough_email') { @@ -180,6 +173,12 @@ agree to follow SpamCop's rules/terms of service/etc.

50000) { $Warning = "\n[truncated by SpamCop]\n"; -- 2.25.1