From 3ce983bb37f27aee14413dd905a3c8d246327b24 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Wed, 6 Jun 2018 21:12:45 +0200 Subject: [PATCH] fix bcc address handling Signed-off-by: Janos SUTO --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.c b/src/parser.c index 3a1db6a1..9f324c80 100644 --- a/src/parser.c +++ b/src/parser.c @@ -696,7 +696,7 @@ int parse_line(char *buf, struct parser_state *state, struct session_data *sdata q = strchr(puf, '@'); if(q) fix_plus_sign_in_email_address(puf, &q, &len); - if(state->message_state == MSG_RECIPIENT && findnode(state->journal_recipient, puf) == NULL){ + if((state->message_state == MSG_RECIPIENT || state->message_state == MSG_ENVELOPE_TO) && findnode(state->journal_recipient, puf) == NULL){ addnode(state->journal_recipient, puf); memcpy(&(state->b_journal_to[state->journaltolen]), puf, len); if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: journal rcpt: '%s'", sdata->ttmpfile, puf);