X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fspamcop%2Fspamcop.php;h=15426f1520ee6ea2ec2f2d8ee80421f5b8bbdd83;hp=572041d73bfd0b023c544969bdff4091c96dc18e;hb=HEAD;hpb=30460a05016c7e066ad7b28df7788539e4054a99 diff --git a/plugins/spamcop/spamcop.php b/plugins/spamcop/spamcop.php index 572041d7..eed9be9d 100644 --- a/plugins/spamcop/spamcop.php +++ b/plugins/spamcop/spamcop.php @@ -3,7 +3,7 @@ /** * spamcop.php -- SpamCop plugin -- main page * - * @copyright 1999-2009 The SquirrelMail Project Team + * @copyright 1999-2022 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -66,7 +66,8 @@ if (! is_plugin_enabled('spamcop')) { exit(); } - $imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0); + global $imap_stream_options; // in case not defined in config + $imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imap_stream_options); sqimap_mailbox_select($imap_stream, $mailbox); if ($spamcop_method == 'quick_email' || @@ -120,8 +121,8 @@ echo "

"; echo '\n"; } else { ?>
- - + + "; } @@ -136,14 +137,15 @@ echo "

"; $report_email = 'quick.' . $spamcop_id . '@spam.spamcop.net'; $form_action = sqm_baseuri() . 'src/compose.php'; ?> - - - + + + + \n"; + echo '\n"; } else { $spam_message = mime_fetch_body ($imap_stream, $passed_id, $passed_ent_id, 50000); @@ -162,7 +164,7 @@ echo "

"; } ?> - + \n"; }