lp_email_reply_parser 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/LICENSE +22 -0
  2. data/README.md +68 -0
  3. data/Rakefile +135 -0
  4. data/lib/email_reply_parser.rb +448 -0
  5. data/lp_email_reply_parser.gemspec +77 -0
  6. data/test/email_reply_parser_test.rb +431 -0
  7. data/test/emails/correct_sig.txt +4 -0
  8. data/test/emails/email_1_1.txt +13 -0
  9. data/test/emails/email_1_2.txt +51 -0
  10. data/test/emails/email_1_3.txt +55 -0
  11. data/test/emails/email_1_4.txt +5 -0
  12. data/test/emails/email_1_5.txt +15 -0
  13. data/test/emails/email_1_6.txt +15 -0
  14. data/test/emails/email_1_7.txt +12 -0
  15. data/test/emails/email_1_8.txt +6 -0
  16. data/test/emails/email_1_9.txt +9 -0
  17. data/test/emails/email_2_1.txt +25 -0
  18. data/test/emails/email_2_2.txt +10 -0
  19. data/test/emails/email_2_3.txt +14 -0
  20. data/test/emails/email_2_4.txt +14 -0
  21. data/test/emails/email_2_5.txt +15 -0
  22. data/test/emails/email_2_6.txt +11 -0
  23. data/test/emails/email_2_7.txt +5 -0
  24. data/test/emails/email_2_8.txt +4 -0
  25. data/test/emails/email_2_9.txt +9 -0
  26. data/test/emails/email_2nd_paragraph_starting_with_on.txt +12 -0
  27. data/test/emails/email_BlackBerry.txt +3 -0
  28. data/test/emails/email_bullets.txt +22 -0
  29. data/test/emails/email_from_address_in_quote_header.txt +12 -0
  30. data/test/emails/email_from_name_in_quote_header.txt +12 -0
  31. data/test/emails/email_hyphens.txt +5 -0
  32. data/test/emails/email_iPhone.txt +3 -0
  33. data/test/emails/email_mentions_own_email_address.txt +6 -0
  34. data/test/emails/email_mentions_own_name.txt +6 -0
  35. data/test/emails/email_multi_word_sent_from_my_mobile_device.txt +3 -0
  36. data/test/emails/email_multiline_quote_header_es_mx.txt +8 -0
  37. data/test/emails/email_multiline_quote_header_fr.txt +8 -0
  38. data/test/emails/email_multiline_quote_header_from_first.txt +11 -0
  39. data/test/emails/email_multiline_quote_header_from_replyto_date_to_subject.txt +12 -0
  40. data/test/emails/email_multiline_quote_header_from_to_date_subject.txt +11 -0
  41. data/test/emails/email_multiline_quote_header_none.txt +11 -0
  42. data/test/emails/email_multiline_quote_header_pt_br.txt +8 -0
  43. data/test/emails/email_multiline_quote_header_with_asterisks.txt +21 -0
  44. data/test/emails/email_multiline_quote_header_with_cc.txt +9 -0
  45. data/test/emails/email_multiline_quote_header_with_multiline_headers.txt +14 -0
  46. data/test/emails/email_no_signature_deliminator.txt +7 -0
  47. data/test/emails/email_no_signature_deliminator_adds_a_middle_initial.txt +7 -0
  48. data/test/emails/email_one_is_not_on.txt +10 -0
  49. data/test/emails/email_sent_from_my_not_signature.txt +3 -0
  50. data/test/emails/email_was_showing_as_nothing_visible.txt +13 -0
  51. metadata +143 -0
@@ -0,0 +1,8 @@
1
+ Foo!
2
+
3
+ De: john@example.com
4
+ A: shelly@example.com
5
+ Date: 01/02/2013 05:04 p.m.
6
+ Objet: Requerimiento #12345
7
+
8
+ Thank you for recently participating in our class. We're interested in feedback. Please reply to this email.
@@ -0,0 +1,11 @@
1
+ I have gained valuable experience from working with students from other cultures. They bring a significantly different perspective to the work we do. I have also had the opportunity to practice making myself very clear in discussion, so that everyone understands. I've also seen how different our culture is to them, in their reactions to what I think is a normal approach to assignments, and to life in general.
2
+
3
+ From: john@example.com
4
+ Sent: Tue, 2 Oct 2012 02:35:10 +0000
5
+ To: shelly@example.com
6
+ Subject: Tell us what you learned.
7
+
8
+
9
+
10
+
11
+ Thank you for recently participating in our class. We're interested in feedback. Please reply to this email.
@@ -0,0 +1,12 @@
1
+ Foo!
2
+
3
+ From: john@example.com
4
+ Reply-To: john@example.com
5
+ Sent: Tue, 2 Oct 2012 02:35:10 +0000
6
+ To: shelly@example.com
7
+ Subject: Tell us what you learned.
8
+
9
+
10
+
11
+
12
+ Thank you for recently participating in our class. We're interested in feedback. Please reply to this email.
@@ -0,0 +1,11 @@
1
+ Foo!
2
+
3
+ From: john@example.com
4
+ To: shelly@example.com
5
+ Date: Tue, 2 Oct 2012 02:35:10 +0000
6
+ Subject: Tell us what you learned.
7
+
8
+
9
+
10
+
11
+ Thank you for recently participating in our class. We're interested in feedback. Please reply to this email.
@@ -0,0 +1,11 @@
1
+ Foo
2
+
3
+ De: john@example.com
4
+ Para: shelly@example.com
5
+ NotExists: hello
6
+ De: john@example.com
7
+ Para: shelly@example.com
8
+ Fecha: 01/02/2013 05:04 p.m.
9
+ Asunto: Requerimiento #12345
10
+
11
+ THE END!
@@ -0,0 +1,8 @@
1
+ Foo-pt-br
2
+
3
+ De: john@example.com
4
+ Enviada em: sexta-feira, 27 de julho de 2012 15:09
5
+ Para: shelly@example.com
6
+ Assunto: Tell us what you learned.
7
+
8
+ Thank you for recently participating in our class. We're interested in feedback. Please reply to this email.
@@ -0,0 +1,21 @@
1
+ Outlook with a reply
2
+
3
+ *From:* Google Apps Sync Team [mailto:mail-noreply@google.com]
4
+ *Sent:* Thursday, February 09, 2012 1:36 PM
5
+ *To:* jow@xxxx.com
6
+ *Subject:* Google Apps Sync was updated!
7
+
8
+
9
+ Dear Google Apps Sync user,
10
+
11
+ Google Apps Sync for Microsoft Outlook® was recently updated. Your computer
12
+ now has the latest version (version 2.5). This release includes bug fixes
13
+ to improve product reliability. For more information about these and other
14
+ changes, please see the help article here:
15
+
16
+ http://www.google.com/support/a/bin/answer.py?answer=153463
17
+
18
+ Sincerely,
19
+
20
+ The Google Apps Sync Team.
21
+
@@ -0,0 +1,9 @@
1
+ Foo
2
+
3
+ De: john@example.com
4
+ Para: shelly@example.com
5
+ cc: esther@example.com
6
+ Fecha: 01/02/2013 05:04 p.m.
7
+ Asunto: Requerimiento #12345
8
+
9
+ Thank you for recently participating in our class. We're interested in feedback. Please reply to this email.
@@ -0,0 +1,14 @@
1
+ Foo
2
+
3
+ Subject: [ERROR] Example unavailable:
4
+ (ExampleClassName::SomeError) "Etiam dignissim imperdiet metus.
5
+ error, unexpected $duh near 't'"
6
+ Date: Fri, 01 Feb 2013 07:50:06 +0000
7
+ cc: esther@example.com
8
+ mathias@example.com
9
+ ok@example.com
10
+ From: Application Error <noreply@example.com>
11
+ Reply-To: Example <noreply@example.com>
12
+ To: alert@example.com
13
+
14
+ Thank you for recently participating in our class. We're interested in feedback. Please reply to this email.
@@ -0,0 +1,7 @@
1
+ I don't like putting any delimiator in my signature because I think that is cool.
2
+
3
+ Really it is.
4
+
5
+ Jim Smith | Enrollment Manager
6
+ XYZ Corp
7
+
@@ -0,0 +1,7 @@
1
+ I don't like putting any delimiator in my signature because I think that is cool.
2
+
3
+ Really it is.
4
+
5
+ Jim P. Smith | Enrollment Manager
6
+ XYZ Corp
7
+
@@ -0,0 +1,10 @@
1
+ Thank, this is really helpful.
2
+
3
+ One outstanding question I had:
4
+
5
+ Locally (on development), when I run...
6
+
7
+ On Oct 1, 2012, at 11:55 PM, Dave Tapley wrote:
8
+
9
+ > The good news is that I've found a much better query for lastLocation.
10
+ >
@@ -0,0 +1,3 @@
1
+ Here is another email
2
+
3
+ Sent from my desk, is much easier then my mobile phone.
@@ -0,0 +1,13 @@
1
+ On Friday, one achievement I had was learning a new technology that allows us
2
+ to keep UI elements and events separated from the software on the
3
+ server side, which should allow for more flexible UI code and
4
+ decreased chances of code becoming a swarm of angry hornets. I've
5
+ been transparent about the initial increased development time while
6
+ learning the technology.
7
+
8
+ On Wed, Apr 4, 2012 at 9:32 AM, Bob Jones <bjones@gmail.com> wrote:
9
+ > We are still very interested in achievements you’ve had from participating
10
+ > in our initiative. When you have a chance, please reply to this
11
+ > email and describe what you have done.
12
+ >
13
+
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lp_email_reply_parser
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.6'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Rick Olson
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-02 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: EmailReplyParser is a small library to parse plain text email content
15
+ to return only the reply.
16
+ email: technoweenie@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files:
20
+ - README.md
21
+ - LICENSE
22
+ files:
23
+ - lib/email_reply_parser.rb
24
+ - LICENSE
25
+ - README.md
26
+ - Rakefile
27
+ - lp_email_reply_parser.gemspec
28
+ - test/email_reply_parser_test.rb
29
+ - test/emails/correct_sig.txt
30
+ - test/emails/email_1_1.txt
31
+ - test/emails/email_1_2.txt
32
+ - test/emails/email_1_3.txt
33
+ - test/emails/email_1_4.txt
34
+ - test/emails/email_1_5.txt
35
+ - test/emails/email_1_6.txt
36
+ - test/emails/email_1_7.txt
37
+ - test/emails/email_1_8.txt
38
+ - test/emails/email_1_9.txt
39
+ - test/emails/email_2_1.txt
40
+ - test/emails/email_2_2.txt
41
+ - test/emails/email_2_3.txt
42
+ - test/emails/email_2_4.txt
43
+ - test/emails/email_2_5.txt
44
+ - test/emails/email_2_6.txt
45
+ - test/emails/email_2_7.txt
46
+ - test/emails/email_2_8.txt
47
+ - test/emails/email_2_9.txt
48
+ - test/emails/email_2nd_paragraph_starting_with_on.txt
49
+ - test/emails/email_BlackBerry.txt
50
+ - test/emails/email_bullets.txt
51
+ - test/emails/email_from_address_in_quote_header.txt
52
+ - test/emails/email_from_name_in_quote_header.txt
53
+ - test/emails/email_hyphens.txt
54
+ - test/emails/email_iPhone.txt
55
+ - test/emails/email_mentions_own_email_address.txt
56
+ - test/emails/email_mentions_own_name.txt
57
+ - test/emails/email_multi_word_sent_from_my_mobile_device.txt
58
+ - test/emails/email_multiline_quote_header_es_mx.txt
59
+ - test/emails/email_multiline_quote_header_fr.txt
60
+ - test/emails/email_multiline_quote_header_from_first.txt
61
+ - test/emails/email_multiline_quote_header_from_replyto_date_to_subject.txt
62
+ - test/emails/email_multiline_quote_header_from_to_date_subject.txt
63
+ - test/emails/email_multiline_quote_header_none.txt
64
+ - test/emails/email_multiline_quote_header_pt_br.txt
65
+ - test/emails/email_multiline_quote_header_with_asterisks.txt
66
+ - test/emails/email_multiline_quote_header_with_cc.txt
67
+ - test/emails/email_multiline_quote_header_with_multiline_headers.txt
68
+ - test/emails/email_no_signature_deliminator.txt
69
+ - test/emails/email_no_signature_deliminator_adds_a_middle_initial.txt
70
+ - test/emails/email_one_is_not_on.txt
71
+ - test/emails/email_sent_from_my_not_signature.txt
72
+ - test/emails/email_was_showing_as_nothing_visible.txt
73
+ homepage: http://github.com/github/email_reply_parser
74
+ licenses: []
75
+ post_install_message:
76
+ rdoc_options:
77
+ - --charset=UTF-8
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubyforge_project: email_reply_parser
94
+ rubygems_version: 1.8.25
95
+ signing_key:
96
+ specification_version: 2
97
+ summary: Email Reply Parser
98
+ test_files:
99
+ - test/email_reply_parser_test.rb
100
+ - test/emails/correct_sig.txt
101
+ - test/emails/email_1_1.txt
102
+ - test/emails/email_1_2.txt
103
+ - test/emails/email_1_3.txt
104
+ - test/emails/email_1_4.txt
105
+ - test/emails/email_1_5.txt
106
+ - test/emails/email_1_6.txt
107
+ - test/emails/email_1_7.txt
108
+ - test/emails/email_1_8.txt
109
+ - test/emails/email_1_9.txt
110
+ - test/emails/email_2_1.txt
111
+ - test/emails/email_2_2.txt
112
+ - test/emails/email_2_3.txt
113
+ - test/emails/email_2_4.txt
114
+ - test/emails/email_2_5.txt
115
+ - test/emails/email_2_6.txt
116
+ - test/emails/email_2_7.txt
117
+ - test/emails/email_2_8.txt
118
+ - test/emails/email_2_9.txt
119
+ - test/emails/email_2nd_paragraph_starting_with_on.txt
120
+ - test/emails/email_BlackBerry.txt
121
+ - test/emails/email_bullets.txt
122
+ - test/emails/email_from_address_in_quote_header.txt
123
+ - test/emails/email_from_name_in_quote_header.txt
124
+ - test/emails/email_hyphens.txt
125
+ - test/emails/email_iPhone.txt
126
+ - test/emails/email_mentions_own_email_address.txt
127
+ - test/emails/email_mentions_own_name.txt
128
+ - test/emails/email_multi_word_sent_from_my_mobile_device.txt
129
+ - test/emails/email_multiline_quote_header_es_mx.txt
130
+ - test/emails/email_multiline_quote_header_fr.txt
131
+ - test/emails/email_multiline_quote_header_from_first.txt
132
+ - test/emails/email_multiline_quote_header_from_replyto_date_to_subject.txt
133
+ - test/emails/email_multiline_quote_header_from_to_date_subject.txt
134
+ - test/emails/email_multiline_quote_header_none.txt
135
+ - test/emails/email_multiline_quote_header_pt_br.txt
136
+ - test/emails/email_multiline_quote_header_with_asterisks.txt
137
+ - test/emails/email_multiline_quote_header_with_cc.txt
138
+ - test/emails/email_multiline_quote_header_with_multiline_headers.txt
139
+ - test/emails/email_no_signature_deliminator.txt
140
+ - test/emails/email_no_signature_deliminator_adds_a_middle_initial.txt
141
+ - test/emails/email_one_is_not_on.txt
142
+ - test/emails/email_sent_from_my_not_signature.txt
143
+ - test/emails/email_was_showing_as_nothing_visible.txt