From ff50fa42e692994c18cd96ec409eda8a1e4c3fa5 Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 5 Jun 2014 15:37:47 +0200 Subject: [PATCH] extra recipient fix --- src/parser.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/parser.c b/src/parser.c index 72e5ca67..c6f068b1 100644 --- a/src/parser.c +++ b/src/parser.c @@ -34,6 +34,15 @@ struct _state parse_message(struct session_data *sdata, int take_into_pieces, st if(sdata->import == 1 && data->import->extra_recipient){ len = strlen(data->import->extra_recipient); + + addnode(state.journal_recipient, data->import->extra_recipient); + + memcpy(&(state.b_journal_to[state.journaltolen]), data->import->extra_recipient, len); + state.journaltolen += len; + memcpy(&(state.b_journal_to[state.journaltolen]), " ", 1); + state.journaltolen++; + strtolower(state.b_journal_to); + memcpy(&(state.b_to[state.tolen]), data->import->extra_recipient, len); state.tolen += len; memcpy(&(state.b_to[state.tolen]), " ", 1);