[balsa/gtk4] mailbox_imap: Discard expunged seqnos on close



commit ccfa65f8da35473c7fa620e84d01d9648bfb9b91
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Mar 12 12:39:30 2021 -0500

    mailbox_imap: Discard expunged seqnos on close
    
    We remove the idle handler's source and set the id to zero, so we should
    also set the size of the array of seqnos to zero. Then if the mailbox is
    reopened, we start with a clean slate.

 libbalsa/mailbox_imap.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index ce50379fc..1763f7d31 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -1209,6 +1209,7 @@ libbalsa_mailbox_imap_close(LibBalsaMailbox * mailbox, gboolean expunge)
     if (mimap->expunged_idle_id != 0) {
         g_source_remove(mimap->expunged_idle_id);
         mimap->expunged_idle_id = 0;
+        g_array_set_size(mimap->expunged_seqnos, 0);
     }
 
     free_messages_info(mimap);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]