Skip to content

Sync your Gmail messages labeled as receipts into your obsidian vault

Notifications You must be signed in to change notification settings

needmorecowbell/gmail2md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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 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 for obsidian so long as you have the inline attributes option enabled.

Output

This is what a file might look like:

---
tags: ['receipt','email']
aliases: []
---
    
# Your Electronic Receipt - The Home Depot <HomeDepot@order.homedepot.com>

-----------
**From**:: The Home Depot <HomeDepot@order.homedepot.com>
**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]]

About

Sync your Gmail messages labeled as receipts into your obsidian vault

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages