Commit e90f14ed e90f14ed1f447219d8ebf20f63042049c898301c by Sergey Poznyakoff

Add missing file

* include/mailutils/glob.h: File was missing in df608ed0
* include/mailutils/Makefile.am: Add glob.h
1 parent 79951953
...@@ -48,6 +48,7 @@ pkginclude_HEADERS = \ ...@@ -48,6 +48,7 @@ pkginclude_HEADERS = \
48 error.h\ 48 error.h\
49 filter.h\ 49 filter.h\
50 folder.h\ 50 folder.h\
51 glob.h\
51 gsasl.h\ 52 gsasl.h\
52 guile.h\ 53 guile.h\
53 header.h\ 54 header.h\
......
1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 2016 Free Software Foundation, Inc.
3
4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3, or (at your option)
7 any later version.
8
9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. */
16
17 #ifndef _MAILUTILS_GLOB_H
18 #define _MAILUTILS_GLOB_H
19
20 #include <mailutils/types.h>
21 #include <regex.h>
22
23 /* Produce case-insensitive regex */
24 #define MU_GLOBF_ICASE 0x01
25 /* Treat each wildcard as regexp parenthesized group */
26 #define MU_GLOBF_SUB 0x02
27 /* When used with MU_GLOBF_SUB - collapse contiguous runs of * to single
28 asterisk */
29 #define MU_GLOBF_COLLAPSE 0x04
30
31 int mu_glob_to_regex_opool (char const *pattern, mu_opool_t pool, int flags);
32 int mu_glob_to_regex (char **rxstr, char const *pattern, int flags);
33 int mu_glob_compile (regex_t *rx, char const *pattern, int flags);
34
35 #endif