X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fspamcop%2Fsetup.php;h=9f0c2a6cdafa5ce895f3d8cc6a9372e67babef9f;hp=b472f605bbc2feb294f47affe856643c602b2b7c;hb=91e0dccca7b2452d8b450791cae3aa4125e8889e;hpb=0f610dca6fd52a148e290f79cdfcfc572998b475 diff --git a/plugins/spamcop/setup.php b/plugins/spamcop/setup.php index b472f605..9f0c2a6c 100755 --- a/plugins/spamcop/setup.php +++ b/plugins/spamcop/setup.php @@ -1,5 +1,5 @@ \n"; + echo "
\n"; - /* - Catch situation when user use quick_email and does not update - preferences. User gets web_form link. If prefs are set to + /* + Catch situation when user use quick_email and does not update + preferences. User gets web_form link. If prefs are set to quick_email format - they will be updated after clicking the link */ if (! $spamcop_quick_report && $spamcop_method=='quick_email') { - $spamcop_method = 'web_form'; + $spamcop_method = 'web_form'; } - + // Javascript is used only in web based reporting // don't insert javascript if javascript is disabled - if ($spamcop_method == 'web_form' && $javascript_on) { + if ($spamcop_method == 'web_form' && $javascript_on) { ?> "); */ function spamcop_options() { - global $optpage_blocks; - - $optpage_blocks[] = array( - 'name' => _("SpamCop - Spam Reporting"), - 'url' => '../plugins/spamcop/options.php', - 'desc' => _("Help fight the battle against unsolicited email. SpamCop reads the spam email and determines the correct addresses to send complaints to. Quite fast, really smart, and easy to use."), - 'js' => false - ); + global $optpage_blocks; + + $optpage_blocks[] = array( + 'name' => _("SpamCop - Spam Reporting"), + 'url' => '../plugins/spamcop/options.php', + 'desc' => _("Help fight the battle against unsolicited email. SpamCop reads the spam email and determines the correct addresses to send complaints to. Quite fast, really smart, and easy to use."), + 'js' => false + ); } @@ -140,18 +140,18 @@ function spamcop_options() */ function spamcop_while_sending() { - global $mailbox, $spamcop_delete, $spamcop_is_composing, $auto_expunge, - $username, $key, $imapServerAddress, $imapPort; - - if ($spamcop_delete) { - $imapConnection = sqimap_login($username, $key, $imapServerAddress, - $imapPort, 0); - sqimap_mailbox_select($imapConnection, $mailbox); - sqimap_messages_delete($imapConnection, $spamcop_is_composing, - $spamcop_is_composing, $mailbox); - if ($auto_expunge) - sqimap_mailbox_expunge($imapConnection, $mailbox, true); - } + global $mailbox, $spamcop_delete, $spamcop_is_composing, $auto_expunge, + $username, $key, $imapServerAddress, $imapPort; + + if ($spamcop_delete) { + $imapConnection = sqimap_login($username, $key, $imapServerAddress, + $imapPort, 0); + sqimap_mailbox_select($imapConnection, $mailbox); + sqimap_messages_delete($imapConnection, $spamcop_is_composing, + $spamcop_is_composing, $mailbox); + if ($auto_expunge) + sqimap_mailbox_expunge($imapConnection, $mailbox, true); + } } ?> \ No newline at end of file