https://github.com/needmorecowbell/gmail2md
Sync your Gmail messages labeled as receipts into your obsidian vault
https://github.com/needmorecowbell/gmail2md
gmail-smtp markdown markdown-parser obsidian-md obsidian-notes
Last synced: 6 months ago
JSON representation
Sync your Gmail messages labeled as receipts into your obsidian vault
- Host: GitHub
- URL: https://github.com/needmorecowbell/gmail2md
- Owner: needmorecowbell
- Created: 2022-05-05T01:09:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-05T01:12:02.000Z (over 3 years ago)
- Last Synced: 2025-02-18T18:02:17.327Z (8 months ago)
- Topics: gmail-smtp, markdown, markdown-parser, obsidian-md, obsidian-notes
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Obsidian Helper Script: Export Gmail Receipts
This script is used to help me take emails I label as receipts and load them into my [obsidian](https://obsidian.md) vault. This allows me to keep track of receipts in a relational way.
## Usage
Edit the file to fit your needs, then run `python gmail_receipts_to_obsidian.py` on a regular basis to keep your inbox synced to obsidian.
## Requirements
- python3
## Tips
- This file can (and should) be modified to fit your liking, receipts are just a useful example I used.
- The template is formed to be compatible with the [dataview plugin](https://blacksmithgu.github.io/obsidian-dataview/) for obsidian so long as you have the inline attributes option enabled.
## Output
This is what a file might look like:
```markdown
---
tags: ['receipt','email']
aliases: []
---
# Your Electronic Receipt - The Home Depot-----------
**From**:: The Home Depot
**To**::
**Bcc**::
**Date**:: Apr D YYYY HH:MM PM
**Subject**:: Your Electronic Receipt-----------
## Associations
- [[Big Construction Project]]
- [[Contractor]]
- [[Me]]## Contents
**EML**:: [[Obsidian Attachments/DD-MM-YYY_THH_MM_Your Electronic Receipt.eml]]
**PDF Attachment**:: ![[Obsidian Attachments/DD-MM-YYY_THH_MM_Your Electronic Receipt.pdf]]
```