email_reply_parser-discourse 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +68 -0
  4. data/Rakefile +135 -0
  5. data/email_reply_parser.gemspec +122 -0
  6. data/lib/email_reply_parser.rb +456 -0
  7. data/test/email_reply_parser_test.rb +431 -0
  8. data/test/emails/correct_sig.txt +4 -0
  9. data/test/emails/email_1_1.txt +13 -0
  10. data/test/emails/email_1_2.txt +51 -0
  11. data/test/emails/email_1_3.txt +55 -0
  12. data/test/emails/email_1_4.txt +5 -0
  13. data/test/emails/email_1_5.txt +15 -0
  14. data/test/emails/email_1_6.txt +15 -0
  15. data/test/emails/email_1_7.txt +12 -0
  16. data/test/emails/email_1_8.txt +6 -0
  17. data/test/emails/email_1_9.txt +9 -0
  18. data/test/emails/email_2_1.txt +25 -0
  19. data/test/emails/email_2_2.txt +10 -0
  20. data/test/emails/email_2_3.txt +14 -0
  21. data/test/emails/email_2_4.txt +14 -0
  22. data/test/emails/email_2_5.txt +15 -0
  23. data/test/emails/email_2_6.txt +11 -0
  24. data/test/emails/email_2_7.txt +5 -0
  25. data/test/emails/email_2_8.txt +4 -0
  26. data/test/emails/email_2_9.txt +9 -0
  27. data/test/emails/email_2nd_paragraph_starting_with_on.txt +12 -0
  28. data/test/emails/email_BlackBerry.txt +3 -0
  29. data/test/emails/email_bullets.txt +22 -0
  30. data/test/emails/email_from_address_in_quote_header.txt +12 -0
  31. data/test/emails/email_from_name_in_quote_header.txt +12 -0
  32. data/test/emails/email_hyphens.txt +5 -0
  33. data/test/emails/email_iPhone.txt +3 -0
  34. data/test/emails/email_mentions_own_email_address.txt +6 -0
  35. data/test/emails/email_mentions_own_name.txt +6 -0
  36. data/test/emails/email_multi_word_sent_from_my_mobile_device.txt +3 -0
  37. data/test/emails/email_multiline_quote_header_es_mx.txt +8 -0
  38. data/test/emails/email_multiline_quote_header_fr.txt +8 -0
  39. data/test/emails/email_multiline_quote_header_from_first.txt +11 -0
  40. data/test/emails/email_multiline_quote_header_from_replyto_date_to_subject.txt +12 -0
  41. data/test/emails/email_multiline_quote_header_from_to_date_subject.txt +11 -0
  42. data/test/emails/email_multiline_quote_header_none.txt +11 -0
  43. data/test/emails/email_multiline_quote_header_pt_br.txt +8 -0
  44. data/test/emails/email_multiline_quote_header_with_asterisks.txt +21 -0
  45. data/test/emails/email_multiline_quote_header_with_cc.txt +9 -0
  46. data/test/emails/email_multiline_quote_header_with_multiline_headers.txt +14 -0
  47. data/test/emails/email_no_signature_deliminator.txt +7 -0
  48. data/test/emails/email_no_signature_deliminator_adds_a_middle_initial.txt +7 -0
  49. data/test/emails/email_one_is_not_on.txt +10 -0
  50. data/test/emails/email_sent_from_my_not_signature.txt +3 -0
  51. data/test/emails/email_was_showing_as_nothing_visible.txt +13 -0
  52. metadata +96 -0
@@ -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,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: email_reply_parser-discourse
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.6'
5
+ platform: ruby
6
+ authors:
7
+ - Rick Olson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: EmailReplyParser is a small library to parse plain text email content
14
+ to return only the reply.
15
+ email: technoweenie@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files:
19
+ - README.md
20
+ - LICENSE
21
+ files:
22
+ - LICENSE
23
+ - README.md
24
+ - Rakefile
25
+ - email_reply_parser.gemspec
26
+ - lib/email_reply_parser.rb
27
+ - test/email_reply_parser_test.rb
28
+ - test/emails/correct_sig.txt
29
+ - test/emails/email_1_1.txt
30
+ - test/emails/email_1_2.txt
31
+ - test/emails/email_1_3.txt
32
+ - test/emails/email_1_4.txt
33
+ - test/emails/email_1_5.txt
34
+ - test/emails/email_1_6.txt
35
+ - test/emails/email_1_7.txt
36
+ - test/emails/email_1_8.txt
37
+ - test/emails/email_1_9.txt
38
+ - test/emails/email_2_1.txt
39
+ - test/emails/email_2_2.txt
40
+ - test/emails/email_2_3.txt
41
+ - test/emails/email_2_4.txt
42
+ - test/emails/email_2_5.txt
43
+ - test/emails/email_2_6.txt
44
+ - test/emails/email_2_7.txt
45
+ - test/emails/email_2_8.txt
46
+ - test/emails/email_2_9.txt
47
+ - test/emails/email_2nd_paragraph_starting_with_on.txt
48
+ - test/emails/email_BlackBerry.txt
49
+ - test/emails/email_bullets.txt
50
+ - test/emails/email_from_address_in_quote_header.txt
51
+ - test/emails/email_from_name_in_quote_header.txt
52
+ - test/emails/email_hyphens.txt
53
+ - test/emails/email_iPhone.txt
54
+ - test/emails/email_mentions_own_email_address.txt
55
+ - test/emails/email_mentions_own_name.txt
56
+ - test/emails/email_multi_word_sent_from_my_mobile_device.txt
57
+ - test/emails/email_multiline_quote_header_es_mx.txt
58
+ - test/emails/email_multiline_quote_header_fr.txt
59
+ - test/emails/email_multiline_quote_header_from_first.txt
60
+ - test/emails/email_multiline_quote_header_from_replyto_date_to_subject.txt
61
+ - test/emails/email_multiline_quote_header_from_to_date_subject.txt
62
+ - test/emails/email_multiline_quote_header_none.txt
63
+ - test/emails/email_multiline_quote_header_pt_br.txt
64
+ - test/emails/email_multiline_quote_header_with_asterisks.txt
65
+ - test/emails/email_multiline_quote_header_with_cc.txt
66
+ - test/emails/email_multiline_quote_header_with_multiline_headers.txt
67
+ - test/emails/email_no_signature_deliminator.txt
68
+ - test/emails/email_no_signature_deliminator_adds_a_middle_initial.txt
69
+ - test/emails/email_one_is_not_on.txt
70
+ - test/emails/email_sent_from_my_not_signature.txt
71
+ - test/emails/email_was_showing_as_nothing_visible.txt
72
+ homepage: http://github.com/github/email_reply_parser
73
+ licenses: []
74
+ metadata: {}
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
+ requirements:
82
+ - - '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirements: []
91
+ rubyforge_project: email_reply_parser
92
+ rubygems_version: 2.0.14
93
+ signing_key:
94
+ specification_version: 2
95
+ summary: Email Reply Parser
96
+ test_files: []