Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. #
  2. # These test cases are taken from RFC::RFC822::Address
  3. #
  4. my @valids = split /\n/ => <<'VALIDS';
  5. abigail@example.com
  6. abigail@example.com
  7. abigail@example.com
  8. abigail @example.com
  9. *@example.net
  10. "\""@foo.bar
  11. fred&barny@example.com
  12. ---@example.com
  13. foo-bar@example.net
  14. "127.0.0.1"@[127.0.0.1]
  15. Abigail <abigail@example.com>
  16. Abigail<abigail@example.com>
  17. Abigail<@a,@b,@c:abigail@example.com>
  18. "This is a phrase"<abigail@example.com>
  19. "Abigail "<abigail@example.com>
  20. "Joe & J. Harvey" <example @Org>
  21. Abigail <abigail @ example.com>
  22. Abigail made this < abigail @ example . com >
  23. Abigail(the bitch)@example.com
  24. Abigail <abigail @ example . (bar) com >
  25. Abigail < (one) abigail (two) @(three)example . (bar) com (quz) >
  26. Abigail (foo) (((baz)(nested) (comment)) ! ) < (one) abigail (two) @(three)example . (bar) com (quz) >
  27. Abigail <abigail(fo\(o)@example.com>
  28. Abigail <abigail(fo\)o)@example.com>
  29. (foo) abigail@example.com
  30. abigail@example.com (foo)
  31. "Abi\"gail" <abigail@example.com>
  32. abigail@[example.com]
  33. abigail@[exa\[ple.com]
  34. abigail@[exa\]ple.com]
  35. ":sysmail"@ Some-Group. Some-Org
  36. Muhammed.(I am the greatest) Ali @(the)Vegas.WBA
  37. mailbox.sub1.sub2@this-domain
  38. sub-net.mailbox@sub-domain.domain
  39. name:;
  40. ':;
  41. name: ;
  42. Alfred Neuman <Neuman@BBN-TENEXA>
  43. Neuman@BBN-TENEXA
  44. "George, Ted" <Shared@Group.Arpanet>
  45. Wilt . (the Stilt) Chamberlain@NBA.US
  46. Cruisers: Port@Portugal, Jones@SEA;
  47. $@[]
  48. *()@[]
  49. "quoted ( brackets" ( a comment )@example.com
  50. VALIDS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement