chiark / gitweb /
gnupg2 (2.1.17-3) unstable; urgency=medium
[gnupg2.git] / common / mbox-util.h
1 /* mbox-util.h - Defs for mail address helper functions
2  * Copyright (C) 2015 Werner Koch
3  *
4  * This file is part of GnuPG.
5  *
6  * This file is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as
8  * published by the Free Software Foundation; either version 2.1 of
9  * the License, or (at your option) any later version.
10  *
11  * This file is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, see <https://www.gnu.org/licenses/>.
18  */
19 #ifndef GNUPG_COMMON_MBOX_UTIL_H
20 #define GNUPG_COMMON_MBOX_UTIL_H
21
22 int has_invalid_email_chars (const void *buffer, size_t length);
23 int is_valid_mailbox (const char *name);
24 int is_valid_mailbox_mem (const void *buffer, size_t length);
25 char *mailbox_from_userid (const char *userid);
26 int is_valid_user_id (const char *uid);
27
28
29 #endif /*GNUPG_COMMON_MBOX_UTIL_H*/