From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 7D92F6DE1451 for ; Mon, 27 Mar 2017 06:23:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.88 X-Spam-Level: X-Spam-Status: No, score=0.88 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mCYdVmV4Jnvm for ; Mon, 27 Mar 2017 06:23:32 -0700 (PDT) Received: from mail-ot0-f176.google.com (mail-ot0-f176.google.com [74.125.82.176]) by arlo.cworth.org (Postfix) with ESMTPS id B2E936DE144E for ; Mon, 27 Mar 2017 06:23:32 -0700 (PDT) Received: by mail-ot0-f176.google.com with SMTP id y88so30116743ota.2 for ; Mon, 27 Mar 2017 06:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rH7yTTUIwnOrcl+DB4JLSSoiOKh3iIuR2Q3Zp3XxGAw=; b=mzEdohEs9aUWsAsd7vqdydgAutTtz/RiOEG5T2nyWPYjdkm7zRvbdFvy8HgH9JQFxI C4cQsC+IdNU3zkJtVBFYKfqzliMANy66q7SmOmRSapJjyzq9HDtHQb/t2jtUY4VXAkc3 5ja5uRDCyDrHLy5CZ7ozKp3JIoRBAFoSaW3c3n+OT4XOlaVFI3vtH2iayCdfwQuiMhXu 49dSje82S8VEuP3vVGU9ksNLA7IFAsYJIISe/c7cfLxbBXO4sfYJJOUnPzTacSwJruS6 rZNyTXJsxchXGnPKx6NtbjYG86gbdt++YR6M/pntdHteEqxBanrfiNmQem3dwX/l5Nwz AUMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rH7yTTUIwnOrcl+DB4JLSSoiOKh3iIuR2Q3Zp3XxGAw=; b=B5Fx8CVKTZcM+ch4YCFxFWuHPBbyw2F1iND3QEqKTJam7FYexsBoJWC9LBFWHA9ehF x4UnuDCHMRNLJRkJzkbSMDEickR8UBagpR/xXpevajycovNCEXjvZ9+R602ZZnZATiiz 5tRCJzH+q64hJ7Xr4p8RuZxaLANhrNdP3NCCwrI/VOAsLjKMBGiBtzJ9Nwb/97s3amjw U4m1+UgCOLBjbqrsLu6KZvuVFXWRaCSJqaGg53JpKITJV7H7kEL4+/baA3t50+Ebp3/W CY0+JRUdKCZoq1JrhSReNLromG347mv5NHlJZ4uSh4Xz4vbyhxPq9lP4lkAlX6qqJiiG 7+0A== X-Gm-Message-State: AFeK/H0/YxQGIpQHW89CkNNi1Th4wM9D1jkuctr/8BgQ0a0V4ULVSnUGvmu3SFTBuPIo6LyIhZv+rYvhgItlkA== X-Received: by 10.157.54.210 with SMTP id s18mr12542813otd.245.1490621011634; Mon, 27 Mar 2017 06:23:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.133.104 with HTTP; Mon, 27 Mar 2017 06:23:31 -0700 (PDT) In-Reply-To: <1490591813.ujxyjti2et.astroid@strange.none> References: <1489401808.6fnnjm7u8s.astroid@strange.none> <87k27r26xd.fsf@localhost.localdomain.i-did-not-set--mail-host-address--so-tickle-me> <1489526023.3h28rur3jt.astroid@strange.none> <878tnrla97.fsf@localhost.localdomain.i-did-not-set--mail-host-address--so-tickle-me> <1490591813.ujxyjti2et.astroid@strange.none> From: =?UTF-8?Q?Rafael_Esp=C3=ADndola?= Date: Mon, 27 Mar 2017 09:23:31 -0400 Message-ID: Subject: Re: [gmailieer] fast fetch and two-way tag synchronization between notmuch and GMail To: Gaute Hope Cc: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2017 13:23:33 -0000 > Assuming you want to set up a separate notmuch database to test you do > the following: > > first: > get a client secret API key for gmailieer [0], you only need this > during setup or if gmailieer needs to be re-authenticated. so store it > somewhere safe, say: ~/.secret/client_secret.json. ideally this should > be unnecessary [1]. > > # setting up a separate notmuch db > $ mkdir ~/test_mail/ # our new mail root > $ cd ~/test_mail > $ export NOTMUCH_CONFIG=$(pwd)/.notmuch-config > $ mkdir mail # new mail database root > $ notmuch setup > * specify ~/test_mail/mail as mail database > * specify only 'new' as new tag > $ notmuch new # create db > $ cd mail > > NOTE: As long as you are using a non-standard notmuch config location make > sure that environment variable is set when using gmailieer. > > # setting up gmailieer > $ mkdir gmail > * this will be the gmailieer local repository. > * it should be a sub-dir of the root mail db. > * you can keep other mail (from other accounts) outside this > gmailieer local repository. > $ cd gmail > $ gmi auth -c ~/.secret/client_secret.json > * authenticate gmailieer, choose the correct account, say: > charlie.root@gmail.com > $ gmi init -a charlie.root@gmail.com # gmailieer should now be set up > $ gmi pull # does the initial pull, fetching all you messages - this > # could take some time. It is currently running. Thank you so much. The only things I noticed so far: * running auth before init fails, but running init -c ... -a ... works * I had to name the auth file client_secret.json or "gmi pull" would fail trying to read it. Thanks again for writing this. It seems a much better way to sync with gmail. My previous setup was to use mbsync. It is really fast for fetching new emails (--pull-new), but with imap the only way to get flag changes (including read/unread) seems to be to ask for the flag of every message! Cheers, Rafael