Re: [notmuch] Introducing notmuchsync
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 25 Feb 2010 09:40:57 +0000 (10:40 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:17 +0000 (09:36 -0800)
59/8855b89acbb7ec64ec60bf8373db844f79b866 [new file with mode: 0644]

diff --git a/59/8855b89acbb7ec64ec60bf8373db844f79b866 b/59/8855b89acbb7ec64ec60bf8373db844f79b866
new file mode 100644 (file)
index 0000000..507aaaa
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <Sebastian@SSpaeth.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 42C6B431FBC\r
+       for <notmuch@notmuchmail.org>; Thu, 25 Feb 2010 01:41:12 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.667\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.667 tagged_above=-999 required=5\r
+       tests=[AWL=-0.668, BAYES_50=0.001] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id TmGO+cDaVur8 for <notmuch@notmuchmail.org>;\r
+       Thu, 25 Feb 2010 01:41:11 -0800 (PST)\r
+Received: from homiemail-a23.g.dreamhost.com (caiajhbdcbhh.dreamhost.com\r
+       [208.97.132.177])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8675C431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 25 Feb 2010 01:41:11 -0800 (PST)\r
+Received: from sspaeth.de (unknown [195.190.178.84])\r
+       by homiemail-a23.g.dreamhost.com (Postfix) with ESMTPA id E89374B0087; \r
+       Thu, 25 Feb 2010 01:41:00 -0800 (PST)\r
+Received: by sspaeth.de (sSMTP sendmail emulation);\r
+       Thu, 25 Feb 2010 10:40:58 +0100\r
+From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
+To: Carl Worth <cworth@cworth.org>, notmuch@notmuchmail.org\r
+In-Reply-To: <87wry2wl7p.fsf@yoom.home.cworth.org>\r
+References: <87pr57jvkz.fsf@SSpaeth.de> <87wry2wl7p.fsf@yoom.home.cworth.org>\r
+Date: Thu, 25 Feb 2010 10:40:57 +0100\r
+Message-ID: <87k4u1bql2.fsf@SSpaeth.de>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Subject: Re: [notmuch] Introducing notmuchsync\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 25 Feb 2010 09:41:12 -0000\r
+\r
+On Wed, 24 Feb 2010 10:19:06 -0800, Carl Worth <cworth@cworth.org> wrote:\r
+> On Mon, 18 Jan 2010 16:12:28 +0100, "Sebastian Spaeth" <Sebastian@SSpaeth.de> wrote:\r
+> > ================\r
+> >  - Synchronizes the "S" flag with the "unread" tag (1-way). The\r
+> >  synchronization direction is decided by using either --sync (change\r
+> >  maildir flags according to notmuch) or --revsync (change notmuch tags\r
+> >  according to maildir). By default it always checks the mails from the\r
+> >  previous 30 days (but can also do --all mails if you have plenty of\r
+> >  RAM and time).\r
+> >  - Deletes all mail files that have the "delete" tag\r
+> >  - Quiet/normal/verbose logging \r
+> \r
+> Thanks for contributing this, Sebastian.\r
+\r
+No problem. It was just an itch I had :-). I have to say that I stopped\r
+using the --revsync (change notmuch tags based on maildir flags) as I am\r
+using the patch that does that from within "notmuch new" and which is\r
+much faster than any external script could be.\r
\r
+> Let me know if you'd like to host this within the contrib directory of\r
+> the notmuch repository.\r
+\r
+I am fine with hosting it in contrib or on github whatever others\r
+prefer.\r
\r
+> >  - It temporarily slurps in all your mails from the last 30 days into\r
+> >  RAM. I am waiting for "notmuchs show blah --output filename --output\r
+> >  tags" to improve that :). Generally the parsing of the output of\r
+> >  "notmuch show" is a bit hackyish with regexps at the moment.\r
+> \r
+> OK. So we'll be adding an --output option to give you just filenames\r
+> soon, and we've got JSON output now so you can avoid hacky regexps now.\r
+\r
+JSON will definitely help. I need to investigate that, and --output will\r
+make help performance. So yes, these are good changes from a 3rd party\r
+perspective. I was thinking of interfacing notmuch.so directly but as\r
+long as the python bindings are still in development, I am not going to\r
+look at this option.\r
+\r
+> I think that's the open question still. How much of this kind of\r
+> functionality do we integrate into notmuch itself. I don't know the\r
+> answer to that question yet, but I'm quite happy to see people\r
+> experimenting with doing scripts like this on top of notmuch already.\r
+\r
+I'll comment on that in JRollins reply in a second :).\r
+Sebastian\r