mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 06:41:59 +01:00
A minor fix for check_against_...
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
dd17184430
commit
77eaf64050
@ -55,7 +55,7 @@ struct parser_state parse_message(struct session_data *sdata, int take_into_piec
|
|||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
if(data->import->extra_recipient){
|
if(data->import && data->import->extra_recipient){
|
||||||
add_recipient(data->import->extra_recipient, strlen(data->import->extra_recipient), sdata, &state, data, cfg);
|
add_recipient(data->import->extra_recipient, strlen(data->import->extra_recipient), sdata, &state, data, cfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ static void test_archiving_rule(struct config *cfg){
|
|||||||
state = parse_message(&sdata, 1, &data, cfg);
|
state = parse_message(&sdata, 1, &data, cfg);
|
||||||
post_parse(&sdata, &state, cfg);
|
post_parse(&sdata, &state, cfg);
|
||||||
|
|
||||||
rule = check_againt_ruleset(data.archiving_rules, &state, st.st_size, sdata.spam_message);
|
rule = check_against_ruleset(data.archiving_rules, &state, st.st_size, sdata.spam_message);
|
||||||
|
|
||||||
|
|
||||||
for(j=1; j<=state.n_attachments; j++){
|
for(j=1; j<=state.n_attachments; j++){
|
||||||
|
Loading…
Reference in New Issue
Block a user