mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
Fixed sender domain check
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
58a164467e
commit
61834843f1
@ -41,7 +41,7 @@ int store_index_data(struct session_data *sdata, struct parser_state *state, str
|
||||
fix_email_address_for_sphinx(state->b_sender_domain);
|
||||
fix_email_address_for_sphinx(state->b_to_domain);
|
||||
|
||||
if(state->b_sender_domain){
|
||||
if(state->b_sender_domain[0]){
|
||||
sender = state->b_sender;
|
||||
sender_domain = state->b_sender_domain;
|
||||
}
|
||||
@ -194,7 +194,7 @@ int store_meta_data(struct session_data *sdata, struct parser_state *state, stru
|
||||
subj = state->b_subject;
|
||||
if(*subj == ' ') subj++;
|
||||
|
||||
if(state->b_sender_domain){
|
||||
if(state->b_sender_domain[0]){
|
||||
sender = state->b_sender;
|
||||
sender_domain = state->b_sender_domain;
|
||||
get_first_email_address_from_string(state->b_sender, s2, sizeof(s2));
|
||||
|
Loading…
Reference in New Issue
Block a user