||include||na_head.htm||
||define||sw_onload||spam_onload();|| ||define||sw_menu||true|| ||include||na_pgstart.htm|| ||if(equal(friend_mode,(disabled)))||
Friends system is currently disabled. It is strongly recommended to at least use of the Friends "Safe Sender Whitelist" when using surgeweb. In addition the actions below can be enabled for unknown senders.
||endif|| #
((Surgeweb unknown1.htm user.cgi template))

Challenge Unknown Senders (||lang_get(friends_name)|| bounce) ||include||sw_fmenu.htm|| # All required friends and spam fields, any commented out here will be explicitly defined as inputs later on the page instead # # ||include||na_reqd.htm|| ||include||na_wpage.htm|| # show invalid global default in users ui as disabled ||ifequal||spam_userconfig||true|| ||ifnequal||allow_spam||true|| # Chrisp added the next two, no idea why this is needed, I can't see why it disables # this on the screen in this way.. ||ifequal||friend_mode||smite|| ||ifndef||user_isadmin|| ||ifndef||user_isdomadmin|| ||define||friend_mode||disabled|| ||endif|| ||endif|| ||endif|| ||endif|| ||endif||
The ||lang_get(friends_name)|| system is a Challenge - Response system to confirm email is from a real person and not a spam robot. Mail from unknown senders is held pending awaiting a reply to a confirmation message. If reply is received the message is delivered normally. See here for more details.
||include||table.htm||
$$No unknown sender controls.$$ ||iftrue(allow_spam)|| $$Send challenge if spam score is$$: $$or greater.$$ ($$Recommended$$) ||endif|| $$Send challenge for all unknown addresses.$$ $$Kid safe - only accept mail from known senders.$$ ($$You must specify senders in 'Safe Sender Whitelist'$$)

# if spam settings are enables both are saved at the same time in the cmd_user_spam_save command, else cmd_user_spam_save not available so must use cmd_user_friends_save ||iftrue(allow_spam)|| ||else|| ||endif||
* $$The 'Pending Mail' folder is also called the 'Spam' or 'Friends Pending' folder.$$

||ifequal||friend_mode||disabled|| ||else||
Advanced Settings

$$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||
$$Language based friend confirmation$$
||ifequal||g_spam_lang||true|| $$Require friend confirmation if language of message is other than$$: $$e.g. English,French,Italian,Danish,Russian,Unknown,... English is much more likely to be accurate than most others. A list of several languages is acceptable, e.g. English,French. Friends must be in one of the above two "Request confirmation" modes for this feature to work$$ ||else|| | Set g_spam_lang "true" in surgemail.ini to enable language based confirmation requests. ||endif||

||endif||
Raw user.cgi settings (directly editable via advanced settings):
# Special surgeweb fields (only required for display of spam page) ||include||na_pgend.htm||