Add the deliver_email management command

This command should be run continuously via supervisor. It periodically
checks for new email messages to send, and then sends them. This is for
sending email that you've queued via the Email table, instead of mandrill
(as is the case for our localserver/development deploys).

(imported from commit a2295e97b70a54ba99d145d79333ec76b050b291)
This commit is contained in:
acrefoot
2013-11-01 14:31:00 -04:00
committed by acrefoot
parent f7b5a10da0
commit f5199081d5
4 changed files with 109 additions and 23 deletions

View File

@@ -579,7 +579,8 @@ if DEPLOYED:
EVENT_LOG_DIR = '/home/zulip/logs/event_log'
STATS_DIR = '/home/zulip/stats'
PERSISTENT_QUEUE_FILENAME = "/home/zulip/tornado/event_queues.pickle"
EMAIL_LOG_PATH = "/var/log/zulip/email-mirror.log"
EMAIL_MIRROR_LOG_PATH = "/var/log/zulip/email-mirror.log"
EMAIL_DELIVERER_LOG_PATH = "/var/log/zulip/email-deliverer.log"
QUEUE_ERROR_DIR = '/var/log/zulip/queue_error'
else:
EVENT_LOG_DIR = 'event_log'
@@ -587,7 +588,8 @@ else:
WORKER_LOG_PATH = "workers.log"
STATS_DIR = 'stats'
PERSISTENT_QUEUE_FILENAME = "event_queues.pickle"
EMAIL_LOG_PATH = "email-mirror.log"
EMAIL_MIRROR_LOG_PATH = "email-mirror.log"
EMAIL_DELIVERER_LOG_PATH = "email-deliverer.log"
QUEUE_ERROR_DIR = 'queue_error'