view src/lib-imap/imap-match.h @ 805:5ac361acb316 HEAD

Marked all non-trivial buffer modifications with @UNSAFE tag. Several cleanups and a couple of minor bugfixes.
author Timo Sirainen <tss@iki.fi>
date Wed, 18 Dec 2002 17:15:41 +0200
parents b531f5cd415e
children fd8888f6f037
line wrap: on
line source

#ifndef __IMAP_MATCH_H
#define __IMAP_MATCH_H

typedef struct _ImapMatchGlob ImapMatchGlob;

/* If inboxcase is TRUE, the "INBOX" string at the beginning of line is
   compared case-insensitively */
ImapMatchGlob *imap_match_init(const char *mask, int inboxcase, char separator);

/* Returns 1 if matched, 0 if it didn't match, but could match with additional
   hierarchies, -1 if definitely didn't match */
int imap_match(ImapMatchGlob *glob, const char *data);

#endif