X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fspamcop%2Fsetup.php;h=fbb2d4791cf71effc1927198ade105e54434d454;hb=61d57ab2718ef04d537b2f4870d7b6a92066d8e0;hp=f4d064c65e7fae8a8733108af0b2d016446084bb;hpb=58f5a673d9da9e23227c2926784a0773820ffaed;p=squirrelmail.git diff --git a/plugins/spamcop/setup.php b/plugins/spamcop/setup.php index f4d064c6..fbb2d479 100755 --- a/plugins/spamcop/setup.php +++ b/plugins/spamcop/setup.php @@ -1,115 +1,66 @@ \n"; - - if ($spamcop_method == 'web_form') { -?> _("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 - ); +/** + * Show spamcop options block + * @access private + */ +function spamcop_options() { + include_once(SM_PATH . 'plugins/spamcop/functions.php'); + spamcop_options_function(); } -// When we send the email, we optionally trash it then too -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); - } +/** + * Process messages submitted by email + * @access private + */ +function spamcop_while_sending() { + include_once(SM_PATH . 'plugins/spamcop/functions.php'); + spamcop_while_sending_function(); } - -?>