Home GnuPG
Diffusion GnuPG a0eb2e4e8cef

common: Add function is_valid_mailbox_mem.
a0eb2e4e8cefUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common: Add function is_valid_mailbox_mem.

* common/mbox-util.c (mem_count_chr): New.
(my_memstr): New.
(has_invalid_email_chars): Change args to work on a buffer.
(is_valid_mailbox_mem): New.
(is_valid_mailbox): Rewrite to use is_valid_mailbox_mem.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 20 2015, 3:39 PM
Parents
rG783a4a98378f: gpg: Find keys using mail addresses with garbage after the '>'
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGa0eb2e4e8cef: common: Add function is_valid_mailbox_mem. (authored by Werner Koch <wk@gnupg.org>).Mar 20 2015, 3:40 PM