Re: notmuchsync: handling of the deleted tag
authorJeff Richards <jrichards@revenuewire.com>
Mon, 15 Nov 2010 01:23:57 +0000 (17:23 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:30 +0000 (09:37 -0800)
dc/d48166e8d83e48531e576c5930c935974d5b70 [new file with mode: 0644]

diff --git a/dc/d48166e8d83e48531e576c5930c935974d5b70 b/dc/d48166e8d83e48531e576c5930c935974d5b70
new file mode 100644 (file)
index 0000000..384df9a
--- /dev/null
@@ -0,0 +1,106 @@
+Return-Path: <jrichards@revenuewire.com>\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 144FC40DBC0\r
+       for <notmuch@notmuchmail.org>; Sun, 14 Nov 2010 17:33:50 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] 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 hPuWnkukrohA for <notmuch@notmuchmail.org>;\r
+       Sun, 14 Nov 2010 17:33:36 -0800 (PST)\r
+X-Greylist: delayed 577 seconds by postgrey-1.32 at olra;\r
+       Sun, 14 Nov 2010 17:33:36 PST\r
+Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9])\r
+       by olra.theworths.org (Postfix) with ESMTP id 93A0040DDE7\r
+       for <notmuch@notmuchmail.org>; Sun, 14 Nov 2010 17:33:36 -0800 (PST)\r
+Received: from pd6ml1no-ssvc.prod.shaw.ca ([10.0.153.160])\r
+       by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 14 Nov 2010 18:23:57 -0700\r
+X-Cloudmark-SP-Filtered: true\r
+X-Cloudmark-SP-Result: v=1.1 cv=sma64emKALigICJU+V2L7RL3kPAolu7RCFSKDgo279k=\r
+       c=1 sm=1\r
+       a=-tKy-MdvZ4YA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10\r
+       a=fZIboY/cEU6l/H7GC6ozQQ==:17 a=7343-z1_AAAA:8 a=RSj82B_RAAAA:8\r
+       a=bNqfXUKSxoebeDiaU3sA:9 a=lT31I-HbELEZxjlWurHYGNvwOl4A:4\r
+       a=CjuIK1q_8ugA:10\r
+       a=WuyvyjOq3N8A:10 a=0c-eHkXYtrgA:10 a=Z9YHovozsoYA:10\r
+       a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
+Received: from unknown (HELO localhost) ([96.50.110.35])\r
+       by pd6ml1no-dmz.prod.shaw.ca with ESMTP; 14 Nov 2010 18:23:57 -0700\r
+From: Jeff Richards <jrichards@revenuewire.com>\r
+To: Notmuch developer list <notmuch@notmuchmail.org>\r
+Subject: Re: notmuchsync: handling of the deleted tag\r
+In-Reply-To: <87vd3z7dhm.fsf@SSpaeth.de>\r
+References: <87bp7vewa5.fsf@raven.defaultvalue.org>\r
+ <87mxrcsb8a.fsf@SSpaeth.de>   <87r5gnomt2.fsf@raven.defaultvalue.org>\r
+       <87hbfnmiux.fsf@yoom.home.cworth.org>   <87oc9vf17n.fsf@SSpaeth.de>\r
+ <m34obmdzjj.fsf@x201s.gr8dns.org>     <87pqua82os.fsf@yoom.home.cworth.org>\r
+ <87vd3z7dhm.fsf@SSpaeth.de>\r
+User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1\r
+       (i486-pc-linux-gnu)\r
+Date: Sun, 14 Nov 2010 17:23:57 -0800\r
+Message-ID: <7nlj4vqt02.fsf@revenuewire.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Mon, 15 Nov 2010 01:33:50 -0000\r
+\r
+On Sun, 14 Nov 2010 23:21:41 +0100, Sebastian Spaeth <Sebastian@SSpaeth.de> wrote:\r
+> This one is a simple one-liner as of notmuch 0.4:\r
+> > \r
+> >     notmuch search --output=files tag:deleted -print0 | xargs -0 rm\r
+> \r
+\r
+Having just switched from notmuchsync the synchronizing power of 0.5 and\r
+being as how I'm missing the pruning feature I gave this a try and found\r
+that I ended up with rm complaining that the file name length being too\r
+long or simply file not found.  Seems like the  \r
+xargs -0 rm \r
+portion was choking as all the file names were being contcatenated.\r
+Perhaps the null character line ending is missing?  At this point I\r
+haven't investigated further.    \r
+\r
+So for anyone else who is stuck adjusting the one liner like \r
+notmuch search --output=files tag:deleted -print0 | xargs -d '\n' rm\r
+\r
+worked for me.\r
+\r
+PS Thanks to Sebastian and Carl and everyone else who has built notmuch\r
+I'm really enjoying using it! :)\r
+\r
+Jeff\r
+\r
+\r
+> Uhh, that is a neat line, and a neat trick. (is it on the emacstips page\r
+> already? ;-))\r
+\r
+\r
+> \r
+> Sebastian\r
+Non-text part: application/pgp-signature\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r
+\r
+-- \r
+Jeff Richards\r
+jrichards@revenuewire.com\r
+\r
+\r