Making log entries in the ChangeLog.
[squirrelmail.git] / plugins / spamcop / options.php
... / ...
CommitLineData
1<?php
2 chdir ("..");
3 require_once('../src/validate.php');
4
5 displayPageHeader($color, "None");
6
7 if (! isset($action))
8 $action = '';
9 if ($action == 'enable')
10 setPref($data_dir, $username, 'spamcop_enabled', 1);
11 elseif ($action == 'disable')
12 setPref($data_dir, $username, 'spamcop_enabled', '');
13 elseif ($action == 'save')
14 setPref($data_dir, $username, 'spamcop_delete', '');
15 elseif ($action == 'delete')
16 setPref($data_dir, $username, 'spamcop_delete', 1);
17 elseif ($action == 'meth' && isset($meth))
18 setPref($data_dir, $username, 'spamcop_method', $meth);
19 elseif ($action == 'save_id' && isset($ID))
20 setPref($data_dir, $username, 'spamcop_id', $ID);
21
22 global $spamcop_enabled, $spamcop_delete;
23 spamcop_load();
24
25 ?>
26 <br>
27 <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<?php echo $color[0] ?>">
28 <center><b><?php echo _("Options") ?> - Message Filtering</b></center>
29 </td></tr></table>
30 <br>
31
32 <table align=center>
33 <tr>
34 <td align=right>SpamCop link is:</td>
35 <td><?PHP if ($spamcop_enabled) {
36 ?>Enabled (<a href="options.php?action=disable">Disable it</a>)
37 <?PHP } else {
38 ?>Disabled (<a href="options.php?action=enable">Enable it</a>)
39 <?PHP }
40 ?></td>
41 </tr>
42 <tr>
43 <td align=right valign=top>Delete spam when reported:<br>
44 <font size="-2">(Only works with email-based reporting)</font>
45 </td>
46 <td valign=top><?PHP if ($spamcop_delete) {
47 ?>Enabled (<a href="options.php?action=save">Disable it</a>)
48 <?PHP } else {
49 ?>Disabled (<a href="options.php?action=delete">Enable it</a>)
50 <?PHP }
51 ?></td>
52 </tr>
53 <tr>
54 <td align=right>Spam Reporting Method:</td>
55 <form method=post action=options.php><td>
56 <select name=meth>
57 <option value="quick_email"<?PHP
58 if ($spamcop_method == 'quick_email') echo ' SELECTED'
59 ?>>Quick email-based reporting</option>
60 <option value="thorough_email"<?PHP
61 if ($spamcop_method == 'thorough_email') echo ' SELECTED'
62 ?>>Thorough email-based reporting</option>
63 <option value="web_form"<?PHP
64 if ($spamcop_method == 'web_form') echo ' SELECTED'
65 ?>>Web-based form</option>
66 </select>
67 <input type=hidden name=action value=meth>
68 <input type=submit value="Save Method">
69 </td></form>
70 </tr>
71 <tr>
72 <td valign=top align=right>Your SpamCop authorization code:<br>
73 <font size="-2">(see below)</font>
74 </td>
75 <form method=post action=options.php><td valign=top>
76 <input type=text size=30 name="ID" value="<?PHP
77 echo htmlspecialchars($spamcop_id) ?>">
78 <input type=hidden name=action value=save_id>
79 <input type=submit value="Save ID">
80 </td></form>
81 </tr>
82 </table>
83
84<p>SpamCop is a free service that greatly assists in finding the true source
85of the spam and helps in letting the proper people know about the abuse.</p>
86
87<p>To use it, you must get a SpamCop authorization code. There is a free <a
88href="http://spamcop.net/anonsignup.shtml">sign up page</a> so you can use
89SpamCop.</p>
90
91<p><b>Before you sign up, be warned:</b> Some users have reported that the
92email addresses used with SpamCop find their way onto spam lists. To be
93safe, you can just create an email forwarding account and have all SpamCop
94reports get sent to there. Also, if it gets flooded with spam, you can then
95just delete that account with no worries about losing your real email address.
96Just go create an email forwarder somewhere (<a
97href="http://www.yahoo.com/">Yahoo!</a> has a <a
98href="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
99of places</a>) so that messages from system administrators and whatnot can
100be sent to you.</p>
101
102<p>Once you have signed up with SpamCop and have received your SpamCop
103authorization code, you need to enable this plugin -- just click the link
104above. Once enabled, you go about your normal life. If you encounter a
105spam message in your mailbox, just view it. On the right-hand side, near
106the top of where the message is displayed, you will see a link to report
107this message as spam. Clicking on it brings you to a confirmation page.
108Confirming that you want the spam report sent will do different things with
109different reporting methods.</p>
110
111<p><b>Email-based Reporting</b><br>
112Pressing the button forwards the message to the SpamCop service and will
113optionally delete the message. From there, you just need to go to your
114INBOX and quite soon a message should appear from SpamCop. (It gets sent to
115the account you registered with, so make sure that your mail forwarder works!)
116Open it up, click on the appropriate link at the top, and a new browser
117window will open.</p>
118
119<p>Currently, the quick reporting just forwards the request to the thorough
120reporting. Also, it appears that this is for members (non-free) only.
121Hopefully this will change soon.</p>
122
123<p><b>Web-based Reporting</b><br>
124When you press the button on the confirmation page, this will pop open a new
125browser window and the SpamCop service should appear inside. The message
126will not be deleted (working on that part), but you won't need to wait for a
127response email to start the spam reporting.</p>
128
129<p>The SpamCop service will display information as it finds it, so scroll
130down until you see a form button. It might pause a little while it is
131looking up information, so be a little patient. Read what it says, and
132submit the spam. Close the browser window. Press Cancel or click on the
133appropriate mail folder to see messages and/or delete the spam.</p>
134
135<p><b>For more information</b> about SpamCop, it's services, spam in general,
136and many related topics, try reading through SpamCop's <a
137href="http://spamcop.net/help.shtml">Help and Feedback</a> section.</p>
138
139</body></html>