-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/12/12 14:15, Jason A. Donenfeld wrote: >> I actually prefer this approach, but I think it would be more useful to leave the syncing of >> the emails to a different program, and then just managing the labels / tags with your tool >> (which is notmuch territory). So the workflow would be: So, implementing the mail sync in >> this script would, as I see it, kind of reinventing the wheel. > > You're misunderstanding me. Let me make it very clear what the script does. Actually why don't > you just read the source code? Please? Well, Because I have never used python, and you know what your script is doing. I prefer to know what the script is doing, before I try it out and it changes up my local emails and my notmuch databases in unexpected ways, because I did not understand the source code properly? > anyway, here: > > - It looks in gmail and asks it which messages gmail has OK. > - It downloads those messages Here is my question - see below. > - It applies gmail's labels to those messages as tags Perfect. Now my final question: after reading your info which is useful, I looked in more detail at the source code and it made now sense to me. My question is: If I only want to aply the tags and *not download* emails, can I simply remove the line 88: download_new_messages(imap, database, new_messages, destination) Is this correct? In this case, the script would ony tag y messages which are already downloaded? If this is the case, I would immediately start using the script. Rainer > > The end. > > Along the way it has some smart things to reduce redundant downloads. > > For more information, consult the source code. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlDFp5kACgkQoYgNqgF2egqfVACfWckdCl3SOmue6EEHF1cv6d44 IKgAmwV9cQH/VxCmPHmmU6z3akQ9pFZV =vZxS -----END PGP SIGNATURE-----