From 5ce5d28c00b99aa2c7a83659a45b3ed9a3d62fa1 Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 26 Nov 2014 11:50:03 +0100 Subject: [PATCH] save & and ' in the email addresses --- src/parser_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser_utils.c b/src/parser_utils.c index 4382fda4..ed2de1dc 100644 --- a/src/parser_utils.c +++ b/src/parser_utils.c @@ -588,7 +588,7 @@ void translateLine(unsigned char *p, struct _state *state){ if( (state->message_state == MSG_RECEIVED || state->message_state == MSG_FROM || state->message_state == MSG_TO || state->message_state == MSG_CC || state->message_state == MSG_RECIPIENT) && *p == '@'){ continue; } - if( (state->message_state == MSG_FROM || state->message_state == MSG_TO || state->message_state == MSG_CC || state->message_state == MSG_RECIPIENT) && *p == '_'){ continue; } + if( (state->message_state == MSG_FROM || state->message_state == MSG_TO || state->message_state == MSG_CC || state->message_state == MSG_RECIPIENT) && (*p == '_' || *p == '\'' || *p == '&') ){ continue; } if(state->message_state == MSG_SUBJECT && (*p == '%' || *p == '_' || *p == '&') ){ continue; }