Commit graph

73 commits

Author SHA1 Message Date
Evan Morikawa
14cffcf8a5 Change to notify / observe for syncback requests 2016-06-28 15:35:59 -07:00
Halla Moore
0f64b6e58e Add category filtering to threads api endpoint 2016-06-28 15:01:41 -07:00
Jackie Luo
eaf19cc522 Add files endpoint for metadata 2016-06-28 13:55:00 -07:00
Halla Moore
5077b3f027 Add subject query to threads route 2016-06-27 13:45:11 -07:00
Halla Moore
2e56d3ced4 Add timestamp queries to threads route 2016-06-27 12:30:28 -07:00
Ben Gotow
76d873c2b2 Reintroduce concept of provider, start work on Gmail 2016-06-27 10:43:53 -07:00
Halla Moore
ab4c8cf32c Add id query to threads route 2016-06-27 10:35:34 -07:00
Halla Moore
621f8b5c2b Add starred query to threads route 2016-06-27 10:15:05 -07:00
Juan Tejada
dd350a5081 Update IMAPConnection api + error handling fixes + misc
- `IMAPConnection::openBox` now returns a Promise that resolves to an
IMAPBox, and IMAPBox contains all of the `fetch` operations. This makes
the dependency between fetch operations and the currently open mailbox
explicit rather than implicit and by forcing the operations to be called on
a box instance and hopefully prevent errors. It will also throw an error
if the constraint is no longer satisfied.

- `fetch` operations now return an observable stream of messages (or Promise for single value),
while preserving the same logic of the original implementation. You can use `.toPromise()` on
the observable to get a Promise that resolves when the observable stream has
completely drained.

- Fixes error handling in a few places and renames some variables
2016-06-26 01:57:33 -07:00
Juan Tejada
1336dea0d4 Fix auth response + log errors 2016-06-25 22:19:05 -07:00
Juan Tejada
caaef8d5b5 Add /messages/<id> enpoint + support for raw message/rfc822
- When message/rfc822 is requested, fetch ray message from IMAP
connection
2016-06-25 11:25:34 -07:00
Ben Gotow
69e87cbf49 Gmail auth at http://localhost:5100/auth/gmail 2016-06-24 16:46:41 -07:00
Halla Moore
bc5a4ecf3c Add unread query to threads route 2016-06-24 16:14:04 -07:00
Halla Moore
18ad15937f Change uppercase instance of Joi to lowercase 2016-06-24 14:07:10 -07:00
Ben Gotow
f678045c4f sync db <=> redis with sequelize hooks 2016-06-23 16:28:51 -07:00
Ben Gotow
eac019f536 Rather than changing policies, just set expiring redis key to track activity 2016-06-23 16:28:48 -07:00
Evan Morikawa
3f5cac4342 Adding in syncback message actions 2016-06-23 16:47:07 -06:00
Ben Gotow
c2e9093b42 Escalate sync policy based on number of stream connections 2016-06-23 11:45:33 -07:00
Ben Gotow
12d9db8dd9 Redis coordination of sync processes / assignment 2016-06-23 00:49:26 -07:00
Ben Gotow
2e9bfa68b5 Refactor DeltaStreamQueue (connection per subscription) 2016-06-23 00:49:26 -07:00
Ben Gotow
f5f435236f /auth + remove hardcoded stub in favor of curl request 2016-06-22 17:19:48 -07:00
Evan Morikawa
06393dd07c Move categories & messages to new monorepo structure 2016-06-22 14:44:09 -07:00
Evan Morikawa
18f2925b43 Convert to monorepo 2016-06-22 14:41:32 -07:00