mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:10:13 +01:00
fixing spam header recognition
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
parent
23e0d829cb
commit
c2e7a94b4e
@ -13,7 +13,7 @@
|
||||
|
||||
#define VERSION "1.2.0-master"
|
||||
|
||||
#define BUILD 942
|
||||
#define BUILD 943
|
||||
|
||||
#define HOSTID "mailarchiver"
|
||||
|
||||
|
@ -197,10 +197,6 @@ int parse_line(char *buf, struct parser_state *state, struct session_data *sdata
|
||||
sdata->restored_copy = 1;
|
||||
}
|
||||
|
||||
if(*(cfg->spam_header_line) != '\0' && strncmp(buf, cfg->spam_header_line, strlen(cfg->spam_header_line)) == 0){
|
||||
sdata->spam_message = 1;
|
||||
}
|
||||
|
||||
if(sdata->ms_journal == 0 && (strncmp(buf, "X-MS-Journal-Report:", strlen("X-MS-Journal-Report:")) == 0 || (sdata->import == 1 && strncmp(buf, "X-MS-Exchange-Organization-Auth", strlen("X-MS-Exchange-Organization-Auth")) == 0))){
|
||||
if(sdata->import == 0){
|
||||
sdata->ms_journal = 1;
|
||||
@ -347,6 +343,10 @@ int parse_line(char *buf, struct parser_state *state, struct session_data *sdata
|
||||
|
||||
if(state->is_header == 1){
|
||||
|
||||
if(*(cfg->spam_header_line) != '\0' && strncmp(buf, cfg->spam_header_line, strlen(cfg->spam_header_line)) == 0){
|
||||
sdata->spam_message = 1;
|
||||
}
|
||||
|
||||
if(strncasecmp(buf, "From:", strlen("From:")) == 0) state->message_state = MSG_FROM;
|
||||
|
||||
else if(strncasecmp(buf, "Content-Type:", strlen("Content-Type:")) == 0){
|
||||
|
Loading…
Reference in New Issue
Block a user