From 09a4e6a35631c25e476b037b89a0751944f3b572 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Fri, 10 Dec 2021 14:53:02 +0100 Subject: [PATCH] Fixed duplicated email handling with journal addresses Signed-off-by: Janos SUTO --- src/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message.c b/src/message.c index f2bd3038..861253fa 100644 --- a/src/message.c +++ b/src/message.c @@ -346,7 +346,7 @@ int is_duplicated_message(struct session_data *sdata, struct parser_state *state if(sdata->duplicate_id > 0){ remove_stripped_attachments(state); - if(strlen(state->b_journal_to) > 0){ + if(sdata->restored_copy == 0 && strlen(state->b_journal_to) > 0){ if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: trying to add journal rcpt (%s) to id=%llu for message-id: '%s'", sdata->ttmpfile, state->b_journal_to, sdata->duplicate_id, state->message_id); store_recipients(sdata, state->b_journal_to, sdata->duplicate_id, cfg); }