[PATCH] Combine duplicate IMAP INBOX nodes
- From: Peter Bloomfield <bloomfld eos ncsu edu>
- To: Pawel Salek <pawsa theochem kth se>
- Cc: balsa-list gnome org
- Subject: [PATCH] Combine duplicate IMAP INBOX nodes
- Date: Wed, 11 Jul 2001 21:30:37 -0400
On 2001.06.20 18:56 Peter Bloomfield wrote:
> Balsa-1.1.6 puts two INBOX nodes in the IMAP tree (at least for my Cyrus
> server). This results from the way libmutt's imap_browse() handles
> namespaces. The attached patch (against version 1.1.6) eliminates the
> duplication.
This patch, against this morning's CVS tree, does the same thing. (It also
allows rescannning IMAP subfolders from the context menu.)
- add_imap_entry now looks for a node with the given path, and creates one
only if one doesn't exist.
- add_imap_mailbox gets a node from add_imap_entry, and adds a mailbox only
if it doesn't already have one.
- add_imap_folder just gets a node from add_imap_entry, and returns it
regardless of whether it has a mailbox.
This strategy should take care of multiple folders, regardless of whether
they are first seen as folders or mailboxes.
Comments and suggestions welcome, as always!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]