Generate Sieve scripts to filter your emails with the helm of LLMs
- Ruby 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .env.example | ||
| .gitignore | ||
| download_emails.rb | ||
| gems.locked | ||
| gems.rb | ||
| README.md | ||
| script.rb | ||
Sieve-by-LLM: Generating sieve email filtering scripts using an LLM trained on your email
A simple set of scripts that interact with a local Ollama server to generate sieve scripts to filter your email.
Basically, I get a lot of email and I'm lazy and want the computer to build some filter rules for me automatically as a starting point.
Setup
bundle install
ollama serve
ollama pull qwen3-coder:30b
ollama pull qwen3-embedding:4b
Instructions
- Download the emails from your IMAP server via
bundle exec ruby download_emails.rb. - Then, generate the sieve script (this will take a while):
bundle exec ruby script.rb. - Check out
./ollama_httpx_rules.sievefor the results!