diff options
author | Werner Koch <[email protected]> | 2015-02-25 10:43:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-02-25 10:43:50 +0000 |
commit | 9913253610bac69e9503800e85696491e018e327 (patch) | |
tree | 01b9c3546907b1fa9fd24f23c0fbaa4fe2c364ff /common/mbox-util.h | |
parent | gpg: Add command --print-pka-records. (diff) | |
download | gnupg-9913253610bac69e9503800e85696491e018e327.tar.gz gnupg-9913253610bac69e9503800e85696491e018e327.zip |
Move new mailbox.c source file to common/.
* g10/mailbox.c: Move to ...
* common/mbox-util.c: new file.
* common/mbox-util.h: New. Include where needed.
* g10/t-mailbox.c: Move to ...
* common/t-mbox-util.c: new file.
--
This will make it easier to use the code by other modules in common/.
Diffstat (limited to 'common/mbox-util.h')
-rw-r--r-- | common/mbox-util.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/mbox-util.h b/common/mbox-util.h new file mode 100644 index 000000000..b9a3bda6b --- /dev/null +++ b/common/mbox-util.h @@ -0,0 +1,38 @@ +/* mbox-util.h - Defs for mail address helper functions + * Copyright (C) 2015 Werner Koch + * + * This file is part of GnuPG. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of either + * + * - the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at + * your option) any later version. + * + * or + * + * - the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * or both in parallel, as here. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see <http://www.gnu.org/licenses/>. + */ +#ifndef GNUPG_COMMON_MBOX_UTIL_H +#define GNUPG_COMMON_MBOX_UTIL_H + +int has_invalid_email_chars (const char *s); +int is_valid_mailbox (const char *name); +char *mailbox_from_userid (const char *userid); +int is_valid_user_id (const char *uid); + + +#endif /*GNUPG_COMMON_MBOX_UTIL_H*/ |