X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fspamcop%2Fspamcop.php;h=b72ee0cbd745228ad73ec641061fb919024bca24;hp=15a23fc27d333c30bbd02ac53cf1b289b6f0bba7;hb=b1870063b2e576ca9ff3cd41ada9cda1f8812507;hpb=da297dd0b801238dc73abfe09d78eeef11ba4ce9 diff --git a/plugins/spamcop/spamcop.php b/plugins/spamcop/spamcop.php index 15a23fc2..b72ee0cb 100644 --- a/plugins/spamcop/spamcop.php +++ b/plugins/spamcop/spamcop.php @@ -1,30 +1,30 @@ \n"; + error_box(_("Plugin is disabled.")); + // display footer (closes html tags) and stop script execution + $oTemplate->display('footer.tpl'); exit(); } - $imap_stream = sqimap_login($username, $key, $imapServerAddress, - $imapPort, 0); + $imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0); sqimap_mailbox_select($imap_stream, $mailbox); if ($spamcop_method == 'quick_email' || @@ -89,7 +89,7 @@ if (! is_plugin_enabled('spamcop')) { $message = sqimap_get_message($imap_stream, $passed_id, $mailbox); - $composeMessage = getMessage_RFC822_Attachment($message, $composeMessage, $passed_id, + $composeMessage = spamcop_getMessage_RFC822_Attachment($message, $composeMessage, $passed_id, $passed_ent_id, $imap_stream); $compose_messages[$session] = $composeMessage; @@ -149,11 +149,8 @@ echo "

"; $Warning = "\n[truncated by SpamCop]\n"; $spam_message = substr($spam_message, 0, 50000 - strlen($Warning)) . $Warning; } - if ($spamcop_type=='member') { - $action_url="http://members.spamcop.net/sc"; - } else { - $action_url="http://www.spamcop.net/sc"; - } + $action_url="http://members.spamcop.net/sc"; + if (isset($js_web) && $js_web) { echo "
\n"; @@ -163,7 +160,6 @@ echo "

"; } ?> - \n"; @@ -173,4 +169,4 @@ echo "

"; - \ No newline at end of file +