X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fspamcop%2Fsetup.php;h=34e442bee4d7b0e1280604c4e7c0ef71700a1ca7;hb=22387c8d44f3ab104db6e19180d3775a45762359;hp=b472f605bbc2feb294f47affe856643c602b2b7c;hpb=ce68b76bfdef63cbc85d7bc46f7f1d538db9b4a4;p=squirrelmail.git
diff --git a/plugins/spamcop/setup.php b/plugins/spamcop/setup.php
index b472f605..34e442be 100755
--- a/plugins/spamcop/setup.php
+++ b/plugins/spamcop/setup.php
@@ -1,71 +1,39 @@
\n";
-
- /*
- 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';
- }
-
- // Javascript is used only in web based reporting
- // don't insert javascript if javascript is disabled
- if ($spamcop_method == 'web_form' && $javascript_on) {
-?>
-
- _("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
- );
+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
+ * Process messages submitted by email
* @access private
*/
-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);
- }
+function spamcop_while_sending() {
+ include_once(SM_PATH . 'plugins/spamcop/functions.php');
+ spamcop_while_sending_function();
}
-
-?>
\ No newline at end of file