Use the new client data model to deduplicate mirroring.

(imported from commit 6ac38534aea11b1e7f8f332e76251f9501f9ab3e)
This commit is contained in:
Tim Abbott 2012-10-19 15:37:37 -04:00
parent a386a2939c
commit 958b566333

View file

@ -382,7 +382,7 @@ def humbug_to_zephyr(options):
# Sync messages from zephyr to humbug # Sync messages from zephyr to humbug
print "%s: humbug=>zephyr: Starting syncing messages." % (datetime.datetime.now(),) print "%s: humbug=>zephyr: Starting syncing messages." % (datetime.datetime.now(),)
humbug_client.call_on_each_message(maybe_forward_to_zephyr, humbug_client.call_on_each_message(maybe_forward_to_zephyr,
options={"mit_sync_bot": 'yes'}) options={"mirror": 'zephyr_mirror'})
def subscribed_to_mail_messages(): def subscribed_to_mail_messages():
for (cls, instance, recipient) in parse_zephyr_subs(verbose=False): for (cls, instance, recipient) in parse_zephyr_subs(verbose=False):