||lang_get(page_title)||

||include||charset.htm|| ||include||style.htm||
||define||sw_onload||spam_onload();|| ||define||sw_menu||true|| ||include||na_pgstart.htm|| #
((Surgeweb sw_spam.htm user.cgi template))

$$Spam control$$ #||include||na_smenu.htm|| # Allow friends settings to be saved from the cmd_user_spam_save command # All required friends and spam fields, any commented out here will be explicitly defined as inputs later on the page instead # # # # # # # # # # Special surgeweb fields ||include||na_reqd.htm|| ||include||na_wpage.htm|| ||if(or(equal(friend_mode,(disabled)),not(equal(recent_out_auto,(checked))) ))||
Friends system is currently disabled. It is strongly recommended to make use of the "Safe Sender Whitelist". This will prevent false postivies (ie. non spam messages being identified as spam) from people you have previously emailed.
||endif||
$$Controls to be applied to mail identified as probable spam$$. $$These are only applied to messages that "look like spam", have been accepted by SPF with greylisting, and have not been identified as safe by the filtering rules or safe sender whitelist, and are not on the blocklist.$$ ||ifdef||__junk__|| ||define((spam_handling),(none))|| ||if(or(greater_than(spam_store,(0)),greater_than(spam_bounce,(0)),greater_than(spam_vanish,(0)) ))|| ||define((spam_handling),(hold))|| ||endif||
||include||table.htm||
One step spam control: | This will set all settings below... (including advanced)

Spam handling is disabled. All email will be delivered to your inbox without being marked in any way as spam.
For small amounts of spam, it is recommended that both settings below are set the same, dependent on your personal preferences either to "mark & deliver to inbox" or "deliver to Spam folder".
As you receive more spam, it is recommended that your spam handling is split into:
"almost certainly spam" - which you probably need never look at
"likely spam" - which is likely to contain some false positives so you should check occasionally
This will challenge all email that looks like it might be spam.
Warning: This may catch the first email you receive from someone. In this case, the message will be pending in the Spam folder until the sender replies to the friends bounce. (or the messsage is manually marked as not spam)
Email is only accepted from people on your safe sender list for this account.
A custom spam configuration is being used which is configurable via Advanced Settings.
You may want to try one of the recommended "One step spam control" configurations above.
||endif||
$$Action to take on almost certainly* spam$$: ||define((spam_handling),(none))|| ||if(or(greater_than(spam_store,(0)),greater_than(spam_bounce,(0)),greater_than(spam_vanish,(0)) ))|| ||define((spam_handling),(hold))|| ||endif||
||include||table.htm||
$$Message delivery:$$
$$Action to take on likely* spam$$:
(valid options are enabled dependent on 'almost certainly spam' setting) ||define((spam_handling),(none))|| ||if(or(greater_than(spam_store,(0)),greater_than(spam_bounce,(0)),greater_than(spam_vanish,(0)) ))|| ||define((spam_handling),(hold))|| ||endif||
||include||table.htm||
$$Message delivery:$$
This is not implemented as a "feature" yet, but can be achieved by creating a filter rule to move messages with a high spam rating to a particular folder. The above selection box will revert to 'Deliver to INBOX' once you press save.
This is cannot be set from here yet but can be enabled on the 'Unknown Sender Controls' page. The above selection box will revert to 'Deliver to INBOX' once you press save.
All unknown senders blocked by 'Unknown Sender Controls'. Note the account can receive email from anyone on the friends whitelist.
||ifdef||message|| ||message|| ||ifdef||message2||(||message2||)||endif|| ||endif|| * Note: almost certainly = spam rating of ||rating_certain||, likely = spam rating of ||rating_probable||

||if(not(istrue(spam_hide_advanced)))||
Advanced Settings ||endif||

$$WARNING: Only adjust these settings if you are sure you know what you are doing$$
$$Marking messages as spam$$
||include||table.htm||
$$Mark in subject$$ |  | $$Add spam indicator to subject at this spam level$$ $$eg level 4 = '||spam_subject_word||'$$
$$Mark in body and special header$$ |  | $$Add indicator to the message body at this spam level.$$ ($$required to filter messages if using Microsoft Outlook$$)

||ifndef||default_user|| ||ifdef||spam_private|| ||ifequal||allow_spampriv||true||
$$SpamPrivate Alias features$$
$$Email addressed to your private alias (user--PRIVATESETTING@domain.com) will bypass spam and SPF rules. You should be very careful with this private address, DO NOT enter it into web pages or use it when joining mailing lists or posting to news groups/web pages.$$
#

||include||table.htm||
$$Private suffix, e.g. "private"$$ | $$Use this address to skip spam/spf: ||display_user||--||spam_ddpriv||@||domain||$$
$$From suffix, e.g. "from"$$ | $$Use this address for web pages: ||display_user||--||spam_ddfrom||-WEBDOMAIN@||domain||$$

# # ||endif|| ||endif|| ||endif|| ||ifdef||user_virus_scan||
$$VIRUS features$$

| $$Don't scan messages for viruses.$$

||ifndef||default_user|| ||endif||
# ||ifndef||default_user|| # # ||endif|| ||else|| ||endif||
$$Friends settings$$
$$Friends system actions that do not actually send out "challenge unknown sender" emails.$$
||include||table.htm||
||ifequal||friend_mode||disabled||
$$Disabled - NOT RECOMMENDED!$$
||endif||
$$Apply whitelist, mark suspected spam and deliver to inbox$$
$$Place mail from unknown senders in Spam folder if $$: $$or greater.$$ ($$Recommended$$)
$$Do one of several "challenge unknown sender" actions.$$
$$Spam override rules$$
||if(or(greater_than(spam_store,(0)),greater_than(spam_vanish,(0))))|| $$Based on the spam rating you can choose to hold, reject, or vanish a message before you even see it.$$ ||else|| $$Based on the spam rating you can choose to reject a message before you even see it.$$ ||endif||
||include||table.htm||
$$Reject when rating is$$
The sender is notified you did not receive the email. This only applies if the sender is not on your whitelist. This action is performed before any 'challenge' actions. ||if(or(greater_than(spam_store,(0)),greater_than(spam_vanish,(0))))||
$$Hold when rating is$$
$$Not recommended: More effective spam control method is to request a Friends confirmation for messages that are almost certainly spam.$$ release held messages
$$Vanish* when rating is$$
||else|| ||endif||
||ifdef||message|| ||message|| ||ifdef||message2||(||message2||)||endif|| ||endif||
$$Temporarily disable spam filtering$$

||ifequal||friend_temp_status||notblocking|| | $$Blocking has been disabled for another ||friend_temp_timeleft|| hours.$$ ||else|| |  | $$This allows all mail for 3 hours. Use it when expecting an urgent email from an unknown person, robot or mailing list$$ ||endif||

#
# #
# $$Some guff on "defaults button"$$ #
# # # ||ifndef||default_user|| # # ||endif||
# * $$Hold means the message is kept for 2 weeks, in which time you can view the message(s) and choose to receive specific messages.$$
# * $$Reject means do not accept the message, their server will notify them that you didn't get it.$$
# * $$Vanish means throw the message away, sender doesn't know you didn't get it.$$
Note 1: * $$SERVER DEFAULT is subject to change$$ #
# $$Note 2: The vanish option is not recommended because the sender is not notified when the message is not delivered.$$
Raw user.cgi settings (directly editable via advanced settings):
||if(equal(spam_handling,(hold)))|| #
||endif|| # Special surgeweb fields (only required for display of spam page) ||include||na_pgend.htm||