The Apache SpamAssassin Project

SpamAssassin: Tests Performed: v3.3.x

Tests Performed: v3.3.x

This is the current list of tests SpamAssassin performs on mail messages to determine if they’re spam or not. If you wish to change the score from the default, add a line like this to your ~/.spamassassin/user_prefs:

score NAME_OF_TEST 3.0

Where 3.0 is the hits you wish that test to incur, and NAME_OF_TEST is the test name from the TEST NAME column below.

If you wish to disable a test, set the score to 0 by adding a line like this to your ~/.spamassassin/user_prefs:

score NAME_OF_TEST 0

Note that these are the scores for the current stable release of SpamAssassin; they may be different from the ones you’re running on your servers, if SpamAssassin is installed there.

The ‘More Info’ links, if present, lead to a section of our Wiki for collaborative documentation of rules; some of the rules include additional user-contributed documentation there. If you feel like adding a page describing a rule in further detail, feel free to create a page at that link, using the RuleDescriptionTemplate format.

如何解決PHP使用utf8編碼寄Email時寄信者跟信件標題有中文時會出現亂碼

如何解決PHP使用utf8編碼寄Email時寄信者跟信件標題有中文時會出現亂碼

如何解決PHP使用utf8編碼寄Email時寄信者跟信件標題有中文時會出現亂碼
您如果是用UTF8的編碼寫寄Email的功能,會發現信件寄出時,寄信者跟信件標題有中文時會出現亂碼,但是信件內容的中文則正常,這是因為,電子郵件標準格式中,表頭的部分不允許使用雙位元的文字,所以必需使用mb_encode_mimeheader()函式將雙位元文字編碼為單位元字串,因mb_encode_mimeheader()預設的字串編碼為西方ISO-8859-1,而我們使用UTF-8編碼所以程式中必需使用mb_internal_encoding()將內部預設編碼改為UTF-8。