ivaldi / brimir

Email helpdesk built using Ruby on Rails and Zurb Foundation
http://getbrimir.com
GNU Affero General Public License v3.0
1.38k stars 299 forks source link

Refactor incoming mail hook for Mailgun support #443

Closed svoop closed 5 years ago

svoop commented 5 years ago

In order to implement other hooks e.g. for Mandrill:

For more, see #436


:warning: WARNING :warning:

The URL for the mail hooks had to be changed in order to accomodate other mail providers. This commit thus breaks things for those already using the post-mail script. However, the change needed is no biggie at all and mentioned in the CHANGELOG:

First find out the mail key which protects the mail hook:

rake secret:mail_key

Then update the aliases file of your MTA from the old to the new hook URL (replace {MAIL_KEY} with the output from above):

OLD: http://yoururl.com/tickets.json
NEW: http://yoururl.com/post_mail/{MAIL_KEY}/tickets.json
coveralls commented 5 years ago

Coverage Status

Coverage decreased (-1.5%) to 90.567% when pulling 1e0f612ba7f57b0cc3649456f0875b58874ac2f6 on svoop:mailgun into 877ed79f1465fbd3c697f0e060ed0f43e9b36dfa on ivaldi:master.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-1.5%) to 90.567% when pulling 1e0f612ba7f57b0cc3649456f0875b58874ac2f6 on svoop:mailgun into 877ed79f1465fbd3c697f0e060ed0f43e9b36dfa on ivaldi:master.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-1.5%) to 90.567% when pulling 1e0f612ba7f57b0cc3649456f0875b58874ac2f6 on svoop:mailgun into 877ed79f1465fbd3c697f0e060ed0f43e9b36dfa on ivaldi:master.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-2.1%) to 90.005% when pulling c2b300606ec5cb95e113c2d49605f089d5e8e733 on svoop:mailgun into 877ed79f1465fbd3c697f0e060ed0f43e9b36dfa on ivaldi:master.

svoop commented 5 years ago

Thanks a lot, @frenkel