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 A62426DE13FB for ; Fri, 5 Jul 2019 06:30:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.199 X-Spam-Level: X-Spam-Status: No, score=-0.199 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 pDcI3p7q3U9G for ; Fri, 5 Jul 2019 06:30:26 -0700 (PDT) Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) by arlo.cworth.org (Postfix) with ESMTPS id 8512C6DE0F34 for ; Fri, 5 Jul 2019 06:30:26 -0700 (PDT) Received: by mail-io1-f49.google.com with SMTP id i10so19061158iol.13 for ; Fri, 05 Jul 2019 06:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dMBzdX075OBeNBqa87fVSZCBPgOsqwnAJkW9A5khnE0=; b=hhOIi0QlUBfsAqXGsOIuEduuyV/yRxKkE5tPfD8hFY1ar26kH33fAaajJ5DDfaHPcd Ahxjsdqdenm5ANX32prfrd4/ZMbFxhcA6vYM/tMke7+PtTQglS7stpaOu8N6dIrrx/O6 3Lum9UWqO5a4/nyo/1ay5LRotHT58U6rJ4anxTqLNHVuPqCw7BZ/W1VDFyDPEmv6Q3fs t/NZBPKbcQN9kruta6j43XOCu/eq3wGme5eToPd+9KRRGvgiQNgvyCrQM1HCaWJ2boLc Dd/Fb3bAsMuXx5oaNWf+MpAaCxTgqEeYjvwntk/Nwr+pc2LDjfPm/2xRjhWaoTHioslX 9d0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dMBzdX075OBeNBqa87fVSZCBPgOsqwnAJkW9A5khnE0=; b=NBMkg/YplYtY0oa7LQYg26D3qmsZHpteYoo2yDmW+ZSi0CQX2bklGARO5/vVEqEjpO ypbBDrDi5nA/FxilS/LtRFbCC87nyjL84Vuko/ogxfVAYXmqA0cme6WJuiGphGtywE4K 17gB0W21sUBRn8Bj3YpYrQVIABSc+yT25ni9VMEJPDVHavYaZRPLg8srxmISD4Vs6bdS sPt8sHyE6cpx7/Vf1jSGwzTgHWpMMBkSVyjMC0M8UzqWm02jKE4ihh/ePtS4JTpc5HUP mZrCOIUiqTfUeRBAKcPi36zw4WlOt4xfzs05j2Yy0geqS6D6KIsQR+Nx2o9VJVUKskRF r0pA== X-Gm-Message-State: APjAAAXGJMAM3KyKzS/5BqKj4zw/U5RcYkxJAKbqYpwgjhRVjnBqQNcw yD1ZzxDLzceq8P3xxSuCwlZ8jPWnKzje/G9oh40= X-Google-Smtp-Source: APXvYqyhM9mddRGLA/K1y2X6uRcFmJyEoHzh25AROCCQJIgOuM8/5LpuYe23DA5PC76Yl1AaTT3Yh2tejQazdyIkT20= X-Received: by 2002:a02:aa0d:: with SMTP id r13mr4509628jam.129.1562333423720; Fri, 05 Jul 2019 06:30:23 -0700 (PDT) MIME-Version: 1.0 References: <87pnmolip6.fsf@gmail.com> In-Reply-To: <87pnmolip6.fsf@gmail.com> From: Chris Coutinho Date: Fri, 5 Jul 2019 15:30:12 +0200 Message-ID: Subject: Re: IMAP with server deletion To: Sam Halliday Cc: notmuch@notmuchmail.org Content-Type: multipart/alternative; boundary="000000000000bddee7058cef18f7" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Fri, 05 Jul 2019 13:30:28 -0000 --000000000000bddee7058cef18f7 Content-Type: text/plain; charset="UTF-8" Offlineimap has a 'sync_deletes' flag that defaults to 'yes' in both your local and remote repositories. You can elect to delete locally and keep remote, or delete remotely and keep locally. See the short comment in the offlineimap configuration file on github: https://github.com/OfflineIMAP/offlineimap/blob/06ed00a2112f27dc7fc81a2444eb7f5afde062e1/offlineimap.conf One point that is not clear is how to flag a message locally to be deleted on the remote, without deleting the message locally. What you probably want to do is delete your messages using the GMail UI using a browser. Remember to make a backup! C On Fri, 5 Jul 2019 at 15:22, Sam Halliday wrote: > Hello all, > > I'm using emacs + notmuch + offlineimap + msmtp to manage my Gmail. > > My gmail account is starting to get so big that an offline sync is time > consuming. > > I'd like to delete messages on the server, but keep them locally. Is > that possible with IMAP? > > There is one complicating factor that stops me from being able to use > fetch-only POP3: I'd like to keep files on the server if they have the > +flagged tag, which is equivalent to "starred" in the Gmail interface. > > Has anybody got a setup similar to this? > > > -- > Best regards, > Sam > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch > --000000000000bddee7058cef18f7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Offlineimap has a 'sync_deletes' flag that de= faults to 'yes' in both your local and remote repositories. You can= elect to delete locally and keep remote, or delete remotely and keep local= ly.

See the short comment in the offlineimap confi= guration file on github:


One point that is not clear is how to flag a message locally to be delet= ed on the remote, without deleting the message locally. What you probably w= ant to do is delete your messages using the GMail UI using a browser.
=

Remember to make a backup!

C

On Fri, 5 Jul 2019 at 15:22, Sam Halliday <sam.halliday@gmail.com> wrote:
Hello all,

I'm using emacs + notmuch + offlineimap + msmtp to manage my Gmail.

My gmail account is starting to get so big that an offline sync is time
consuming.

I'd like to delete messages on the server, but keep them locally. Is that possible with IMAP?

There is one complicating factor that stops me from being able to use
fetch-only POP3: I'd like to keep files on the server if they have the<= br> +flagged tag, which is equivalent to "starred" in the Gmail inter= face.

Has anybody got a setup similar to this?


--
Best regards,
Sam
_______________________________________________
notmuch mailing list
notmuch@notmuc= hmail.org
https://notmuchmail.org/mailman/listinfo/notmuch=
--000000000000bddee7058cef18f7--