zulip/zerver
Luke Faraone 7658886b02 email_mirror: Use internal_send_message instead of the API
Previously, the email mirror queue worker used the API bindings to send
messages to Zulip, as if it were any other API client.

This is inefficient since we're running the worker inside the Django
context on a machine with database access; we can instead just use the
internal message-sending functions we use elsewhere. This also resolves
potential issues with SSL certificates, etc. that might occur when we
were previously making a HTTPS connection.

(imported from commit 6de8015829bec440f1af0199a2138828e86ed2a4)
2014-02-27 20:25:33 -05:00
..
fixtures bugdown: Match up to 8 groups of nested parens 2014-02-06 17:26:01 -05:00
lib email_mirror: Use internal_send_message instead of the API 2014-02-27 20:25:33 -05:00
management Fix bug that hid digest email settings box for customers. 2014-02-27 20:25:26 -05:00
migrations Add missing stream field to schema migration 0067. 2014-02-05 13:35:41 -05:00
templatetags Add a custom template filter for formatting displaying lists of items in emails. 2013-10-25 19:11:40 -04:00
tests/frontend Fix casper tests 2014-02-27 20:25:28 -05:00
views Use 'forced' when available to determine if it's a force-push 2014-02-27 20:25:28 -05:00
worker Add helper function for returning a Redis client 2014-02-10 13:23:28 -05:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py Fix documentation for email gateway on Zulip Enterprise. 2013-12-04 16:39:39 -05:00
decorator.py Remove unused json_to_list function. 2014-02-18 14:24:04 -05:00
exceptions.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
filters.py Add api_key to filtered variables. 2013-12-12 10:31:03 -05:00
finders.py [manual] Move our deployment scripts to scripts/. 2013-10-28 10:54:48 -04:00
forms.py [manual] Allow signups for emails held by non-MIT mirror dummy accounts. 2014-01-10 21:38:59 -05:00
handlers.py Remove old email error reporting handler 2013-11-13 16:22:21 -05:00
middleware.py Blacklist more paths, and fix paths with / to use . instead 2014-02-03 14:06:58 -05:00
models.py Make enter sends the default. 2014-02-05 13:35:41 -05:00
openid.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
retention_policy.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
static_header.txt Update copyright to 2014. 2014-02-04 15:51:53 -05:00
storage.py Enable absolute imports for non-third-party code where it was omitted previously 2013-10-25 14:13:30 -04:00
test_bugdown.py Fix autolinkification in Zephyr mirrored content. 2014-02-10 13:23:27 -05:00
test_decorators.py Remove unused json_to_list function. 2014-02-18 14:24:04 -05:00
test_events.py Use stream_id as key for subscription removals. 2014-02-10 13:23:27 -05:00
test_external.py Extract test_external.py 2014-01-31 13:14:19 -05:00
test_hooks.py Extract test_hooks.py. 2014-01-29 10:56:00 -05:00
test_messages.py Handle get_old_messages case where num_before = 0 and num_after = 0 and a narrow is specified 2014-02-19 12:24:17 -05:00
test_signup.py Add backend tests for group signups. 2014-01-31 17:12:10 -05:00
test_subs.py Use stream_id as key for subscription removals. 2014-02-10 13:23:27 -05:00
test_unread.py Move some tests into test_unread.py 2014-02-10 13:23:27 -05:00
tests.py Split bot deactivation from user deactivation 2014-02-18 15:09:22 -05:00
tornado_callbacks.py Remove stray } from name of queue 2014-01-29 15:46:04 -05:00
tornadoviews.py Eliminate json_to_dict and use check_dict instead. 2014-02-18 13:02:08 -05:00