unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Rainer M Krug <R.M.Krug@gmail.com>
To: notmuch@notmuchmail.org
Cc: public-public-notmuch-gxuj+Tv9EO5zyzON3hdc1g-wOFGN7rlS/M9smdsby/KFg@plane.gmane.org,
	public-Rainer-vfylz/Ys1k4@plane.gmane.org,
	public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org
Subject: Re: gmail importer script
Date: Mon, 10 Dec 2012 10:12:57 +0100	[thread overview]
Message-ID: <50C5A799.2070201@gmail.com> (raw)
In-Reply-To: <CAHmME9r-gnWFoC0tdPPDMtVFLKCTEO-FDCStU9cNO_vn6DYv_A@mail.gmail.com>

-----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-----

  reply	other threads:[~2012-12-10  9:13 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-07  0:24 gmail importer script Jason A. Donenfeld
2012-12-07  4:05 ` Kushal Kumaran
2012-12-07  8:53   ` Rainer M Krug
2012-12-07  9:23     ` Patrick Totzke
2012-12-07 13:49       ` Jason A. Donenfeld
2012-12-08 16:20         ` Patrick Totzke
2012-12-08 17:04           ` Jason A. Donenfeld
2012-12-08 17:19             ` Jason A. Donenfeld
     [not found]               ` <20121213141917.GD3658@tungsten.lan.mitsi.com>
     [not found]                 ` <CAHmME9op8V+ZJGVwBJPZ653mHYBnMAvxb426LAP-Bu27-rzmYA@mail.gmail.com>
2012-12-13 15:23                   ` fREW Schmidt
2012-12-13 15:24                     ` Jason A. Donenfeld
2012-12-13 16:48                       ` Patrick Totzke
2012-12-15  8:22                         ` Jason A. Donenfeld
2012-12-15 10:41                           ` Patrick Totzke
2012-12-16 20:44                             ` Jason A. Donenfeld
2012-12-16 22:31                               ` Patrick Totzke
2012-12-17  8:31                                 ` Patrick Totzke
2012-12-08 17:46             ` Patrick Totzke
2012-12-09 23:13               ` Jason A. Donenfeld
2012-12-10  9:41                 ` Patrick Totzke
2012-12-10 17:46                   ` Jason A. Donenfeld
2012-12-11  7:06                     ` Jason A. Donenfeld
2012-12-11  9:12                       ` Patrick Totzke
2012-12-11  9:12                         ` Jason A. Donenfeld
2012-12-11 10:04                           ` Patrick Totzke
     [not found]                           ` <20121213142228.GE3658@tungsten.lan.mitsi.com>
2012-12-13 14:30                             ` Jason A. Donenfeld
2012-12-13 14:35                               ` fREW Schmidt
2012-12-13 15:15                                 ` Jason A. Donenfeld
2012-12-07 13:48     ` Jason A. Donenfeld
2012-12-07 13:57       ` Rainer M Krug
2012-12-07 15:32         ` Jason A. Donenfeld
2012-12-08 12:40           ` Rainer M Krug
2012-12-08 13:15             ` Jason A. Donenfeld
2012-12-10  9:12               ` Rainer M Krug [this message]
2012-12-07 15:30       ` Jason A. Donenfeld
2012-12-07 11:48 ` [PATCH] Minor style changes Michal Nazarewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50C5A799.2070201@gmail.com \
    --to=r.m.krug@gmail.com \
    --cc=notmuch@notmuchmail.org \
    --cc=public-Rainer-vfylz/Ys1k4@plane.gmane.org \
    --cc=public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org \
    --cc=public-public-notmuch-gxuj+Tv9EO5zyzON3hdc1g-wOFGN7rlS/M9smdsby/KFg@plane.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).