Skip to content

Commit

Permalink
reconstruct: ignore partial matches from mboxlist_findall
Browse files Browse the repository at this point in the history
  • Loading branch information
elliefm committed Aug 16, 2016
1 parent f046b3d commit e72821c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion imap/reconstruct.c
Expand Up @@ -442,10 +442,15 @@ static int do_reconstruct(struct findall_data *data, void *rock)
char *other;
struct mailbox *mailbox = NULL;
char outpath[MAX_MAILBOX_PATH];
const char *name = mbname_intname(data->mbname);
const char *name = NULL;

/* ignore partial matches */
if (!data->mbname) return 0;

signals_poll();

name = mbname_intname(data->mbname);

/* don't repeat */
if (hash_lookup(name, &rrock->visited)) return 0;

Expand Down

0 comments on commit e72821c

Please sign in to comment.