forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incoming mail monitoring/logging (publiclab#9056)
* Incoming mail monitoring/logging * Update script/mailman_server * Update script/mailman_server * Update comment.rb * Update mailman_server * Update mailman_server * Update outlook_parsing_test.rb * Update gmail_parsing_test.rb * Update token_comment_test.rb * Update yahoo_parsing_test.rb
- Loading branch information
Showing
6 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ class YahooParsingTest < ActionDispatch::IntegrationTest | |
# Mail contain ["[email protected]"] in from field. | ||
node = Node.find(21) # this is the nid used in the .eml fixture | ||
mail.subject = "Re: (##{node.id})" | ||
Comment.receive_mail(mail) | ||
Comment.new_comment_from_email(mail) | ||
f = File.open('test/fixtures/incoming_test_emails/yahoo/final_parsed_comment.txt', 'r') | ||
comment = Comment.last # this should be the just-created comment | ||
user_email = mail.from.first | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ class TokenCommentTest < ActionDispatch::IntegrationTest | |
node = Node.last | ||
mail.subject = "Re: #{node.title} (##{node.nid})" | ||
mail.from = ["[email protected]"] | ||
Comment.receive_mail(mail) | ||
Comment.new_comment_from_email(mail) | ||
f = File.open('test/fixtures/incoming_test_emails/gmail/final_parsed_comment.txt', 'r') | ||
comment = Comment.last | ||
assert_equal comment.comment, f.read | ||
|
@@ -40,7 +40,7 @@ class TokenCommentTest < ActionDispatch::IntegrationTest | |
mail = Mail.read('test/fixtures/incoming_test_emails/yahoo/incoming_yahoo_email.eml') | ||
node = Node.last | ||
mail.subject = "Re: #{node.title} (##{node.nid})" | ||
Comment.receive_mail(mail) | ||
Comment.new_comment_from_email(mail) | ||
f = File.open('test/fixtures/incoming_test_emails/yahoo/final_parsed_comment.txt', 'r') | ||
comment = Comment.last | ||
user_email = mail.from.first | ||
|