Changeset 2af6f4d2e9733dc431660268ee68eeb81a561014
- Timestamp:
- 06/15/10 22:06:55 (2 years ago)
- Author:
- Antti-Juhani Kaijanaho <ajk@…>
- Children:
- d8c4c083547c515b6a677739df3a875ac699615d
- Parents:
- fa5a85d86832928f58a5565ca937b65e16f71bf3
- git-committer:
- Antti-Juhani Kaijanaho <ajk@…> (06/15/10 22:06:55)
- Message:
-
[local::connection] Use Spamassassin X-Spam-Status to detect spam
Suspected spam is accepted and thrown away.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@…>
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rfa5a85d
|
r2af6f4d
|
|
| 124 | 124 | throw dummy(); |
| 125 | 125 | } |
| | 126 | |
| | 127 | // check for Spamassassin indicator |
| | 128 | if (util::to_lower(m->get_field("X-Spam-Status", false)) |
| | 129 | .find("yes") != std::string::npos) |
| | 130 | { |
| | 131 | ex = EX_OK; |
| | 132 | response = "2.7.1 Suspected spam - thrown away"; |
| | 133 | throw dummy(); |
| | 134 | } |
| 126 | 135 | |
| 127 | 136 | // check for loops |