Giter Site home page Giter Site logo

inbox's Introduction

Inbox

A tool for mass-generating Gmail inbox filters from a concise TOML file.

Usage

Clone the repository, and install the dependencies. After this you will be able to write an input.toml file in which you can store your filters.

git clone https://github.com/junlarsen/inbox && cd inbox
pnpm install

# Write your filters in input.toml, see example below

# And generate the filters.xml file
pnpm dev

Example input.toml

[filters.social]
"Facebook" = "from:(facebookmail.com OR facebook.com)"
# You can also skip the inbox, star it, mark it as read, or give it a Gmail category.
"GitHub" = { query = "from:[email protected]", "mark-as-read" = true, "star-it" = true, "skip-the-inbox" = true, "category" = "^smartlabel_updates" }

You should now have an output file named filters.xml which you can directly import into Gmail. Please see Google's documentation for more information on how to import the generated filters.

This is a small thing I hacked together in a matter of a few hours, so please don't hesitate to open an issue if you want any help or have any questions. There is also zero validation on the input file at the moment.

License

MIT

inbox's People

Contributors

junlarsen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.