<div dir="ltr"><div>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.</div><div><br></div><div>See the short comment in the offlineimap configuration file on github:</div><div><br></div><div><a href="https://github.com/OfflineIMAP/offlineimap/blob/06ed00a2112f27dc7fc81a2444eb7f5afde062e1/offlineimap.conf">https://github.com/OfflineIMAP/offlineimap/blob/06ed00a2112f27dc7fc81a2444eb7f5afde062e1/offlineimap.conf</a></div><div><br></div><div>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.</div><div><br></div><div>Remember to make a backup!</div><div><br></div><div>C<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 5 Jul 2019 at 15:22, Sam Halliday <<a href="mailto:sam.halliday@gmail.com">sam.halliday@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
I'm using emacs + notmuch + offlineimap + msmtp to manage my Gmail.<br>
<br>
My gmail account is starting to get so big that an offline sync is time<br>
consuming.<br>
<br>
I'd like to delete messages on the server, but keep them locally. Is<br>
that possible with IMAP?<br>
<br>
There is one complicating factor that stops me from being able to use<br>
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 interface.<br>
<br>
Has anybody got a setup similar to this?<br>
<br>
<br>
-- <br>
Best regards,<br>
Sam<br>
_______________________________________________<br>
notmuch mailing list<br>
<a href="mailto:notmuch@notmuchmail.org" target="_blank">notmuch@notmuchmail.org</a><br>
<a href="https://notmuchmail.org/mailman/listinfo/notmuch" rel="noreferrer" target="_blank">https://notmuchmail.org/mailman/listinfo/notmuch</a><br>
</blockquote></div>