mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:41:59 +01:00
fix for journaled messages with Bcc recipients
This commit is contained in:
parent
f7d9556b84
commit
a6690a2428
@ -335,6 +335,7 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, int
|
||||
if(strncasecmp(buf, "From:", strlen("From:")) == 0) state->message_state = MSG_FROM;
|
||||
else if(strncasecmp(buf, "To:", 3) == 0) state->message_state = MSG_TO;
|
||||
else if(strncasecmp(buf, "Cc:", 3) == 0) state->message_state = MSG_CC;
|
||||
else if(strncasecmp(buf, "Bcc:", 4) == 0) state->message_state = MSG_CC;
|
||||
else if(strncasecmp(buf, "Message-Id:", 11) == 0) state->message_state = MSG_MESSAGE_ID;
|
||||
else if(strncasecmp(buf, "References:", 11) == 0) state->message_state = MSG_REFERENCES;
|
||||
else if(strncasecmp(buf, "Subject:", strlen("Subject:")) == 0) state->message_state = MSG_SUBJECT;
|
||||
@ -366,6 +367,13 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, int
|
||||
state->message_state = MSG_RECIPIENT;
|
||||
}
|
||||
|
||||
if(state->message_state == MSG_BODY && sdata->ms_journal == 1 && strncasecmp(buf, "Bcc:", 4) == 0){
|
||||
state->is_header = 1;
|
||||
state->is_1st_header = 1;
|
||||
state->message_state = MSG_CC;
|
||||
}
|
||||
|
||||
|
||||
if(state->message_state == MSG_RECIPIENT){
|
||||
p = strstr(buf, "Expanded:");
|
||||
if(p) *p = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user