diff options
author | Werner Koch <[email protected]> | 2019-09-17 14:19:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-09-17 14:19:28 +0000 |
commit | 1f987516f6b1cded0a5743142ef50c559f08bcdf (patch) | |
tree | 3d888dc92834505d798c7ae06c2cdb7e0e5e42b6 /common/t-mbox-util.c | |
parent | gpg: First rough implementation of keyboxd access for key lookup. (diff) | |
download | gnupg-1f987516f6b1cded0a5743142ef50c559f08bcdf.tar.gz gnupg-1f987516f6b1cded0a5743142ef50c559f08bcdf.zip |
tests: Add two user-id parsing test cases.
--
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/t-mbox-util.c')
-rw-r--r-- | common/t-mbox-util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/t-mbox-util.c b/common/t-mbox-util.c index ae717f96f..e777e03e2 100644 --- a/common/t-mbox-util.c +++ b/common/t-mbox-util.c @@ -77,6 +77,12 @@ run_mbox_test (void) { "<fo()[email protected]> ()", "fo()[email protected]" }, { "fo()[email protected]", NULL}, + { "Surname, Forename | company <[email protected]>", "[email protected]"}, + /* The next one is for sure not RFC-822 correct but nevertheless + * the way gpg does it. We won't change it because the user-id + * is only rfc-822 alike and not compliant (think only of our + * utf-8 requirement). */ { NULL, NULL } }; int idx; |