On Tue, 15 Oct 2019 22:23, David Hebbeker said: > The manual [1] says that GnuPG can automatically retrieve keys for > emails in the "u...@example.com" form. Does this exclude emails wrapped > by angle brackets like "<u...@example.com>"?
That is fine. Find below our test addresses. Salam-Shalom, Werner ps. Here is our test data set. The second string is the exepcted result, if it is NULL we can't extract a mail address from the string: { "Werner Koch <w...@gnupg.org>", "w...@gnupg.org" }, { "<w...@gnupg.org>", "w...@gnupg.org" }, { "w...@gnupg.org", "w...@gnupg.org" }, { "w...@gnupg.org ", NULL }, { " w...@gnupg.org", NULL }, { "Werner Koch (test) <w...@gnupg.org>", "w...@gnupg.org" }, { "Werner Koch <w...@gnupg.org> (test)", "w...@gnupg.org" }, { "Werner Koch <w...@gnupg.org (test)", NULL }, { "Werner Koch <w...@gnupg.org >", NULL }, { "Werner Koch <w...@gnupg.org", NULL }, { "", NULL }, { "@", NULL }, { "bar <>", NULL }, { "<f...@example.org>", "f...@example.org" }, { "<f...@example.org>", "f...@example.org" }, { "<.f...@example.org>", ".f...@example.org" }, { "<fo...@example.org>", "fo...@example.org" }, { "<foo.....@example.org>", "foo.....@example.org" }, { "<f...@example.org.>", NULL }, { "<f...@example..org>", NULL }, { "<foo@.>", NULL }, { "<@example.org>", NULL }, { "<foo@@example.org>", NULL }, { "<@f...@example.org>", NULL }, { "<f...@example.org> ()", "f...@example.org" }, { "<fo()o...@example.org> ()", "fo()o...@example.org" }, { "<fo()o...@example.org> ()", "fo()o...@example.org" }, { "fo()o...@example.org", NULL}, { "Mr. Foo <f...@example.org><b...@example.net>", "f...@example.org"}, { "Surname, Forename | company <f...@example.org>", "f...@example.org"}, /* 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). */ { "\"<f...@example.org>\" <f...@example.net>", "f...@example.org"}, -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
signature.asc
Description: PGP signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users