Skip to content

Commit

Permalink
squatter: do not index JMAP upload and notification mailboxes
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Stepanek <[email protected]>
  • Loading branch information
rsto committed Jun 15, 2023
1 parent 5c901ef commit 121516b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions imap/squatter.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,18 @@ static int should_index(const char *name)
goto done;
}

// skip JMAP blobs
if (mboxname_isjmapuploadmailbox(mbentry->name, mbentry->mbtype)) {
ret = 0;
goto done;
}

// skip JMAP notifications
if (mboxname_isjmapnotificationsmailbox(mbentry->name, mbentry->mbtype)) {
ret = 0;
goto done;
}

// skip COLLECTION mailboxes (just files)
if (mbtype_isa(mbentry->mbtype) == MBTYPE_COLLECTION) {
ret = 0;
Expand Down

0 comments on commit 121516b

Please sign in to comment.