-
-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the inbound message handling to get the Rails upgrade done. Pu…
…ll requests for re-implementing with ActionMailbox are welcome. Fixes #2463.
- Loading branch information
Showing
7 changed files
with
1 addition
and
477 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
<br/><p><%= I18n.t 'integrations.contents_header' %></p> | ||
<ul> | ||
<li><a href="#email-cron-section"><%= I18n.t 'integrations.sections.automatic_email' %></a></li> | ||
<li><a href="#message_gateway"><%= I18n.t 'integrations.sections.message_gateway' %></a></li> | ||
<li><a href="#mailgun"><%= I18n.t 'integrations.sections.mailgun' %></a></li> | ||
<li><a href="#todo_rich_message_format"><%= I18n.t 'integrations.sections.email_rich' %></a></li> | ||
</ul> | ||
<p><%= raw I18n.t 'integrations.add_your_own', tell_us_link: link_to(I18n.t('integrations.tell_us_link_text'), 'https://github.com/TracksApp/tracks/issues') %></p> | ||
|
@@ -19,41 +17,6 @@ | |
|
||
<p><%= raw I18n.t 'integrations.cron_2', feeds_link: link_to(I18n.t('integrations.feeds_link_text'), feeds_path) %></p> | ||
|
||
<a name="message_gateway"> </a> | ||
<h2><%= I18n.t 'integrations.sections.message_gateway' %></h2> | ||
<p><%= I18n.t 'integrations.message_gateway.description' %></p> | ||
<ul> | ||
<li><%= raw I18n.t 'integrations.message_gateway.instructions.1', preferences_link: link_to(t('layouts.navigation.preferences'), preferences_url), sms_email_name: Preference.human_attribute_name('sms_email'), sms_context_name: Preference.human_attribute_name('sms_context') %></li> | ||
<li><%= raw I18n.t 'integrations.message_gateway.instructions.2', command: "<pre>/PATH/TO/TRACKS/bin/rails r -e production 'MessageGateway.receive(STDIN.read)'</pre>" %></li> | ||
<li><%= I18n.t 'integrations.message_gateway.instructions.3' %></li> | ||
</ul> | ||
<p><%= I18n.t 'integrations.message_gateway.rich_api_tip' %></p> | ||
<p><%= raw I18n.t 'integrations.message_gateway.configuration', site_yml: '<tt>site.yml</tt>', to_name: '<tt>to:</tt>', from_name: '<tt>from:</tt>' %></p> | ||
<p><%= raw I18n.t 'integrations.message_gateway.one_user_configuration', single_user_value: '<tt>single_user</tt>', code: "<pre>TRACKS_MAIL_RECEIVER=" + current_user.login + " /PATH/TO/TRACKS/bin/rails r -e production 'MessageGateway.receive(STDIN.read)'</pre>" %></p> | ||
|
||
<a name="mailgun"> </a> | ||
<h2><%= I18n.t 'integrations.sections.mailgun' %></h2> | ||
<p><%= raw I18n.t 'integrations.mailgun.description', mailgun_link: link_to('Mailgun', 'http://www.mailgun.com/') %></p> | ||
<p><%= I18n.t 'integrations.mailgun.conditions' %></p> | ||
<ul> | ||
<li><%= raw I18n.t 'integrations.mailgun.instructions.1', mailgun_link: link_to('Mailgun', 'http://www.mailgun.com/') %></li> | ||
<li><%= I18n.t 'integrations.mailgun.instructions.2' %></li> | ||
<ul> | ||
<li><%= I18n.t 'integrations.mailgun.instructions.2a' %></li> | ||
<li><%= I18n.t 'integrations.mailgun.instructions.2b' %></li> | ||
</ul> | ||
<li><%= raw I18n.t 'integrations.mailgun.instructions.3', preferences_link: link_to(t('layouts.navigation.preferences'), preferences_url), sms_email_name: Preference.human_attribute_name('sms_email') %></li> | ||
<li><%= I18n.t 'integrations.mailgun.instructions.4', sms_context_name: Preference.human_attribute_name('sms_context') %></li> | ||
<li><%= I18n.t 'integrations.mailgun.instructions.5' %></li> | ||
<li><%= raw I18n.t 'integrations.mailgun.instructions.6', code: '<pre class=code> | ||
mailmap: | ||
[email protected]: | ||
- [email protected] | ||
- [email protected] | ||
</pre>' %></li> | ||
</ul> | ||
<p><%= I18n.t 'integrations.mailgun.gateway_instructions' %></p> | ||
|
||
<a name="todo_rich_message_format"> </a> | ||
<h2><%= I18n.t 'integrations.sections.email_rich' %></h2> | ||
<p><%= I18n.t 'integrations.email_rich.description' %></p> | ||
|
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 |
---|---|---|
|
@@ -13,65 +13,4 @@ def test_page_load | |
assert_response :success | ||
end | ||
|
||
def test_cloudmailin_integration_success | ||
stub_site_config do | ||
SITE_CONFIG['cloudmailin'] = "123456789" | ||
SITE_CONFIG['email_dispatch'] = 'from' | ||
post :cloudmailin, params: { | ||
"html"=>"", | ||
"plain"=>"asdasd", | ||
"x_to_header"=>"[\"[email protected]\"]", | ||
"disposable"=>"", | ||
"from"=>"[email protected]", | ||
"signature"=>"e85e908fb893394762047c21e54ce248", | ||
"to"=>"<[email protected]>", | ||
"subject"=>"asd", | ||
"x_cc_header"=>"", | ||
"message"=>"Received: from VMBX103.ihostexchange.net ([192.168.3.3]) by\r\n HUB103.ihostexchange.net ([66.46.182.53]) with mapi; Wed, 5 Oct 2011 17:12:44\r\n -0400\r\nFrom: SMS User <[email protected]>\r\nTo: Tracks <[email protected]>\r\nDate: Wed, 5 Oct 2011 17:12:43 -0400\r\nSubject: asd\r\nThread-Topic: asd\r\nThread-Index: AcyDo4aig2wghvcsTAOkleWqi4t/FQ==\r\nMessage-ID: <[email protected]>\r\nAccept-Language: de-DE, en-US\r\nContent-Language: en-US\r\nX-MS-Has-Attach:\r\nX-MS-TNEF-Correlator:\r\nacceptlanguage: de-DE, en-US\r\nContent-Type: text/plain; charset=\"us-ascii\"\r\nContent-Transfer-Encoding: quoted-printable\r\nMIME-Version: 1.0\r\n\r\nasdasd\r\n" | ||
} | ||
|
||
assert_response :success | ||
end | ||
end | ||
|
||
def test_cloudmailin_integration_invalid_signature | ||
stub_site_config do | ||
SITE_CONFIG['cloudmailin'] = "12345678901234567890" | ||
post :cloudmailin, params: { | ||
"html"=>"", | ||
"plain"=>"asdasd", | ||
"x_to_header"=>"[\"[email protected]\"]", | ||
"disposable"=>"", | ||
"from"=>"[email protected]", | ||
"signature"=>"e85e908fb893394762047c21e54ce248", | ||
"to"=>"<[email protected]>", | ||
"subject"=>"asd", | ||
"x_cc_header"=>"", | ||
"message"=>"Received: from VMBX103.ihostexchange.net ([192.168.3.3]) by\r\n HUB103.ihostexchange.net ([66.46.182.53]) with mapi; Wed, 5 Oct 2011 17:12:44\r\n -0400\r\nFrom: SMS User <[email protected]>\r\nTo: Tracks <[email protected]>\r\nDate: Wed, 5 Oct 2011 17:12:43 -0400\r\nSubject: asd\r\nThread-Topic: asd\r\nThread-Index: AcyDo4aig2wghvcsTAOkleWqi4t/FQ==\r\nMessage-ID: <[email protected]>\r\nAccept-Language: de-DE, en-US\r\nContent-Language: en-US\r\nX-MS-Has-Attach:\r\nX-MS-TNEF-Correlator:\r\nacceptlanguage: de-DE, en-US\r\nContent-Type: text/plain; charset=\"us-ascii\"\r\nContent-Transfer-Encoding: quoted-printable\r\nMIME-Version: 1.0\r\n\r\nasdasd\r\n" | ||
} | ||
|
||
assert_response 403 | ||
end | ||
end | ||
|
||
def test_cloudmailin_integration_unknown_address | ||
stub_site_config do | ||
SITE_CONFIG['cloudmailin'] = "123456789" | ||
post :cloudmailin, params: { | ||
"html"=>"", | ||
"plain"=>"asdasd", | ||
"x_to_header"=>"[\"[email protected]\"]", | ||
"disposable"=>"", | ||
"from"=>"[email protected]", | ||
"signature"=>"6d2df0e807bfa9b77d24c31dce6d4515", | ||
"to"=>"<[email protected]>", | ||
"subject"=>"asd", | ||
"x_cc_header"=>"", | ||
"message"=>"Received: from VMBX103.ihostexchange.net ([192.168.3.3]) by\r\n HUB103.ihostexchange.net ([66.46.182.53]) with mapi; Wed, 5 Oct 2011 17:12:44\r\n -0400\r\nFrom: SMS User <[email protected]>\r\nTo: Tracks <[email protected]>\r\nDate: Wed, 5 Oct 2011 17:12:43 -0400\r\nSubject: asd\r\nThread-Topic: asd\r\nThread-Index: AcyDo4aig2wghvcsTAOkleWqi4t/FQ==\r\nMessage-ID: <[email protected]>\r\nAccept-Language: de-DE, en-US\r\nContent-Language: en-US\r\nX-MS-Has-Attach:\r\nX-MS-TNEF-Correlator:\r\nacceptlanguage: de-DE, en-US\r\nContent-Type: text/plain; charset=\"us-ascii\"\r\nContent-Transfer-Encoding: quoted-printable\r\nMIME-Version: 1.0\r\n\r\nasdasd\r\n" | ||
} | ||
|
||
assert_response 404 | ||
end | ||
end | ||
|
||
end |
Oops, something went wrong.