mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 04:30:12 +01:00
journal header parsing fix
This commit is contained in:
parent
881a2380e0
commit
c0301ceaca
@ -14,7 +14,7 @@
|
||||
|
||||
#define VERSION "0.1.25-master-branch"
|
||||
|
||||
#define BUILD 850
|
||||
#define BUILD 851
|
||||
|
||||
#define HOSTID "mailarchiver"
|
||||
|
||||
|
@ -203,11 +203,12 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, int
|
||||
}
|
||||
|
||||
if(sdata->ms_journal == 1 && strncasecmp(buf, "Received:", strlen("Received:")) == 0){
|
||||
if(state->is_1st_header == 0) memset(state->b_subject, 0, MAXBUFSIZE);
|
||||
|
||||
state->is_1st_header = 1;
|
||||
state->is_header = 1;
|
||||
memset(state->b_body, 0, BIGBUFSIZE);
|
||||
state->bodylen = 0;
|
||||
memset(state->b_subject, 0, MAXBUFSIZE);
|
||||
}
|
||||
|
||||
if(take_into_pieces == 1){
|
||||
|
@ -1,2 +0,0 @@
|
||||
order deny,allow
|
||||
deny from all
|
0
webui/tmp/index.html
Normal file
0
webui/tmp/index.html
Normal file
Loading…
Reference in New Issue
Block a user