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
Tim Abbott
705dc202bf
zephyr_mirror: Forward instances longer than 30 characters.
...
(imported from commit af0b2fbbcc8dee13dd70084d4f81a841193bd812)
2012-10-11 11:53:57 -04:00
Tim Abbott
ea07716d32
Rename instance to subject.
...
(imported from commit 6b4693da03f106448c137cf81cf9801cac44f2b8)
2012-10-10 18:01:39 -04:00
Tim Abbott
567256ede0
Change send_message to accept a stream, not a class.
...
(imported from commit 0f58de2502bec227f5f33e44692d03f2f28d6f63)
2012-10-10 17:48:17 -04:00
Tim Abbott
f4150479a8
Rename Recipient.CLASS to Recipient.STREAM.
...
(imported from commit a530194163f7260c73921137fa1ff671f14516f6)
2012-10-10 17:47:13 -04:00
Tim Abbott
9915ebf3ed
zephyr_mirror: Print out the message before logging it.
...
This should make debugging easier.
(imported from commit 101bab269b98ee5c2f56780d97e6b94c0887a306)
2012-10-10 16:33:23 -04:00
Tim Abbott
9cb4e253f4
api: Cast message ids to int before trying to compute the maximum.
...
(imported from commit 1723c48758711b9ace3db95d82ad91c76512ffa3)
2012-10-10 16:29:05 -04:00
Tim Abbott
1fe29ac836
Make instance names lower case when mirroring zephys.
...
(imported from commit 7e55f2339bb242ae29a7ee4db5c5f2bd654e8f7e)
2012-10-09 10:55:42 -04:00
Tim Abbott
0867c25d51
api: Clean up code duplication and add automatic retries on 503s.
...
(imported from commit 5c0654d1048a97a0f451c560544266a4261d9426)
2012-10-04 18:08:20 -04:00
Tim Abbott
283b973bc5
Rewrite API to use the Python requests library.
...
(imported from commit 314cf906eb25ea46f580ca70852b9d3478531229)
2012-10-04 17:25:58 -04:00
Tim Abbott
fa349af466
Forward messages with non-null non-ping opcodes.
...
(imported from commit 4b1a8749f05624891f4d9996188e9597eeb234f1)
2012-10-04 17:25:58 -04:00
Tim Abbott
acb321f3a4
Rename 'zephyrs' => 'messages' when formatting a message list to send to clients.
...
(imported from commit bfbb556f2444aca8277f54c363eccb678b6bf2dc)
2012-10-04 14:42:38 -04:00
Tim Abbott
c3a3d9072b
Fix zephyr mirror unicode issues, hopefully once and for all.
...
This code successfully sends every message in our corpus of past
zephyrs.
(imported from commit 14d42ca9288e2a218eaad880691d6bd213a045ce)
2012-10-03 17:55:14 -04:00
Tim Abbott
68916a228d
API: Disable history in the mechanize browser.
...
(imported from commit 8907f3af6283ab3ac72a22e936952757af56d1c3)
2012-10-03 17:21:26 -04:00
Tim Abbott
2e2c296899
api: Cut down a bit on the error handling verbosity.
...
(imported from commit b665b939f8474f0d631125ecd7c3d300e338ff3c)
2012-10-03 17:14:50 -04:00
Tim Abbott
8f1a418fd0
Slightly increase the leniency for forwarding 'old' messages.
...
There are non-buggy situations when it can be higher than 5 seconds.
(imported from commit cc63c0bdb10a201cc30c17854e5a506bac7e68d7)
2012-10-03 17:08:32 -04:00
Tim Abbott
d2a43dd6e1
Convert zephyr_mirror humbug sending to use the API.
...
(imported from commit 948a12a1dca903c47b7427248688f2079c7eecdb)
2012-10-03 16:50:29 -04:00
Tim Abbott
9330142937
Update post-receive hook to send messages via the API.
...
(imported from commit 81f4c9e55c44f19208c42d9a8e8db33ce44b02ac)
2012-10-03 14:32:05 -04:00
Tim Abbott
e01519e8b7
zephyr_mirror: Drop PING messages earlier.
...
This simplified debugging.
(imported from commit 4571901a5349d5ec1ec9246c94edb65e016160ac)
2012-10-03 13:48:29 -04:00
Tim Abbott
18b87a0ede
zephyr_mirror: Fix bug computing recipients when sending huddles.
...
(imported from commit c6a7eadfa9cd007945d423e4e93f088857897e26)
2012-10-03 13:48:29 -04:00