view src/lib-imap/imap-match.h @ 903:fd8888f6f037 HEAD

Naming style changes, finally got tired of most of the typedefs. Also the previous enum -> macro change reverted so that we don't use the highest bit anymore, that's incompatible with old indexes so they will be rebuilt.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Jan 2003 15:09:51 +0200
parents 5ac361acb316
children d28571e8c810
line wrap: on
line source

#ifndef __IMAP_MATCH_H
#define __IMAP_MATCH_H

struct imap_match_glob;

/* If inboxcase is TRUE, the "INBOX" string at the beginning of line is
   compared case-insensitively */
struct imap_match_glob *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(struct imap_match_glob *glob, const char *data);

#endif