Better Gmail handling by not using Notmuch tags

Rainer M Krug R.M.Krug at gmail.com
Fri Sep 14 00:50:01 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13/09/12 17:15, Damien Cassou wrote:
> On Thu, Sep 13, 2012 at 5:13 PM, Jeremy Nickurak 
> <not-much at trk.nickurak.ca> wrote:
>> Gmail doesn't have folders, of course, it has labels, which are approximately equivalent to
>> notmuch tags. The key difference being that a message can only be in one folder, but it can
>> have multiple tags/labels.
> 
> Gmail exports its labels as IMAP folders: an email with multiple labels will be duplicated in
> multiple folders (one per label). That's why I'm asking if it would be possible to manupale
> folders from Notmuch instead of tags.
> 

I don't think there is an easy solution. notmuch uses a maildir and tags. Gmail needs to be synced
to this local maildir earlier, and this is where I think the problem comes in: I am not aware of
any sync tool which maintains the gmail labels, as they are in in the imap context folders.

I think the only real solution woud be:

Download from gmail -> local:
1) download only the "All Mail" folder
2) implement a tagging tool which syncs the gmail labels to notmuch tags

upload local -> gmail
1) upload "All Mail folder
2) assign on gmail the labels corresponding to the notmuch tags.

The step 1 could be done by any sync tool available for this (offlineimap, ...)

step 2 needs to be developed - no idea how, but it surely would be really usefull, because then
notmuch would even become a perfect tool for gmail backup as well.

Cheers,

Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBS4akACgkQoYgNqgF2egoGhwCaAgfXQUAK4RK1v22JOhgYXfR1
+C8AnRU892SrxK7IYN9xoxhM865Y+vTA
=ma75
-----END PGP SIGNATURE-----



More information about the notmuch mailing list