diff options
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c index e219d7623..0125da4b0 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -1499,6 +1499,20 @@ is_valid_mailbox (const char *name) } +/* Check whether UID is a valid standard user id of the form + "Heinrich Heine <[email protected]>" + and return true if this is the case. */ +int +is_valid_user_id (const char *uid) +{ + if (!uid || !*uid) + return 0; + + return 1; +} + + + /* Similar to access(2), but uses PATH to find the file. */ int path_access(const char *file,int mode) |