4 ** options.php -- SpamCop options page
6 ** Copyright (c) 1999-2002 The SquirrelMail development team
7 ** Licensed under the GNU GPL. For full terms see the file COPYING.
12 define('SM_PATH','../../');
13 require_once(SM_PATH
. 'include/validate.php');
15 displayPageHeader($color, 'None');
18 sqextractGlobalVar('action');
19 sqextractGlobalVar('meth');
20 sqextractGlobalVar('ID');
24 $action = (!isset($action) ?
'' : $action);
28 setPref($data_dir, $username, 'spamcop_enabled', 1);
31 setPref($data_dir, $username, 'spamcop_enabled', '');
34 setPref($data_dir, $username, 'spamcop_delete', '');
37 setPref($data_dir, $username, 'spamcop_delete', 1);
41 setPref($data_dir, $username, 'spamcop_method', $meth);
46 setPref($data_dir, $username, 'spamcop_id', $ID);
51 global $spamcop_enabled, $spamcop_delete;
56 <table width
=95% align
=center border
=0 cellpadding
=2 cellspacing
=0><tr
><td bgcolor
="<?php echo $color[0] ?>">
57 <center
><b
><?php
echo _("Options") ?
> - Message Filtering
</b
></center
>
63 <td align
=right
>SpamCop link is
:</td
>
64 <td
><?PHP
if ($spamcop_enabled) {
65 ?
>Enabled (<a href
="options.php?action=disable">Disable it
</a
>)
67 ?
>Disabled (<a href
="options.php?action=enable">Enable it
</a
>)
72 <td align
=right valign
=top
>Delete spam when reported
:<br
>
73 <font size
="-2">(Only works with email
-based reporting
)</font
>
75 <td valign
=top
><?PHP
if ($spamcop_delete) {
76 ?
>Enabled (<a href
="options.php?action=save">Disable it
</a
>)
78 ?
>Disabled (<a href
="options.php?action=delete">Enable it
</a
>)
83 <td align
=right
>Spam Reporting Method
:</td
>
84 <form method
=post action
=options
.php
><td
>
86 <option value
="quick_email"<?PHP
87 if ($spamcop_method == 'quick_email') echo ' SELECTED'
88 ?
>>Quick email
-based reporting
</option
>
89 <option value
="thorough_email"<?PHP
90 if ($spamcop_method == 'thorough_email') echo ' SELECTED'
91 ?
>>Thorough email
-based reporting
</option
>
92 <option value
="web_form"<?PHP
93 if ($spamcop_method == 'web_form') echo ' SELECTED'
94 ?
>>Web
-based form
</option
>
96 <input type
=hidden name
=action value
=meth
>
97 <input type
=submit value
="Save Method">
101 <td valign
=top align
=right
>Your SpamCop authorization code
:<br
>
102 <font size
="-2">(see below
)</font
>
104 <form method
=post action
=options
.php
><td valign
=top
>
105 <input type
=text size
=30 name
="ID" value
="<?PHP
106 echo htmlspecialchars($spamcop_id) ?>">
107 <input type
=hidden name
=action value
=save_id
>
108 <input type
=submit value
="Save ID">
113 <p
>SpamCop is a free service that greatly assists in finding the
true source
114 of the spam
and helps in letting the proper people know about the abuse
.</p
>
116 <p
>To
use it
, you must get a SpamCop authorization code
. There is a free
<a
117 href
="http://spamcop.net/anonsignup.shtml">sign up page
</a
> so you can
use
120 <p
><b
>Before you sign up
, be warned
:</b
> Some users have reported that the
121 email addresses used with SpamCop find their way onto spam lists
. To be
122 safe
, you can just create an email forwarding account
and have all SpamCop
123 reports get sent to there
. Also
, if it gets flooded with spam
, you can then
124 just delete that account with no worries about losing your
real email address
.
125 Just go create an email forwarder
somewhere (<a
126 href
="http://www.yahoo.com/">Yahoo
!</a
> has a
<a
127 href
="http://dir.yahoo.com/Business_and_Economy/Business_to_Business/Communications_and_Networking/Internet_and_World_Wide_Web/Email_Providers/Forwarding_Services/Free_Forwarding/">list
128 of places
</a
>) so that messages from system administrators
and whatnot can
131 <p
>Once you have signed up with SpamCop
and have received your SpamCop
132 authorization code
, you need to enable this plugin
-- just click the link
133 above
. Once enabled
, you go about your normal life
. If you encounter a
134 spam message in your mailbox
, just view it
. On the right
-hand side
, near
135 the top of where the message is displayed
, you will see a link to report
136 this message
as spam
. Clicking on it brings you to a confirmation page
.
137 Confirming that you want the spam report sent will
do different things with
138 different reporting methods
.</p
>
140 <p
><b
>Email
-based Reporting
</b
><br
>
141 Pressing the button forwards the message to the SpamCop service
and will
142 optionally delete the message
. From there
, you just need to go to your
143 INBOX
and quite soon a message should appear from SpamCop
. (It gets sent to
144 the account you registered with
, so make sure that your mail forwarder works
!)
145 Open it up
, click on the appropriate link at the top
, and a
new browser
146 window will open
.</p
>
148 <p
>Currently
, the quick reporting just forwards the request to the thorough
149 reporting
. Also
, it appears that this is
for members (non
-free
) only
.
150 Hopefully this will change soon
.</p
>
152 <p
><b
>Web
-based Reporting
</b
><br
>
153 When you press the button on the confirmation page
, this will pop open a
new
154 browser window
and the SpamCop service should appear inside
. The message
155 will not be
deleted (working on that part
), but you won
't need to wait for a
156 response email to start the spam reporting.</p>
158 <p>The SpamCop service will display information as it finds it, so scroll
159 down until you see a form button. It might pause a little while it is
160 looking up information, so be a little patient. Read what it says, and
161 submit the spam. Close the browser window. Press Cancel or click on the
162 appropriate mail folder to see messages and/or delete the spam.</p>
164 <p><b>For more information</b> about SpamCop, it's services
, spam in general
,
165 and many related topics
, try reading through SpamCop
's <a
166 href="http://spamcop.net/help.shtml">Help and Feedback</a> section.</p>