EmailAddress.dat 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. Format of this file is as follows:
  2. If the line's first character is a colon (:), then that is the start
  3. of a definition. (The rest of the line can be used as a comment.)
  4. The line after the colon is the line to be interpretted.
  5. The second line after the colon is the number of expected addresses.
  6. For each expected address another pair of lines is present. The first
  7. line is the expected address and the second line is the expected name.
  8. Note that if no name or no address is expected, then the line must
  9. appear but be blank.
  10. Lines after these are the e-mail addresses put back together in modern
  11. format.
  12. : Test 1: Test of a simple address
  13. [email protected]
  14. 1
  15. [email protected]
  16. [email protected]
  17. : Test 2: Test of another simple address.
  18. <[email protected]>
  19. 1
  20. [email protected]
  21. [email protected]
  22. : Test 3: Test of a quoted section
  23. "Some Guy" <[email protected]>
  24. 1
  25. [email protected]
  26. Some Guy
  27. Some Guy <[email protected]>
  28. : Test 4: Test of a Bracketted section (a comment)
  29. (To be ignored) <[email protected]>
  30. 1
  31. [email protected]
  32. [email protected]
  33. : Test 5: Test of both bracket and quoted sections together
  34. "Some Guy" (To be ignored) <[email protected]>
  35. 1
  36. [email protected]
  37. Some Guy
  38. Some Guy <[email protected]>
  39. : Test 6: Test of a bracketted section inside the e-mail address.
  40. <someguy(ignore)@domain.example>
  41. 1
  42. [email protected]
  43. [email protected]
  44. : Test 7: Test of a lots of brackets with escaped brackets
  45. (Brackets to ignore) "Some Guy (Brackets to be retained)" (Brackets (nested) and brackets \(not nested\)to ignore) <someguy(ignore)@domain.example(ignore)>
  46. 1
  47. [email protected]
  48. Some Guy (Brackets to be retained)
  49. "Some Guy (Brackets to be retained)" <[email protected]>
  50. : Test 8: Test of quoted e-mail address.
  51. <"Some Guy"@domain.example>
  52. 1
  53. Some [email protected]
  54. <"Some Guy"@domain.example>
  55. : Test 9: Test of silly quoted-address (but remaining valid)
  56. "Some Guy with \"quotes\" in \"quotes\"" <"Some Guy @ domain.example with \"quotes\""@domain.example>
  57. 1
  58. Some Guy @ domain.example with "quotes"@domain.example
  59. Some Guy with "quotes" in "quotes"
  60. "Some Guy with \"quotes\" in \"quotes\"" <"Some Guy @ domain.example with \"quotes\""@domain.example>
  61. : Test 10: Test to ignore would-be signals inside quotes & brackets.
  62. "Some <,>()@ Guy" (Brackets ,"<> to be ignored) <someguy(<>,@")@domain.example>
  63. 1
  64. [email protected]
  65. Some <,>()@ Guy
  66. "Some <,>()@ Guy" <[email protected]>
  67. : Test 11: Simple dual-address line
  68. [email protected], [email protected]
  69. 2
  70. [email protected]
  71. [email protected]
  72. [email protected]
  73. [email protected]
  74. : Test 12: Second simple dual-address line.
  75. <[email protected]>, [email protected]
  76. 2
  77. [email protected]
  78. [email protected]
  79. [email protected]
  80. [email protected]
  81. : Test 13: Third simple dual-address line.
  82. <[email protected]>, <[email protected]>
  83. 2
  84. [email protected]
  85. [email protected]
  86. [email protected]
  87. [email protected]
  88. : Test 14: Fourth simple dual-address line.
  89. [email protected], <[email protected]>
  90. 2
  91. [email protected]
  92. [email protected]
  93. [email protected]
  94. [email protected]
  95. : Test 15: Dual-addresses with names
  96. "First guy" <[email protected]>, "Second guy" <[email protected]>
  97. 2
  98. [email protected]
  99. First guy
  100. [email protected]
  101. Second guy
  102. First guy <[email protected]>
  103. Second guy <[email protected]>
  104. : Test 16: Throw in a couple (!) of comments
  105. (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)>
  106. 2
  107. [email protected]
  108. First (To be kept) guy
  109. [email protected]
  110. Second (To be kept) guy
  111. "First (To be kept) guy" <[email protected]>
  112. "Second (To be kept) guy" <[email protected]>
  113. : 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.
  114. "First G. Guy" <[email protected]> (by way of <Second Guy> <[email protected]>)
  115. 1
  116. [email protected]
  117. First G. Guy
  118. "First G. Guy" <[email protected]>
  119. : Test 18: Test of a single address containing spaces in the domain
  120. <someguy@ domain . example >
  121. 1
  122. [email protected]
  123. [email protected]
  124. : Test 19: A group containing one address
  125. One Group: "First Guy" <[email protected]>;
  126. 1
  127. [email protected]
  128. First Guy
  129. First Guy <[email protected]>
  130. : Test 20: A group containing two addresses
  131. One group: "First Guy" <[email protected]>, "Second Guy" <[email protected]> ;
  132. 2
  133. [email protected]
  134. First Guy
  135. [email protected]
  136. Second Guy
  137. First Guy <[email protected]>
  138. Second Guy <[email protected]>
  139. : Test 21: An empty group
  140. Empty group: ;
  141. 0
  142. : Test 22: Two groups
  143. One group: "First Guy" <[email protected]>, "Second Guy" <[email protected]>; Second group: "Third guy" <[email protected]>, "Fourth guy" <[email protected]> ;
  144. 4
  145. [email protected]
  146. First Guy
  147. [email protected]
  148. Second Guy
  149. [email protected]
  150. Third guy
  151. [email protected]
  152. Fourth guy
  153. First Guy <[email protected]>
  154. Second Guy <[email protected]>
  155. Third guy <[email protected]>
  156. Fourth guy <[email protected]>
  157. : Test 23: address outside of groups
  158. One group: "First Guy" <[email protected]>, "Second guy" <[email protected]>; "Third guy" <[email protected]>
  159. 3
  160. [email protected]
  161. First Guy
  162. [email protected]
  163. Second guy
  164. [email protected]
  165. Third guy
  166. First Guy <[email protected]>
  167. Second guy <[email protected]>
  168. Third guy <[email protected]>
  169. : Test 24: Sublime
  170. Their lordships: "Madam elevated" <[email protected]>, "His wigship" <[email protected]> ; Their regalnesses: "\"One\"" <[email protected]>, "Other \"One\"" <[email protected]> ;
  171. 4
  172. [email protected]
  173. Madam elevated
  174. [email protected]
  175. His wigship
  176. [email protected]
  177. "One"
  178. [email protected]
  179. Other "One"
  180. Madam elevated <[email protected]>
  181. His wigship <[email protected]>
  182. "\"One\"" <[email protected]>
  183. "Other \"One\"" <[email protected]>
  184. : Test 25: Ridiculous
  185. (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 >
  186. 4
  187. [email protected]
  188. First Guy with "quotes"
  189. [email protected]
  190. Second Guy with brackets (to be kept) <these as well>
  191. [email protected]
  192. Third Guy
  193. [email protected]
  194. Fourth Guy
  195. "First Guy with \"quotes\"" <[email protected]>
  196. "Second Guy with brackets (to be kept) <these as well>" <[email protected]>
  197. Third Guy <[email protected]>
  198. Fourth Guy <[email protected]>
  199. : Test 26: Format forgotten to test...
  200. First Guy <[email protected]>
  201. 1
  202. [email protected]
  203. First Guy
  204. First Guy <[email protected]>
  205. : Test 27: Now with silly spaces & brackets
  206. (Ignore) First Guy (Ignore) <firstguy@ domain . example >
  207. 1
  208. [email protected]
  209. First Guy
  210. First Guy <[email protected]>
  211. : Test 28: Multiple forgotten format
  212. First Guy <[email protected]>, Second Guy <[email protected]>
  213. 2
  214. [email protected]
  215. First Guy
  216. [email protected]
  217. Second Guy
  218. First Guy <[email protected]>
  219. Second Guy <[email protected]>
  220. : Test 29: Interchangeable formats
  221. First Guy <[email protected]>, "Second Guy" <[email protected]>, [email protected]
  222. 3
  223. [email protected]
  224. First Guy
  225. [email protected]
  226. Second Guy
  227. [email protected]
  228. First Guy <[email protected]>
  229. Second Guy <[email protected]>
  230. [email protected]
  231. : Test 30 : Old, depraciated format - must never generate but must support for extraction
  232. "First Guy" [email protected]
  233. 1
  234. [email protected]
  235. First Guy
  236. First Guy <[email protected]>
  237. : Test 31 : Multiple old format
  238. "First Guy" [email protected], "Second guy" [email protected]
  239. 2
  240. [email protected]
  241. First Guy
  242. [email protected]
  243. Second guy
  244. First Guy <[email protected]>
  245. Second guy <[email protected]>
  246. : Test 32 : Interchangeable formats
  247. "First Guy" [email protected], "Second Guy" <[email protected]>, Third Guy <[email protected]>, [email protected], <[email protected]>
  248. 5
  249. [email protected]
  250. First Guy
  251. [email protected]
  252. Second Guy
  253. [email protected]
  254. Third Guy
  255. [email protected]
  256. [email protected]
  257. First Guy <[email protected]>
  258. Second Guy <[email protected]>
  259. Third Guy <[email protected]>
  260. [email protected]
  261. [email protected]
  262. : Test 33 : Spaces after email address when bracketed comment is removed
  263. [email protected] (John Doe)
  264. 1
  265. [email protected]
  266. [email protected]
  267. : Test 34 : Spaces before email address when bracketed comment is removed
  268. (John Doe) [email protected]
  269. 1
  270. [email protected]
  271. [email protected]
  272. : Test 35 : TIdEMailAddressItem.SetText - BUG
  273. SMS News Service<[email protected]>
  274. 1
  275. [email protected]
  276. SMS News Service
  277. SMS News Service <[email protected]>