| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- Format of this file is as follows:
- If the line's first character is a colon (:), then that is the start
- of a definition. (The rest of the line can be used as a comment.)
- The line after the colon is the line to be interpretted.
- The second line after the colon is the number of expected addresses.
- For each expected address another pair of lines is present. The first
- line is the expected address and the second line is the expected name.
- Note that if no name or no address is expected, then the line must
- appear but be blank.
- Lines after these are the e-mail addresses put back together in modern
- format.
- : Test 1: Test of a simple address
- [email protected]
- 1
- [email protected]
- [email protected]
- : Test 2: Test of another simple address.
- <[email protected]>
- 1
- [email protected]
- [email protected]
- : Test 3: Test of a quoted section
- "Some Guy" <[email protected]>
- 1
- [email protected]
- Some Guy
- Some Guy <[email protected]>
- : Test 4: Test of a Bracketted section (a comment)
- (To be ignored) <[email protected]>
- 1
- [email protected]
- [email protected]
- : Test 5: Test of both bracket and quoted sections together
- "Some Guy" (To be ignored) <[email protected]>
- 1
- [email protected]
- Some Guy
- Some Guy <[email protected]>
- : Test 6: Test of a bracketted section inside the e-mail address.
- <someguy(ignore)@domain.example>
- 1
- [email protected]
- [email protected]
- : Test 7: Test of a lots of brackets with escaped brackets
- (Brackets to ignore) "Some Guy (Brackets to be retained)" (Brackets (nested) and brackets \(not nested\)to ignore) <someguy(ignore)@domain.example(ignore)>
- 1
- [email protected]
- Some Guy (Brackets to be retained)
- "Some Guy (Brackets to be retained)" <[email protected]>
- : Test 8: Test of quoted e-mail address.
- <"Some Guy"@domain.example>
- 1
- Some [email protected]
- <"Some Guy"@domain.example>
- : Test 9: Test of silly quoted-address (but remaining valid)
- "Some Guy with \"quotes\" in \"quotes\"" <"Some Guy @ domain.example with \"quotes\""@domain.example>
- 1
- Some Guy @ domain.example with "quotes"@domain.example
- Some Guy with "quotes" in "quotes"
- "Some Guy with \"quotes\" in \"quotes\"" <"Some Guy @ domain.example with \"quotes\""@domain.example>
- : Test 10: Test to ignore would-be signals inside quotes & brackets.
- "Some <,>()@ Guy" (Brackets ,"<> to be ignored) <someguy(<>,@")@domain.example>
- 1
- [email protected]
- Some <,>()@ Guy
- "Some <,>()@ Guy" <[email protected]>
- : Test 11: Simple dual-address line
- [email protected], [email protected]
- 2
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- : Test 12: Second simple dual-address line.
- <[email protected]>, [email protected]
- 2
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- : Test 13: Third simple dual-address line.
- <[email protected]>, <[email protected]>
- 2
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- : Test 14: Fourth simple dual-address line.
- [email protected], <[email protected]>
- 2
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- : Test 15: Dual-addresses with names
- "First guy" <[email protected]>, "Second guy" <[email protected]>
- 2
- [email protected]
- First guy
- [email protected]
- Second guy
- First guy <[email protected]>
- Second guy <[email protected]>
- : Test 16: Throw in a couple (!) of comments
- (Ignore this bracket) "First (To be kept) guy" (Ignore) <(ignore)firstguy(ignore)@(ignore)domain(ignore).(ignore)example(ignore)>, "Second (To be kept) guy" <(ignore)secondguy(ignore)@(ignore)domain(ignore).(ignore)example(ignore)>
- 2
- [email protected]
- First (To be kept) guy
- [email protected]
- Second (To be kept) guy
- "First (To be kept) guy" <[email protected]>
- "Second (To be kept) guy" <[email protected]>
- : Test 17: Real-world example (Bug 262 with names changed), apparently this format can be produced by Eudora's Redirect command. Also the '.' character forces the quotation of the name.
- "First G. Guy" <[email protected]> (by way of <Second Guy> <[email protected]>)
- 1
- [email protected]
- First G. Guy
- "First G. Guy" <[email protected]>
- : Test 18: Test of a single address containing spaces in the domain
- <someguy@ domain . example >
- 1
- [email protected]
- [email protected]
- : Test 19: A group containing one address
- One Group: "First Guy" <[email protected]>;
- 1
- [email protected]
- First Guy
- First Guy <[email protected]>
- : Test 20: A group containing two addresses
- One group: "First Guy" <[email protected]>, "Second Guy" <[email protected]> ;
- 2
- [email protected]
- First Guy
- [email protected]
- Second Guy
- First Guy <[email protected]>
- Second Guy <[email protected]>
- : Test 21: An empty group
- Empty group: ;
- 0
- : Test 22: Two groups
- One group: "First Guy" <[email protected]>, "Second Guy" <[email protected]>; Second group: "Third guy" <[email protected]>, "Fourth guy" <[email protected]> ;
- 4
- [email protected]
- First Guy
- [email protected]
- Second Guy
- [email protected]
- Third guy
- [email protected]
- Fourth guy
- First Guy <[email protected]>
- Second Guy <[email protected]>
- Third guy <[email protected]>
- Fourth guy <[email protected]>
- : Test 23: address outside of groups
- One group: "First Guy" <[email protected]>, "Second guy" <[email protected]>; "Third guy" <[email protected]>
- 3
- [email protected]
- First Guy
- [email protected]
- Second guy
- [email protected]
- Third guy
- First Guy <[email protected]>
- Second guy <[email protected]>
- Third guy <[email protected]>
- : Test 24: Sublime
- Their lordships: "Madam elevated" <[email protected]>, "His wigship" <[email protected]> ; Their regalnesses: "\"One\"" <[email protected]>, "Other \"One\"" <[email protected]> ;
- 4
- [email protected]
- Madam elevated
- [email protected]
- His wigship
- [email protected]
- "One"
- [email protected]
- Other "One"
- Madam elevated <[email protected]>
- His wigship <[email protected]>
- "\"One\"" <[email protected]>
- "Other \"One\"" <[email protected]>
- : Test 25: Ridiculous
- (Ingore some text) One group: (These are the first group (nested bracket) escaped brackets \(\)) "First Guy with \"quotes\"" <(some text to be ignored)first(ignore)guy(ignore)@ (ignore) domain . (ignore) example > , (ignore) "Second Guy with brackets (to be kept) <these as well>" <[email protected]> ; Group Two : "Third Guy" <[email protected]>; Empty Group: ; "Fourth Guy" <fourth(outside groups)guy@ domain . example >
- 4
- [email protected]
- First Guy with "quotes"
- [email protected]
- Second Guy with brackets (to be kept) <these as well>
- [email protected]
- Third Guy
- [email protected]
- Fourth Guy
- "First Guy with \"quotes\"" <[email protected]>
- "Second Guy with brackets (to be kept) <these as well>" <[email protected]>
- Third Guy <[email protected]>
- Fourth Guy <[email protected]>
- : Test 26: Format forgotten to test...
- First Guy <[email protected]>
- 1
- [email protected]
- First Guy
- First Guy <[email protected]>
- : Test 27: Now with silly spaces & brackets
- (Ignore) First Guy (Ignore) <firstguy@ domain . example >
- 1
- [email protected]
- First Guy
- First Guy <[email protected]>
- : Test 28: Multiple forgotten format
- First Guy <[email protected]>, Second Guy <[email protected]>
- 2
- [email protected]
- First Guy
- [email protected]
- Second Guy
- First Guy <[email protected]>
- Second Guy <[email protected]>
- : Test 29: Interchangeable formats
- First Guy <[email protected]>, "Second Guy" <[email protected]>, [email protected]
- 3
- [email protected]
- First Guy
- [email protected]
- Second Guy
- [email protected]
- First Guy <[email protected]>
- Second Guy <[email protected]>
- [email protected]
- : Test 30 : Old, depraciated format - must never generate but must support for extraction
- "First Guy" [email protected]
- 1
- [email protected]
- First Guy
- First Guy <[email protected]>
- : Test 31 : Multiple old format
- "First Guy" [email protected], "Second guy" [email protected]
- 2
- [email protected]
- First Guy
- [email protected]
- Second guy
- First Guy <[email protected]>
- Second guy <[email protected]>
- : Test 32 : Interchangeable formats
- "First Guy" [email protected], "Second Guy" <[email protected]>, Third Guy <[email protected]>, [email protected], <[email protected]>
- 5
- [email protected]
- First Guy
- [email protected]
- Second Guy
- [email protected]
- Third Guy
- [email protected]
- [email protected]
- First Guy <[email protected]>
- Second Guy <[email protected]>
- Third Guy <[email protected]>
- [email protected]
- [email protected]
- : Test 33 : Spaces after email address when bracketed comment is removed
- [email protected] (John Doe)
- 1
- [email protected]
- [email protected]
- : Test 34 : Spaces before email address when bracketed comment is removed
- (John Doe) [email protected]
- 1
- [email protected]
- [email protected]
- : Test 35 : TIdEMailAddressItem.SetText - BUG
- SMS News Service<[email protected]>
- 1
- [email protected]
- SMS News Service
- SMS News Service <[email protected]>
|