{"id":8919241,"url":"https://github.com/anicholson/obsidian-google-mail","last_synced_at":"2026-01-19T07:34:21.988Z","repository":{"id":62599613,"uuid":"560220398","full_name":"anicholson/obsidian-google-mail","owner":"anicholson","description":"Fetch emails to Obsidian (as markdown) from Gmail server","archived":false,"fork":false,"pushed_at":"2024-08-12T05:15:42.000Z","size":421,"stargazers_count":75,"open_issues_count":12,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-10T14:46:57.349Z","etag":null,"topics":["gmail","gmail-api","obsidian","pkm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anicholson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-01T01:49:24.000Z","updated_at":"2025-08-10T00:20:44.000Z","dependencies_parsed_at":"2024-05-02T15:14:38.421Z","dependency_job_id":"eb04c82a-983b-42e6-bf41-95f3cb5c47d4","html_url":"https://github.com/anicholson/obsidian-google-mail","commit_stats":null,"previous_names":["anicholson/obsidian-google-mail"],"tags_count":12,"template":false,"template_full_name":"obsidianmd/obsidian-sample-plugin","purl":"pkg:github/anicholson/obsidian-google-mail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicholson%2Fobsidian-google-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicholson%2Fobsidian-google-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicholson%2Fobsidian-google-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicholson%2Fobsidian-google-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anicholson","download_url":"https://codeload.github.com/anicholson/obsidian-google-mail/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicholson%2Fobsidian-google-mail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gmail","gmail-api","obsidian","pkm"],"created_at":"2024-05-02T01:03:44.944Z","updated_at":"2026-01-19T07:34:21.972Z","avatar_url":"https://github.com/anicholson.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Obsidian Google Mail\n\nThis plugin saves emails on Gmail as markdown notes. Use this plugin [safely](#security-issue) so you won't mess up your gmail account.\n\n## Application Scenarios\n\n1. Automatically save subsribed newsletter and takes note on it.\n2. You can email ideas to yourself and let the plugin collect them into vault.\n\n\n\nhttps://user-images.githubusercontent.com/29173832/199773312-3f501499-64aa-419b-b4fe-c6303b9e53fd.mov\n\n\n\n## Installation - I\n\n__Already have a credential__ : If you're using google api in other [plugins](#thanks) you can simplely enable the Gmail api for that project, then you can reuse the credential.\n\n__Create your own credential, it's free__ :  Goto https://console.cloud.google.com/ to create the credential. \n\n- The detail steps with video can be found [here](get-cred.md)\n\n## Installation - II\n\n1. Install this plugin manually or through BRAT\n    - Add https://github.com/thingnotok/obsidian-google-mail\n2. Enable the plugin, and click option (or open the seting panel of this plugin)\n3. Click `Setup` button and Paste content from credential.json ([from installation I](#installation---i))\n4. A web window should show up and ask you to login google with email access permission.\n5. The plugin will automatically query available labels in your Gmail account. Select the from/to labels to fetch.\n\n\t- From: Label to fetch from Gmail. \n\t- To: Fetched mail will be added with this label\n\t\n6. Assign a Folder to store all the collected email notes. (Default is \"fetchedMail\")\n\n    - The plugin will create a folder if not exists.\n    - A newsletter folder to use with [DB Folder](https://github.com/RafaelGB/obsidian-db-folder) would be useful to organize your mail notes.\n\t\n7. Click the ribbon button on left side to fetch all the emails with that label. \n\n## Setup in Gmail\n\n__Labels__:\nThis plugin use label to decide which mail to fetch. So you need to use Gmail to assign the {From} label to those mails you want to fetch. The {From} label will be removed from the fetched mails, and {To} label will be added. These two labels should be mutually exclusive. I suggest to create a new label for {To}. \n\n__Filters__:\n- You can add {From} label to mails manually when you review you inbox.\n- Or You can also setup filters to add the labels automatically.\n  - Check the [tutorial here](https://support.google.com/mail/answer/6579?hl=en#zippy=%2Ccreate-a-filter%2Cedit-or-delete-filters).\n  - Add the newletters so you can take notes on them\n  - Add the mails you send to yourself, so you can achieve \"email to obsidian\".\n  \n## Template\n\nCheck [Template](Template.md) to learn how to setup a note template for email notes.\n\n# Security Issue\n\n__Background__: \nCurrently, the plugin will keep a `.token.json` file containing all the information required to access gmail account, so you don't have login everytime. But it also means that anyone with the file can do whatever he/she wants to your emails. In addition to the others, all plugins you use have access to this file, too.\n\nThis is actually a common issue for plugins trying to integrate other services. There are [discussions](https://forum.obsidian.md/t/a-place-for-plugins-sensitive-data/18308) about how to safely keep these security files. But it's not gonna easy for a pure local application.\n\n__What to do?__ For now, please don't use this plugin in public computers or shared vaults. Make sure no one can access the token file. \n\n__Another approach__ is that if you use this plugin for \"newsletters\" and \"send to obsidian\", then you can create a separate gmail account for them so those important business letters won't be afftected.\n\n# Other details\n\n- The mails are converted to markdown format. Some emails may seem weird. \n  - Thanks to the contrubuters of [Turndown](https://github.com/mixmark-io/turndown).\n  - I will add support to save email in plaintext format. Plaintext is suited for note-taking and avoid most of weidly large images in the note.\n\n\n# Thanks\n\n- The plugin originates from [u/egauthier64](https://www.reddit.com/r/ObsidianMD/comments/yjiq4f/comment/iuqr10u/?context=3)'s email-to-obsidian idea but is an approach based on Gmail server. \n- Thanks to [YukiGasai](https://github.com/YukiGasai/obsidian-google-tasks/commits?author=YukiGasai) for his great work on Google series plugins for obsidian. Please check his awesome plugins here, they are extremely useful with google suite and obsidian:\n\t- [obsidian-google-calendar](https://github.com/YukiGasai/obsidian-google-calendar): View the google calender and add/delete events from obsidian.\n\t- [obsidian-google-task](https://github.com/YukiGasai/obsidian-google-tasks): Allow you to see and manipulate google tasks from obsidian.\n- Thanks to [@thingnotok](https://github.com/thingnotok) for their great work on this plugin and maintenance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicholson%2Fobsidian-google-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanicholson%2Fobsidian-google-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicholson%2Fobsidian-google-mail/lists"}