From 2e17f427a99e611ca369a70a0976ce7a92627067 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 20 Apr 2022 11:10:09 +0200 Subject: [PATCH] fix severing of msg -> srec links upon maildir rescan amends 9c86ec34 (the relevant line was arguably misplaced there, and should have been in 2277ecef or whereabouts already). --- src/drv_maildir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drv_maildir.c b/src/drv_maildir.c index 30c0400..3433c4a 100644 --- a/src/drv_maildir.c +++ b/src/drv_maildir.c @@ -1239,7 +1239,6 @@ maildir_init_msg( maildir_store_t *ctx, maildir_message_t *msg, msg_t *entry ) msg->msgid = entry->msgid; entry->msgid = NULL; /* prevent deletion */ msg->size = entry->size; - msg->srec = NULL; memcpy( msg->tuid, entry->tuid, TUIDL ); if (entry->recent) msg->status |= M_RECENT; @@ -1259,6 +1258,7 @@ maildir_app_msg( maildir_store_t *ctx, maildir_message_t ***msgapp, msg_t *entry *msgapp = &msg->next; msg->uid = entry->uid; msg->status = 0; + msg->srec = NULL; maildir_init_msg( ctx, msg, entry ); }