runger_email_reply_trimmer 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +7 -0
  3. data/Gemfile +17 -0
  4. data/Gemfile.lock +72 -0
  5. data/LICENSE +9 -0
  6. data/README.md +21 -0
  7. data/Rakefile +17 -0
  8. data/bin/release +27 -0
  9. data/lib/runger_email_reply_trimmer/delimiter_matcher.rb +12 -0
  10. data/lib/runger_email_reply_trimmer/email_header_matcher.rb +72 -0
  11. data/lib/runger_email_reply_trimmer/embedded_email_matcher.rb +158 -0
  12. data/lib/runger_email_reply_trimmer/empty_line_matcher.rb +9 -0
  13. data/lib/runger_email_reply_trimmer/quote_matcher.rb +9 -0
  14. data/lib/runger_email_reply_trimmer/signature_matcher.rb +52 -0
  15. data/lib/runger_email_reply_trimmer/version.rb +5 -0
  16. data/lib/runger_email_reply_trimmer.rb +226 -0
  17. data/runger_email_reply_trimmer.gemspec +21 -0
  18. data/test/before/email_headers_1.txt +1 -0
  19. data/test/before/email_headers_2.txt +1 -0
  20. data/test/before/email_headers_3.txt +1 -0
  21. data/test/before/email_headers_4.txt +1 -0
  22. data/test/before/embedded_email_10.txt +25 -0
  23. data/test/before/embedded_email_german_3.txt +1 -0
  24. data/test/before/embedded_email_spanish_2.txt +1 -0
  25. data/test/before/forwarded_apple.txt +1 -0
  26. data/test/before/forwarded_gmail.txt +1 -0
  27. data/test/before/forwarded_message.txt +0 -0
  28. data/test/elided/delimiters.txt +10 -0
  29. data/test/elided/dual_embedded.txt +10 -0
  30. data/test/elided/email_headers_1.txt +14 -0
  31. data/test/elided/email_headers_2.txt +9 -0
  32. data/test/elided/email_headers_3.txt +16 -0
  33. data/test/elided/email_headers_4.txt +15 -0
  34. data/test/elided/email_headers_5.txt +23 -0
  35. data/test/elided/embedded_ception.txt +38 -0
  36. data/test/elided/embedded_email_1.txt +6 -0
  37. data/test/elided/embedded_email_10.txt +40 -0
  38. data/test/elided/embedded_email_11.txt +3 -0
  39. data/test/elided/embedded_email_12.txt +8 -0
  40. data/test/elided/embedded_email_13.txt +9 -0
  41. data/test/elided/embedded_email_14.txt +11 -0
  42. data/test/elided/embedded_email_15.txt +4 -0
  43. data/test/elided/embedded_email_16.txt +4 -0
  44. data/test/elided/embedded_email_17.txt +2 -0
  45. data/test/elided/embedded_email_18.txt +1 -0
  46. data/test/elided/embedded_email_19.txt +0 -0
  47. data/test/elided/embedded_email_2.txt +9 -0
  48. data/test/elided/embedded_email_3.txt +14 -0
  49. data/test/elided/embedded_email_4.txt +15 -0
  50. data/test/elided/embedded_email_5.txt +3 -0
  51. data/test/elided/embedded_email_6.txt +3 -0
  52. data/test/elided/embedded_email_7.txt +10 -0
  53. data/test/elided/embedded_email_8.txt +3 -0
  54. data/test/elided/embedded_email_9.txt +3 -0
  55. data/test/elided/embedded_email_chinese.txt +4 -0
  56. data/test/elided/embedded_email_dutch_1.txt +10 -0
  57. data/test/elided/embedded_email_dutch_2.txt +59 -0
  58. data/test/elided/embedded_email_french_1.txt +9 -0
  59. data/test/elided/embedded_email_french_2.txt +19 -0
  60. data/test/elided/embedded_email_german_1.txt +22 -0
  61. data/test/elided/embedded_email_german_2.txt +3 -0
  62. data/test/elided/embedded_email_german_3.txt +7 -0
  63. data/test/elided/embedded_email_german_4.txt +15 -0
  64. data/test/elided/embedded_email_german_5.txt +20 -0
  65. data/test/elided/embedded_email_german_6.txt +8 -0
  66. data/test/elided/embedded_email_italian.txt +28 -0
  67. data/test/elided/embedded_email_norwegian.txt +9 -0
  68. data/test/elided/embedded_email_polish_1.txt +32 -0
  69. data/test/elided/embedded_email_polish_2.txt +7 -0
  70. data/test/elided/embedded_email_portuguese.txt +14 -0
  71. data/test/elided/embedded_email_quote_text.txt +6 -0
  72. data/test/elided/embedded_email_russian_1.txt +25 -0
  73. data/test/elided/embedded_email_russian_2.txt +23 -0
  74. data/test/elided/embedded_email_spanish_1.txt +32 -0
  75. data/test/elided/embedded_email_spanish_2.txt +10 -0
  76. data/test/elided/embedded_email_swedish.txt +8 -0
  77. data/test/elided/embedded_email_ukrainian.txt +17 -0
  78. data/test/elided/forwarded_apple.txt +15 -0
  79. data/test/elided/forwarded_gmail.txt +15 -0
  80. data/test/elided/forwarded_message.txt +6 -0
  81. data/test/elided/normalize_line_endings.txt +0 -0
  82. data/test/elided/quote_and_text.txt +0 -0
  83. data/test/elided/quote_only.txt +0 -0
  84. data/test/elided/retains_spaces_and_formatting.txt +0 -0
  85. data/test/elided/signatures.txt +31 -0
  86. data/test/elided/spam_1.txt +75 -0
  87. data/test/elided/spam_2.txt +152 -0
  88. data/test/elided/strip.txt +0 -0
  89. data/test/elided/text_only.txt +0 -0
  90. data/test/elided/usenet.txt +7 -0
  91. data/test/emails/delimiters.txt +14 -0
  92. data/test/emails/dual_embedded.txt +13 -0
  93. data/test/emails/email_headers_1.txt +17 -0
  94. data/test/emails/email_headers_2.txt +10 -0
  95. data/test/emails/email_headers_3.txt +18 -0
  96. data/test/emails/email_headers_4.txt +17 -0
  97. data/test/emails/email_headers_5.txt +37 -0
  98. data/test/emails/embedded_ception.txt +47 -0
  99. data/test/emails/embedded_email_1.txt +8 -0
  100. data/test/emails/embedded_email_10.txt +42 -0
  101. data/test/emails/embedded_email_11.txt +5 -0
  102. data/test/emails/embedded_email_12.txt +18 -0
  103. data/test/emails/embedded_email_13.txt +14 -0
  104. data/test/emails/embedded_email_14.txt +16 -0
  105. data/test/emails/embedded_email_15.txt +9 -0
  106. data/test/emails/embedded_email_16.txt +16 -0
  107. data/test/emails/embedded_email_17.txt +38 -0
  108. data/test/emails/embedded_email_18.txt +7 -0
  109. data/test/emails/embedded_email_19.txt +13 -0
  110. data/test/emails/embedded_email_2.txt +16 -0
  111. data/test/emails/embedded_email_3.txt +24 -0
  112. data/test/emails/embedded_email_4.txt +19 -0
  113. data/test/emails/embedded_email_5.txt +5 -0
  114. data/test/emails/embedded_email_6.txt +11 -0
  115. data/test/emails/embedded_email_7.txt +20 -0
  116. data/test/emails/embedded_email_8.txt +5 -0
  117. data/test/emails/embedded_email_9.txt +5 -0
  118. data/test/emails/embedded_email_chinese.txt +7 -0
  119. data/test/emails/embedded_email_dutch_1.txt +13 -0
  120. data/test/emails/embedded_email_dutch_2.txt +62 -0
  121. data/test/emails/embedded_email_french_1.txt +12 -0
  122. data/test/emails/embedded_email_french_2.txt +21 -0
  123. data/test/emails/embedded_email_german_1.txt +26 -0
  124. data/test/emails/embedded_email_german_2.txt +6 -0
  125. data/test/emails/embedded_email_german_3.txt +10 -0
  126. data/test/emails/embedded_email_german_4.txt +18 -0
  127. data/test/emails/embedded_email_german_5.txt +23 -0
  128. data/test/emails/embedded_email_german_6.txt +14 -0
  129. data/test/emails/embedded_email_italian.txt +31 -0
  130. data/test/emails/embedded_email_norwegian.txt +11 -0
  131. data/test/emails/embedded_email_polish_1.txt +34 -0
  132. data/test/emails/embedded_email_polish_2.txt +11 -0
  133. data/test/emails/embedded_email_portuguese.txt +18 -0
  134. data/test/emails/embedded_email_quote_text.txt +10 -0
  135. data/test/emails/embedded_email_russian_1.txt +27 -0
  136. data/test/emails/embedded_email_russian_2.txt +26 -0
  137. data/test/emails/embedded_email_spanish_1.txt +41 -0
  138. data/test/emails/embedded_email_spanish_2.txt +12 -0
  139. data/test/emails/embedded_email_swedish.txt +20 -0
  140. data/test/emails/embedded_email_ukrainian.txt +19 -0
  141. data/test/emails/forwarded_apple.txt +17 -0
  142. data/test/emails/forwarded_gmail.txt +17 -0
  143. data/test/emails/forwarded_message.txt +9 -0
  144. data/test/emails/normalize_line_endings.txt +4 -0
  145. data/test/emails/quote_and_text.txt +3 -0
  146. data/test/emails/quote_only.txt +1 -0
  147. data/test/emails/retains_spaces_and_formatting.txt +14 -0
  148. data/test/emails/signatures.txt +33 -0
  149. data/test/emails/spam_1.txt +75 -0
  150. data/test/emails/spam_2.txt +174 -0
  151. data/test/emails/strip.txt +10 -0
  152. data/test/emails/text_only.txt +1 -0
  153. data/test/emails/usenet.txt +9 -0
  154. data/test/embedded/email_headers_1.txt +12 -0
  155. data/test/embedded/email_headers_2.txt +8 -0
  156. data/test/embedded/email_headers_3.txt +16 -0
  157. data/test/embedded/email_headers_4.txt +15 -0
  158. data/test/embedded/embedded_email_10.txt +15 -0
  159. data/test/embedded/embedded_email_german_3.txt +6 -0
  160. data/test/embedded/embedded_email_spanish_2.txt +9 -0
  161. data/test/embedded/forwarded_apple.txt +13 -0
  162. data/test/embedded/forwarded_gmail.txt +14 -0
  163. data/test/embedded/forwarded_message.txt +8 -0
  164. data/test/matchers/does_not_contain_embedded_email.txt +5 -0
  165. data/test/test_email_matcher.rb +17 -0
  166. data/test/test_email_reply_trimmer.rb +87 -0
  167. data/test/trimmed/delimiters.txt +3 -0
  168. data/test/trimmed/dual_embedded.txt +1 -0
  169. data/test/trimmed/email_headers_1.txt +1 -0
  170. data/test/trimmed/email_headers_2.txt +1 -0
  171. data/test/trimmed/email_headers_3.txt +1 -0
  172. data/test/trimmed/email_headers_4.txt +1 -0
  173. data/test/trimmed/email_headers_5.txt +11 -0
  174. data/test/trimmed/embedded_ception.txt +4 -0
  175. data/test/trimmed/embedded_email_1.txt +1 -0
  176. data/test/trimmed/embedded_email_10.txt +1 -0
  177. data/test/trimmed/embedded_email_11.txt +1 -0
  178. data/test/trimmed/embedded_email_12.txt +1 -0
  179. data/test/trimmed/embedded_email_13.txt +3 -0
  180. data/test/trimmed/embedded_email_14.txt +3 -0
  181. data/test/trimmed/embedded_email_15.txt +3 -0
  182. data/test/trimmed/embedded_email_16.txt +11 -0
  183. data/test/trimmed/embedded_email_17.txt +35 -0
  184. data/test/trimmed/embedded_email_18.txt +5 -0
  185. data/test/trimmed/embedded_email_19.txt +13 -0
  186. data/test/trimmed/embedded_email_2.txt +3 -0
  187. data/test/trimmed/embedded_email_3.txt +7 -0
  188. data/test/trimmed/embedded_email_4.txt +2 -0
  189. data/test/trimmed/embedded_email_5.txt +1 -0
  190. data/test/trimmed/embedded_email_6.txt +7 -0
  191. data/test/trimmed/embedded_email_7.txt +10 -0
  192. data/test/trimmed/embedded_email_8.txt +1 -0
  193. data/test/trimmed/embedded_email_9.txt +1 -0
  194. data/test/trimmed/embedded_email_chinese.txt +2 -0
  195. data/test/trimmed/embedded_email_dutch_1.txt +1 -0
  196. data/test/trimmed/embedded_email_dutch_2.txt +2 -0
  197. data/test/trimmed/embedded_email_french_1.txt +1 -0
  198. data/test/trimmed/embedded_email_french_2.txt +1 -0
  199. data/test/trimmed/embedded_email_german_1.txt +1 -0
  200. data/test/trimmed/embedded_email_german_2.txt +1 -0
  201. data/test/trimmed/embedded_email_german_3.txt +1 -0
  202. data/test/trimmed/embedded_email_german_4.txt +1 -0
  203. data/test/trimmed/embedded_email_german_5.txt +1 -0
  204. data/test/trimmed/embedded_email_german_6.txt +4 -0
  205. data/test/trimmed/embedded_email_italian.txt +1 -0
  206. data/test/trimmed/embedded_email_norwegian.txt +1 -0
  207. data/test/trimmed/embedded_email_polish_1.txt +1 -0
  208. data/test/trimmed/embedded_email_polish_2.txt +2 -0
  209. data/test/trimmed/embedded_email_portuguese.txt +2 -0
  210. data/test/trimmed/embedded_email_quote_text.txt +2 -0
  211. data/test/trimmed/embedded_email_russian_1.txt +1 -0
  212. data/test/trimmed/embedded_email_russian_2.txt +1 -0
  213. data/test/trimmed/embedded_email_spanish_1.txt +6 -0
  214. data/test/trimmed/embedded_email_spanish_2.txt +1 -0
  215. data/test/trimmed/embedded_email_swedish.txt +9 -0
  216. data/test/trimmed/embedded_email_ukrainian.txt +1 -0
  217. data/test/trimmed/forwarded_apple.txt +1 -0
  218. data/test/trimmed/forwarded_gmail.txt +1 -0
  219. data/test/trimmed/forwarded_message.txt +1 -0
  220. data/test/trimmed/normalize_line_endings.txt +4 -0
  221. data/test/trimmed/quote_and_text.txt +3 -0
  222. data/test/trimmed/quote_only.txt +1 -0
  223. data/test/trimmed/retains_spaces_and_formatting.txt +14 -0
  224. data/test/trimmed/signatures.txt +1 -0
  225. data/test/trimmed/spam_1.txt +0 -0
  226. data/test/trimmed/spam_2.txt +21 -0
  227. data/test/trimmed/strip.txt +1 -0
  228. data/test/trimmed/text_only.txt +1 -0
  229. data/test/trimmed/usenet.txt +1 -0
  230. metadata +275 -0
@@ -0,0 +1,152 @@
1
+ > On Thu, Apr 30, 2020 at 10:07 AM, "someone" <someone@example.com> wrote:
2
+ >
3
+ >> Hello world!
4
+ >>
5
+ >> On Thu, Apr 30, 2020 at 10:07 AM, "someone" <someone@example.com> wrote:
6
+ >>
7
+ >>> Hello world!
8
+ >>>
9
+ >>> On Thu, Apr 30, 2020 at 10:07 AM, "someone" <someone@example.com> wrote:
10
+ >>>
11
+ >>>> Hello world!
12
+ >>>>
13
+ >>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
14
+ >>>>
15
+ >>>>> Hello world!
16
+ >>>>>
17
+ >>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
18
+ >>>>>
19
+ >>>>>> Hello world!
20
+ >>>>>>
21
+ >>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
22
+ >>>>>>
23
+ >>>>>>> Hello world!
24
+ >>>>>>>
25
+ >>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
26
+ >>>>>>>
27
+ >>>>>>>> Hello world!
28
+ >>>>>>>>
29
+ >>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
30
+ >>>>>>>>
31
+ >>>>>>>>> Hello world!
32
+ >>>>>>>>>
33
+ >>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
34
+ >>>>>>>>>
35
+ >>>>>>>>>> Hello world!
36
+ >>>>>>>>>>
37
+ >>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
38
+ >>>>>>>>>>
39
+ >>>>>>>>>>> Hello world!
40
+ >>>>>>>>>>>
41
+ >>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
42
+ >>>>>>>>>>>
43
+ >>>>>>>>>>>> Hello world!
44
+ >>>>>>>>>>>>
45
+ >>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
46
+ >>>>>>>>>>>>
47
+ >>>>>>>>>>>>> Hello world!
48
+ >>>>>>>>>>>>>
49
+ >>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
50
+ >>>>>>>>>>>>>
51
+ >>>>>>>>>>>>>> Hello world!
52
+ >>>>>>>>>>>>>>
53
+ >>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
54
+ >>>>>>>>>>>>>>
55
+ >>>>>>>>>>>>>>> Hello world!
56
+ >>>>>>>>>>>>>>>
57
+ >>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
58
+ >>>>>>>>>>>>>>>
59
+ >>>>>>>>>>>>>>>> Hello world!
60
+ >>>>>>>>>>>>>>>>
61
+ >>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
62
+ >>>>>>>>>>>>>>>>
63
+ >>>>>>>>>>>>>>>>> Hello world!
64
+ >>>>>>>>>>>>>>>>>
65
+ >>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
66
+ >>>>>>>>>>>>>>>>>
67
+ >>>>>>>>>>>>>>>>>> Hello world!
68
+ >>>>>>>>>>>>>>>>>>
69
+ >>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
70
+ >>>>>>>>>>>>>>>>>>
71
+ >>>>>>>>>>>>>>>>>>> Hello world!
72
+ >>>>>>>>>>>>>>>>>>>
73
+ >>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
74
+ >>>>>>>>>>>>>>>>>>>
75
+ >>>>>>>>>>>>>>>>>>>> Hello world!
76
+ >>>>>>>>>>>>>>>>>>>>
77
+ >>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
78
+ >>>>>>>>>>>>>>>>>>>>
79
+ >>>>>>>>>>>>>>>>>>>>> Hello world!
80
+ >>>>>>>>>>>>>>>>>>>>>
81
+ >>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
82
+ >>>>>>>>>>>>>>>>>>>>>
83
+ >>>>>>>>>>>>>>>>>>>>>> Hello world!
84
+ >>>>>>>>>>>>>>>>>>>>>>
85
+ >>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
86
+ >>>>>>>>>>>>>>>>>>>>>>
87
+ >>>>>>>>>>>>>>>>>>>>>>> Hello world!
88
+ >>>>>>>>>>>>>>>>>>>>>>>
89
+ >>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
90
+ >>>>>>>>>>>>>>>>>>>>>>>
91
+ >>>>>>>>>>>>>>>>>>>>>>>> Hello world!
92
+ >>>>>>>>>>>>>>>>>>>>>>>>
93
+ >>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
94
+ >>>>>>>>>>>>>>>>>>>>>>>>
95
+ >>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
96
+ >>>>>>>>>>>>>>>>>>>>>>>>>
97
+ >>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
98
+ >>>>>>>>>>>>>>>>>>>>>>>>>
99
+ >>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
100
+ >>>>>>>>>>>>>>>>>>>>>>>>>>
101
+ >>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
102
+ >>>>>>>>>>>>>>>>>>>>>>>>>>
103
+ >>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
104
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>
105
+ >>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
106
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>
107
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
108
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>
109
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
110
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>
111
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
112
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
113
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
114
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
115
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
116
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
117
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
118
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
119
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
120
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
121
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
122
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
123
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
124
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
125
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
126
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
127
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
128
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
129
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
130
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
131
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
132
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
133
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
134
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
135
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
136
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
137
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
138
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
139
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
140
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
141
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
142
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
143
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
144
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
145
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
146
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
147
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
148
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
149
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" <someone@example.com> wrote:
150
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
151
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world!
152
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ --
2
+ Mit lieben Grüßen
3
+
4
+ John Doe
5
+ http://blog.john.doe
6
+ www.facebook.com/johndoe
7
+ Mobil: +12 345 6789 012
@@ -0,0 +1,14 @@
1
+ This is not a ---------- delimiter.
2
+
3
+ But there should be no delimiter after this line
4
+
5
+
6
+ --
7
+ ***
8
+ ####
9
+ ~~~~~
10
+ ======
11
+ _______
12
+ ++++++++
13
+
14
+ -------
@@ -0,0 +1,13 @@
1
+ This is the 3rd email.
2
+
3
+
4
+ On Mon, Feb 1, 2016 at 4:58 AM -0800, "Some One" <foo@bar.com> wrote:
5
+
6
+
7
+ This is the 2nd email.
8
+
9
+
10
+ On Sun, Jan 31, 2016 at 9:58 PM -0800, "Another One" <info@discourse.org> wrote:
11
+
12
+
13
+ This is the 1st email.
@@ -0,0 +1,17 @@
1
+ This is a reply from Outlook!
2
+
3
+
4
+ ------------------------------
5
+
6
+ *From:* Outlook user
7
+ *Sent:* 2016-01-27
8
+ *To:* info@discourse.org
9
+ *Subject:* Are you using Outlook?
10
+
11
+
12
+
13
+ Just some random text wich is part
14
+
15
+ of the embedded email...
16
+
17
+ Outlook user
@@ -0,0 +1,10 @@
1
+ This is a reply from Outlook!
2
+ ________________________________________
3
+ From: Discourse <info@discourse.org.
4
+ Sent: Thursday, 28 January 2016 8:16 p.m.
5
+ To: Someone
6
+ Subject: (no subject)
7
+
8
+ Lorem ipsum.
9
+
10
+ Ipsor dolor sum met.
@@ -0,0 +1,18 @@
1
+ This is the actual reply.
2
+
3
+ From: Some One <discuss@foo.bar<mailto:discuss@foo.bar>>
4
+ Reply-To: "For.bar" <reply+275e18486b01289e3250bebe85ef6496@members.foo.bar<mailto:reply+275e18486b01289e3250bebe85ef6496@members.foo.bar>>
5
+ Date: Monday, February 8, 2016 11:44 AM
6
+ To: Discourse <discourse@discourse.org<mailto:discourse@discourse.org>>
7
+ Subject: VIS
8
+
9
+
10
+ Here's an email with some very important stuff.
11
+
12
+
13
+ ________________________________
14
+ Reply here<http://foo.bar> or hit reply from your inbox to help members by sharing your ideas.
15
+ Mute this topic<http://42.wat> to stop getting updates, we'll send you the next one.
16
+
17
+
18
+ DO NOT FORWARD THIS EMAIL!
@@ -0,0 +1,17 @@
1
+ test
2
+
3
+ Da: Sally54721
4
+ Risposta: Testy McTesterson / Test
5
+ Data: giovedì 8 ottobre 2015 15:26
6
+ A: Testy McTesterson
7
+ Oggetto: Test | Issue (#3)
8
+
9
+ [@example](http://example.com/u/example)
10
+
11
+
12
+ Reply to this email directly or [view it on GitLab](http://git.example.com/example/Test/issues/3). {"@context":"[http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View](http://schema.org%22,%22@type%22:%22EmailMessage%22,%22action%22:%7B%22@type%22:%22ViewAction%22,%22name%22:%22View) Issue","url":"[http://git.example.com/example/Test/issues/3"}](http://git.example.com/example/Test/issues/3%22%7D)} You're receiving this notification because you are a member of the Testy McTesterson / Test project team.
13
+
14
+ --
15
+ Questo messaggio e' stato analizzato con Libra ESVA ed e' risultato non infetto.
16
+ [Clicca qui per segnalarlo come spam.](http://esva.example.com/cgi-bin/learn-msg.cgi?id=1234567890.ABCDEF)
17
+ [Clicca qui per metterlo in blacklist](http://esva.example.com/cgi-bin/learn-msg.cgi?blacklist=1&id=1234567890.ABCDEF)
@@ -0,0 +1,37 @@
1
+ Hi Erlend,
2
+
3
+ I don’t know what a “legally recognised educational institution” means for you.
4
+
5
+ We’re based in Sweden and we provide education to our people across the globe.
6
+
7
+ We want to try Discourse in small scale first to see it will add value to our communities.
8
+
9
+ Best regards,
10
+
11
+ //Jef
12
+
13
+
14
+
15
+ From: Erlend Sogge Heggen <meta@discoursemail.com>
16
+ Reply-To: Erlend Sogge Heggen <meta+abcd@discoursemail.com>
17
+ Date: Wednesday, 5 April 2017 at 17:01
18
+ To: Jef <jef@bar.com>
19
+ Subject: [Discourse Meta] [PM] Discourse for Communities of Practice, educational organisation
20
+
21
+
22
+ erlend_sh<https://meta.discourse.org/u/erlend_sh> Erlend Sogge Heggen<https://meta.discourse.org/u/erlend_sh> Team
23
+ April 5
24
+
25
+
26
+
27
+ Hi Jef,
28
+
29
+ Is your University a legally recognised educational institution? Otherwise I'm afraid you're not eligible for this discount.
30
+
31
+ Sincerely,
32
+
33
+ Erlend
34
+
35
+
36
+
37
+ This email message and any attachments may contain confidential information and may be privileged. If you are not the intended recipient or otherwise not authorized to receive this message, you are prohibited to use, copy, disclose or take any action based on this email or any information contained herein. If you are not the intended recipient, please advise the sender immediately by replying to this email and permanently delete this message and any attachments from your system.
@@ -0,0 +1,47 @@
1
+ This is the reply.
2
+
3
+ Thanks,
4
+ Some One
5
+
6
+ On Mon, Feb 1, 2016 at 6:32 PM, Jeff Atwood <info@discourse.org>
7
+ wrote:
8
+
9
+ > This is Jeff's reply.
10
+ >
11
+ > On Mon, Feb 1, 2016 at 7:50 AM, Some One <foo@bar.com
12
+ > > wrote:
13
+ >
14
+ >> Great!
15
+ >>
16
+ >> Many thanks.
17
+ >>
18
+ >> ~s
19
+ >>
20
+ >> On Mon, Feb 1, 2016 at 5:05 AM Discourse Team <team@discourse.org> wrote:
21
+ >>
22
+ >>> WAT?
23
+ >>>
24
+ >>> On Wed, Jan 27, 2016 at 10:48 PM, Some One <
25
+ >>> foo@bar.com> wrote:
26
+ >>>
27
+ >>>> Hi Team,
28
+ >>>>
29
+ >>>> How is it doing?
30
+ >>>>
31
+ >>>> Some One
32
+ >>>>
33
+ >>>> On Wed, Jan 27, 2016 at 10:10 AM Discourse Team <team@discourse.org>
34
+ >>>> wrote:
35
+ >>>>
36
+ >>>>> Hello :waves_hand:
37
+ >>>>>
38
+ >>>>
39
+ >>>
40
+ >
41
+
42
+
43
+ --
44
+ Some One
45
+ Community Manager
46
+ foo@bar.com
47
+ (123) 456-7890
@@ -0,0 +1,8 @@
1
+ This is before the embedded email.
2
+
3
+ On Wed, Sep 25, 2013, at 03:57 PM, richard_clark wrote:
4
+
5
+ Richard> This is the embedded email
6
+
7
+ This is after the embedded email and will not show up because 99% of the times
8
+ this is the signature...
@@ -0,0 +1,42 @@
1
+ Thank you.
2
+
3
+ Sent from Outlook Mobile<https://foo.bar>
4
+
5
+
6
+
7
+
8
+ On Sun, Feb 7, 2016 at 12:12 AM -0800, "Arpit Jalan" <arpit.jalan@discourse.org<mailto:arpit.jalan@discourse.org>> wrote:
9
+
10
+ Hi Some,
11
+
12
+ https://meta.discourse.org is now running on latest Discourse version!
13
+
14
+ Regards,
15
+ Arpit
16
+
17
+ On Fri, Feb 5, 2016 at 10:43 AM Arpit Jalan <arpit.jalan@discourse.org<mailto:arpit.jalan@discourse.org>> wrote:
18
+ Okay, sure!
19
+
20
+ Arpit
21
+ On Fri, 5 Feb 2016 at 10:42, Some One <foo@bar.com<mailto:foo@bar.com>> wrote:
22
+ Arpit,
23
+ Yes that sounds good.
24
+
25
+ Sent from Outlook Mobile<https://foo.bar>
26
+
27
+ _____________________________
28
+ From: Arpit Jalan <arpit.jalan@discourse.org<mailto:arpit.jalan@discourse.org>>
29
+ Sent: Thursday, February 4, 2016 10:05 AM
30
+ Subject: Meta Discourse update
31
+ To: Some One <foo@bar.com<mailto:foo@bar.com>>, Discourse Team <team@discourse.org<mailto:team@discourse.org>>
32
+
33
+
34
+
35
+ Hi Some One,
36
+
37
+ Time to update meta to the latest Discourse version!
38
+
39
+ Do you want me to take care of it?
40
+
41
+ Regards,
42
+ Arpit
@@ -0,0 +1,5 @@
1
+ Before
2
+
3
+ 2016-03-03 17:21 GMT+01:00 Some One
4
+
5
+ After
@@ -0,0 +1,18 @@
1
+ One 1
2
+
3
+ On Thu, 31 Mar 2016 at 11:16 Some One
4
+
5
+ <
6
+ mailto:Some One <some.one@foo.bar>
7
+ > wrote:
8
+
9
+
10
+ Two 2
11
+
12
+ On Thu, 31 Mar 2016 at 10:05 Jeff Atwood
13
+
14
+ <
15
+ mailto:Jeff Atwood <team@discourse.org>
16
+ > wrote:
17
+
18
+ Three 3
@@ -0,0 +1,14 @@
1
+ yes we're fine
2
+
3
+ thanks
4
+
5
+
6
+ At 6/16/2016 08:32 PM, you wrote:
7
+ ><https://meta.discourse.org/users/codinghorror>codinghorror
8
+ ><https://meta.discourse.org/users/codinghorror>Jeff Atwood co-founder
9
+ >June 17
10
+ >
11
+ >Sorry I got a little mixed up with all the incoming replies. Are you
12
+ >able to log in?
13
+ >
14
+ >Use your email address and "forgot password" if you need it reset.
@@ -0,0 +1,16 @@
1
+ I just saw the standard plan has the slack integration.
2
+
3
+ Thank you!
4
+
5
+ 2016-10-24 15:36 GMT+02:00 Foo bar <
6
+ info@foo.bar>:
7
+
8
+ > Thank you so much Erlend, very thanks!
9
+ >
10
+ > 2016-10-24 15:03 GMT+02:00 Erlend Sogge Heggen <meta@discoursemail.com>:
11
+ >
12
+ >> erlend_sh <https://meta.discourse.org/users/erlend_sh> Erlend Sogge
13
+ >> Heggen <https://meta.discourse.org/users/erlend_sh> team
14
+ >> October 24
15
+ >>
16
+ >> I received your application and I've replied with setup instructions.
@@ -0,0 +1,9 @@
1
+ [message body]
2
+
3
+ / Greetings
4
+
5
+ 2017-02-05 13:29 GMT+02:00 Very long author name <
6
+ notifications@forum.some-discourse-host.local>:
7
+
8
+ > [Original Messages is quoted here]
9
+ > [...]
@@ -0,0 +1,16 @@
1
+ > From: "Albert Wagner" <alwagner@tcac.net>
2
+ >
3
+ > > Some guy at ibraheem@localhost(?) needs to be unsubscribed. I
4
+ > > keep getting bounces from his ISP everytime I post. Surely,
5
+ > > everyone else is getting the same?
6
+ >
7
+ > Surely it doesn't need to be said anymore, but I *still* am.
8
+ > What's happening with this?
9
+
10
+ Yep, me too, although I bet due to RubyConf/OOPSLA, it may be a little
11
+ longer yet...
12
+
13
+ --
14
+ Eric Hodel - drbrain@segment7.net - http://segment7.net
15
+ All messages signed with fingerprint:
16
+ FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
@@ -0,0 +1,38 @@
1
+ On 15 May 2017 19:32, "Nomadic Sprite" <nomadic.sprite01@gmail.com> wrote:
2
+
3
+ The intent was to return nil when the first value was nil.
4
+ That was the op's issue.
5
+ If one of the values was nil, she/he wanted nil.
6
+
7
+ Nil && anything_else will always return nil, and I will not evaluate the
8
+ second clause.
9
+
10
+ On 8 May 2017 6:51 pm, "Andy Jones" <Andy.Jones@jameshall.co.uk> wrote:
11
+
12
+ > >>>>>>>>
13
+ > It should be:
14
+ > 2.0 && 2.0 + 12.0
15
+ > <<<<<<<<<
16
+ >
17
+ > Ah! Yes, that works.
18
+ >
19
+ >
20
+ People are intent on not understanding, aren't they.
21
+
22
+ def nil_add_12 f
23
+ f && f + 12.0
24
+ end
25
+
26
+ Generalised to two parameters:
27
+
28
+ def nil_add a, b
29
+ a && b && a + b
30
+ end
31
+
32
+ The only quirk is the way they handle `false`.
33
+
34
+ This is not tested, but it may be possible to do this, too:
35
+
36
+ f&.+ b
37
+
38
+ Cheers
@@ -0,0 +1,7 @@
1
+ On 8 May 2017 17:34, "Andy Jones" <Andy.Jones@jameshall.co.uk> wrote:
2
+
3
+ nil && 2.0 + 12.0
4
+
5
+ It should be:
6
+
7
+ 2.0 && 2.0 + 12.0
@@ -0,0 +1,13 @@
1
+ I had a really hard time with the official guide, so when I finally
2
+ figured it out, I wrote one of my own:
3
+
4
+
5
+ http://ryanlue.com/posts/2017-02-18-how-to-publish-a-gem
6
+
7
+
8
+
9
+ Let me know if you like it (or if you don't) – any feedback is highly
10
+ appreciated!
11
+
12
+
13
+ —Ryan
@@ -0,0 +1,16 @@
1
+ I have checked the available documentation/links to find out the end points. If there are some other endpoints, can you please tell the endpoints
2
+
3
+ Best Regards
4
+
5
+
6
+
7
+
8
+ ---- On Tue, 22 Dec 2015 14:17:36 +0530 Sam Saffron&lt;info@discourse.org&gt; wrote ----
9
+
10
+
11
+ sam Sam Saffron co-founder
12
+ December 22
13
+ You are not using the right endpoint, go to user profile / badges, have a look at dev tools to see what it calls
14
+ There is a discrete endpoint to get all the badges a user has
15
+
16
+ To respond, reply to this email or visit the topic.
@@ -0,0 +1,24 @@
1
+ Sure, [Bitnami](http://bitnami.com/stack/discourse) supports EC2 and there
2
+ are several topics here about it.
3
+
4
+ Our [official install guide](
5
+ https://github.com/discourse/discourse/blob/master/docs/INSTALL-ubuntu.md)
6
+ also works great on an Amazon EC2 provisioned virtual machine with very
7
+ little change.
8
+
9
+
10
+ On Thu, Jun 20, 2013 at 4:18 PM, matt2 via Discourse Meta <
11
+ info@discourse.org> wrote:
12
+
13
+ > matt2 posted in 'Discourse on Ubuntu: Video Walkthrough' on Discourse Meta:
14
+ > ------------------------------
15
+ >
16
+ > Has anyone tried on AWS? a public AMI would be awesome.
17
+ > ------------------------------
18
+ >
19
+ > Please visit this link to respond:
20
+ > http://meta.discourse.org/t/discourse-on-ubuntu-video-walkthrough/7478/4
21
+ >
22
+ > To unsubscribe from these emails, visit your user preferences<http://meta.discourse.org/user_preferences>
23
+ > .
24
+ >
@@ -0,0 +1,19 @@
1
+ If I do exactly that, then the test group won't be saved after a refresh of
2
+ the page.
3
+
4
+
5
+ 2013/7/20 sam via Discourse Meta <info@discourse.org>
6
+
7
+ | sam replied to your post in 'Unable to create group' on Discourse Meta:
8
+ | ------------------------------
9
+ |
10
+ | Is this an error handling thing, if you name the group "test" and only
11
+ | place yourself in it, does it persist?
12
+ | ------------------------------
13
+ |
14
+ | To respond, reply to this email or visit
15
+ | http://meta.discourse.org/t/unable-to-create-group/8198/6 in your browser.
16
+ |
17
+ | To unsubscribe from these emails, visit your user preferences<http://meta.discourse.org/user_preferences>
18
+ | .
19
+ |
@@ -0,0 +1,5 @@
1
+ I am testing the SOMEONE_EMAIL_WROTE_REGEX regular expression.
2
+
3
+ Some One <info@discourse.org> wrote:
4
+
5
+ Something that will be considered as the embedded email.
@@ -0,0 +1,11 @@
1
+ Ensuring that ON_DATE_SOMEONE_WROTE_REGEXES is not greedy.
2
+
3
+ On this day
4
+
5
+ I wrote something
6
+
7
+ which was very interesting.
8
+
9
+ On 28 Jan 2016, at 19:04, Some One wrote:
10
+
11
+ > Did you write something interesting?