Commit graph

2129 commits

Author SHA1 Message Date
Tim Abbott a386a2939c API: Update error handling.
(imported from commit 2084975c5476a4792a633bf70469be26082da8c3)
2012-10-22 18:18:00 -04:00
Keegan McAllister 8e1247835c Add a bot to send yourself reminders of Google Calendar events
Run ./api/gcal-bot with no arguments for usage information.

(imported from commit cdc160aeffc16f54072b64370868aca3acc6ad67)
2012-10-21 18:21:12 -04:00
Tim Abbott 77f286ca02 [schema] Add a Client model keeping track of the sending client.
(imported from commit 31a430b1de14ce973addafd5d13ace049a8f8091)
2012-10-20 18:41:54 -04:00
Tim Abbott 1ffc2c1cb7 check-mirroring: Enable authentic sending.
(imported from commit dc71ac6d8c7b7b3a6a380eb3ea4c9e177ecfb691)
2012-10-19 13:53:14 -04:00
Tim Abbott dec91dfe8d zephyr_mirror: Support empty zsigs.
(imported from commit 6a9fd78d928ebbc9442b3f99d2730f09309556bb)
2012-10-19 13:17:10 -04:00
Tim Abbott 6378e01603 check-mirroring: pretty-print humbugs.
(imported from commit 603da610993a915f1bef7f6c03ccf62414545931)
2012-10-19 13:17:09 -04:00
Tim Abbott 31acb6fc2d Add a tool to check whether zephyr mirroring is working correctly.
(imported from commit aba418bd50fc8e86afb80aa97a3a8e8af007f223)
2012-10-19 12:25:54 -04:00
Tim Abbott 06a6cf20b5 Add print-next-message API example.
(imported from commit 73880275d2665e75d11def7447051c2b0c3b798b)
2012-10-19 11:37:51 -04:00
Tim Abbott 3fc636838a zephyr_mirror: Add option to specify user used for mirroring.
(imported from commit c9dfe4f8d12f2e234c85d96ba7ca59e0a59c1bd4)
2012-10-19 11:37:06 -04:00
Tim Abbott 4fb6a4ab7c Fix typo in API tool usage.
(imported from commit 235eca10897b8f62bf2a7d8a7299b8b1f6906ec6)
2012-10-19 11:36:00 -04:00
Tim Abbott ffd2f14df5 Fix issues with trailing slashes in API examples URLs.
(imported from commit f557a65e36aefcdcd9e072e9144f3ec69f518192)
2012-10-18 11:32:58 -04:00
Tim Abbott dde4b785f9 Fix mit_sync_bots for personals only.
(imported from commit 9fd7ac87d2cdc32413edefbde8870bbe59b67380)
2012-10-18 11:14:03 -04:00
Tim Abbott 5fe0487783 zephyr_mirror: Read in API keys from a file in your MIT homedir.
(imported from commit eb0fcf032b26388da1785d41bd182218559bfd06)
2012-10-18 10:37:41 -04:00
Keegan McAllister 30d1dda8ed api: Drop HTTP Digest authentication
(imported from commit 6867528cbd51a9e4a7cdacb181befcd034b90d59)
2012-10-17 18:24:15 -04:00
Keegan McAllister c2ddbeb8f4 curl-examples: Check cert
(imported from commit 5496142cbb1ef737ea7fc0063722a578fb7df437)
2012-10-17 18:24:15 -04:00
Tim Abbott 6246722096 Forward instanced zephyr personals to Humbug.
(imported from commit eee338e89e9f875a37c5e56682ea32b919fa37d0)
2012-10-17 11:21:11 -04:00
Tim Abbott 1ffaa3bb28 Fix stupid bug mirroring personals to zephyr.
(imported from commit 42508db8b06cb16e8156ef2da9db5df8a706a029)
2012-10-16 20:56:29 -04:00
Tim Abbott f4953e4e5b Sync messages on Zephyr instances to corresponding humbug stream intelligently.
(imported from commit 182cab9442f6444c0a710699420524e82542d9cc)
2012-10-16 14:57:46 -04:00
Tim Abbott e718d31cd6 zephyr_mirror.py: Clean up duplicated lower-casing code.
(imported from commit 2357202a4d8e0780cda3329f2e86d25b7596afbf)
2012-10-16 14:57:46 -04:00
Keegan McAllister 077d662b14 Some import cleanup
(imported from commit 265cebb011309b9a880035ccd587a5e51554803a)
2012-10-15 16:16:10 -04:00
Keegan McAllister 66224fef35 api: Verify certs for real
Now that we have a CA-signed cert for the app.

(imported from commit a2d8e95ea581d9af0ba6071b222e06ca82f0612c)
2012-10-15 15:31:12 -04:00
Keegan McAllister 9f05b9ac23 api: Check against the self-signed cert
(imported from commit f0444f1af206e5d7ee1c79f7486e9fe17daea0f7)
2012-10-15 13:29:47 -04:00
Tim Abbott 3f6c6a5d1b zephyr_mirror: Fix --forward-class-messages always being on.
(imported from commit 8f284a8d8b8f9e1e3fdc8bd60d0ca073cd42e56c)
2012-10-15 13:13:57 -04:00
Tim Abbott 325ec47046 zephyr_mirror: Improve verbosity defaults.
(imported from commit 6754b992a72f4ed844eed3eab2a114bd5c73a713)
2012-10-12 17:47:43 -04:00
Tim Abbott d22a77aac6 zephyr_mirror: Run both processes within a single application.
(imported from commit 8f379a682ede7076ddcbe046dee5be6592a5bbd9)
2012-10-12 17:35:14 -04:00
Tim Abbott b87524bb8d zephyr-mirror: Deconfuse the --forward-from-humbug option.
(imported from commit 526b9253c550dbbe41881f5c6709ce2f09cbe241)
2012-10-12 17:35:14 -04:00
Tim Abbott 796ccaad0d zephyr_mirror: Avoid printing Hesiod errors to stderr.
(imported from commit 2f0016b196d764027e4e53a937167d04b3e96f49)
2012-10-12 17:35:14 -04:00
Tim Abbott a7cd634e2e zephyr-mirror: Include timestamp and direction in all print statements.
(imported from commit b0e500ab1f168e618abaae139ce8a9dd5f0dc639)
2012-10-12 17:35:14 -04:00
Tim Abbott c66b080fd1 Add a different stamp for auto-restarting just tabbott.
(imported from commit 8f0b1f0bf655d64329a42100eec3dbef1393ded0)
2012-10-12 17:35:14 -04:00
Tim Abbott 3aaefa5108 zephyr-mirror: Clean up hardcoded path names.
(imported from commit 42338d94deb94312c2dee43851bc3c04e3ab373c)
2012-10-12 17:35:14 -04:00
Tim Abbott 58647ef04c Make the restart tool try again if it fails to restart.
(imported from commit 216dcdcaa096c26e26b385029d62d0310349a6c9)
2012-10-12 17:35:13 -04:00
Tim Abbott e7af4a918b Restart the zephyr mirroring script for new versions.
(imported from commit 860b0e120308cf190dbde2a0182e99951404cbce)
2012-10-12 15:03:42 -04:00
Tim Abbott 92496fa90f Clean up process_loop's structure.
(imported from commit 62e427bf22d56960286b237f54660e74fb2866d8)
2012-10-12 14:53:21 -04:00
Tim Abbott a8fc07c745 zephyr_mirror: Split out the main loop into its own function.
(imported from commit 4c5639b3679f7ef0188e622bf7721bd3ee71bddc)
2012-10-12 14:52:39 -04:00
Tim Abbott a72111c227 zephyr_mirror: Forward mail zephyrs.
(imported from commit 5b56c8d171aeb49728590411ee6b53d7a29fbd15)
2012-10-12 14:35:36 -04:00
Tim Abbott 2ad513e736 zephyr-mirror: Clean up very long lines of code.
(imported from commit 1d40a1f4dee41531b621828648be32ecec6a9669)
2012-10-12 14:35:36 -04:00
Tim Abbott f53420e347 Clean up fullname detection for special domains.
(imported from commit 92450b37b8749d52a5322306e9475e8189ccfd89)
2012-10-12 14:35:36 -04:00
Tim Abbott b183ced788 Fix s/LTS.ORG/1TS.ORG/.
(imported from commit 0e0a608f86e4117f24829b8f13c7236a31d556a4)
2012-10-12 14:35:36 -04:00
Tim Abbott ff065a5bb6 Rework algorithm for computing fullnames for crossrealm zephyr users.
(imported from commit 5cc49e2565e8a10d8f34ac16886e1603f190fece)
2012-10-12 12:21:21 -04:00
Zev Benjamin 72ebb01913 Make Message's display_recipient field be an object with consistent names for both personals and huddles.
(imported from commit 8b00f16b036ed3fb3f7d56e7393271ec1d458ea5)
2012-10-12 11:34:42 -04:00
Tim Abbott b229b307d6 Revert "zephyr_mirror: Truncate stream names to 30 characters."
This reverts commit 9973168227896dc8f1dc061b7970a503565856bf.

In theory, we should never be subscribed to receive such messages
anyway.

(imported from commit ff52eaa3285283750b4d7dc3b3a12c2d766514ac)
2012-10-12 10:49:24 -04:00
Tim Abbott 5443bdc50c Mark more API examples as executable.
(imported from commit 1d21e05af00e9ae37ef38d6e6d56c88e0d764f82)
2012-10-12 10:40:12 -04:00
Tim Abbott f2a5c05376 zephyr_mirror: Truncate stream names to 30 characters.
(imported from commit 9973168227896dc8f1dc061b7970a503565856bf)
2012-10-12 10:38:01 -04:00
Tim Abbott db3905475c zephyr_mirror: Fix case where we're not forwarding class messages.
(imported from commit c40ae12522dcf3a7c3b02d92dbc230c8b4c582ac)
2012-10-12 10:16:20 -04:00
Tim Abbott 3071afe3d4 zephyr_mirror: Automatically subscribe to streams in ~/.zephyr.subs.
(imported from commit b28b28a81416c52813975c2cdbf65d282deec3df)
2012-10-11 16:28:51 -04:00
Tim Abbott eb8a9f5ad5 Fix descriptions of some API examples.
(imported from commit 105211905b27d03906506af41522854cbb53479a)
2012-10-11 16:20:45 -04:00
Tim Abbott 60464f7976 Add an API call to subscribe to a list of streams.
(imported from commit 0a5d46d5f54fb4c8ebfad8c9adb777c0b4938dfa)
2012-10-11 16:20:45 -04:00
Keegan McAllister 717186a149 zephyr_mirror: Don't un-HTML-escape messages forwarded to MIT
The messages coming in from the API should no longer contain these entities,
unless the user typed them.

(imported from commit d6b6aa300557d4603c68ffc3b5966115a5787aae)
2012-10-11 15:01:54 -04:00
Tim Abbott 6aac490dc8 zephyr_mirror: Get new classes to subscribe to from the humbug server.
(imported from commit 7cf321cdc97cf10719ca89b4ee1e7c2e8d979e40)
2012-10-11 14:49:04 -04:00
Tim Abbott 468a3cbe98 Add API queries to show public streams and the user's subscriptions.
(imported from commit 5f24e35a9bdd1e40406e2acb0c3713a6517d139b)
2012-10-11 14:43:23 -04:00