Skip to content

fheinle/gmail2notmuch

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

gmail2notmuch

Scan notmuch db for mails with tags X-Keywords in header and add those as notmuch tags

Description

This script is meant to be used in conjunction with offlineimap and notmuch. When syncing from GMail with offlineimap and synclabels enabled, every mail gets a X-Keywords header addition. Using this script will add those as notmuch-tags to each respective mail.

Installation

This script requires notmuch's python bindings to be installed. On Ubuntu or Debian, try:

sudo apt-get install python-notmuch

Usage

./gmail2notmuch /path/to/notmuch/config/file # Will use specified config file
NOTMUCH_CONFIG=/path/to/notmuch/config/file ./gmail2notmuch # dito
./gmail2notmuch # will use ~/.notmuch-config

Adding --add-gmail will add gmail's internal tags like Sent, Important, etc, too.

Contributors

License

GNU General Public License v3.0

About

Scan notmuch db for mails with tags X-Keywords in header and add those as notmuch tags

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages