Repository navigation
read and write gmail as the google connection's emails collection - #91
Merged
Merged
Conversation
hkonsti
force-pushed
the
hkonsti/google-8-gmail
branch
from
October 14, 2026 00:49
c4fe545 to
d9220f6
Compare
hkonsti
force-pushed
the
hkonsti/google-8-gmail
branch
2 times, most recently
from
October 14, 2026 18:14
7bd3ab4 to
4dbc6ed
Compare
…th the same fields and commands as a mailbox's
…, keep a draft's names and html where an edit leaves them as they read, ask gmail again for a message it answers busy, act on a draft by its message id too, and say when a sign-in didn't allow a call
… moves what follows a letter that lowercases to two, read a part's line endings as new lines and an html source's as spaces, and ask a list only for the headers it shows
…h fail without a DATABASE_URL as in ci
hkonsti
force-pushed
the
hkonsti/google-8-gmail
branch
from
October 15, 2026 00:20
f338504 to
c9b0f1f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Gmail to the Google integration as an
emailscollection with the same fields, commands and record shape as the IMAP mailbox's (both now built byemailsCollectionin the catalog), under seven new Google actions mapped togmail.modify(Send also togmail.send).connections/google/gmail-api.tscovers the Gmail v1 calls and the label-to-folder mapping: Inbox, Draft, Sent, Trash and Spam are labels, and Archive is a search for mail in none of them.records/google-emails.tsis the connector. Record ids are Gmail message ids, except drafts, which aredraft-<draft id>. Marking, starring and archiving change labels, Move to Trash ismessages.trash(nevermessages.delete), and mail is sent from the connection's address withMailComposer. Note on quota: Gmail allows 6,000 units per minute per user, and a list page of 50 costs about 1,000 (50messages.getat 20 units each), so roughly six pages a minute; the docs say so.Verified live against konsti@varislabs.com through the connector:
has:attachmentsearch (12). Opened 3 messages.messages.modify. Trashed it and restored it withmessages.untrash; untrash leavesINBOXoff, so it was added back. Its labels ended exactly as before.Stack: on #84; next: Drive writes and Sheets ranges.
Open workspace in Conductor