Chatwoot/app
Sony Mathew d4b3ba4baa [#139] Send conversation emails (#442)
* [#139] Delayed emails for conversations

* Added the setex and get methods to Redis wrapper
* Set the priorities for the sidekiq queues
* Was not able to use mailhog for testing email in local, switched back to letter opener and added comments on using the SMTP settings
* Added after create hood in messages to queue the sending of mail after 2 minutes using sidekiq worker and also set the redis key for the conversation to avoid the email sending for every message
* Added the sidekiq worker to send the email and delete the conversation redis key
* Added the mailer and mail template
* mailer sends the last 10 messages along with the new messages from the time it was queued

* Send email only in development or if smtp config is set

* Send email only in development or if smtp config is set
* Set the SMTP_PORT in production variable

* Adding redis to circle CI

* Specs for the conversation email changes

* Added specs for conversation email sidekiq worker
* Added specs for conversation mailer
* Added specs in message model for the after create hook for notify email

* Send emails only when there is a reply from agent

* set development to use mailhog

* Adding comments for using letter opener
2020-01-23 23:14:07 +05:45
..
actions Feature: Contact Merge Action (#378) 2019-12-24 13:27:25 +05:30
assets [Chore] - Fix docker build (#290) 2019-11-26 13:37:28 +05:30
bot Chore: Switch from Carrierwave to ActiveStorage (#393) 2020-01-07 22:59:17 +05:30
builders [Feature] Email collect message hooks (#331) 2020-01-09 13:06:40 +05:30
channels Replace pusher with action cable (#178) 2019-10-25 01:37:01 +05:30
controllers Feature: API to list the agents for the inbox (#438) 2020-01-21 19:56:58 +05:45
dispatchers #251 - Disable subscription in community edition (#277) 2019-11-24 19:09:17 +05:30
finders [Performance] Optimize queries in conversation/message finders (#364) 2019-12-15 16:59:12 +05:30
helpers 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
identities Initial Commit 2019-08-14 15:18:44 +05:30
javascript Feature: View conversation labels on sidebar (#436) 2020-01-21 18:57:44 +05:45
jobs Move ActionCable Broadcast Calls to sidekiq #154 (#403) 2020-01-06 22:32:41 +05:30
listeners Include only incoming/outgoing messages in reporting (#429) 2020-01-14 00:50:18 +05:30
mailers [#139] Send conversation emails (#442) 2020-01-23 23:14:07 +05:45
models [#139] Send conversation emails (#442) 2020-01-23 23:14:07 +05:45
policies Refactor: Inbox store, remove inboxes from sidebar (#387) 2019-12-28 21:56:42 +05:30
presenters/conversations [Feature] Email collect message hooks (#331) 2020-01-09 13:06:40 +05:30
services Bug: Fix Heroku deployment on develop branch(#421) 2020-01-12 19:31:32 +05:30
views [#139] Send conversation emails (#442) 2020-01-23 23:14:07 +05:45
workers [#139] Send conversation emails (#442) 2020-01-23 23:14:07 +05:45
test-matchers.js Initial testing with jest (#133) 2019-10-15 00:18:46 +05:30