Remote usage script updated
authorJesse Rosenthal <jrosenthal@jhu.edu>
Thu, 27 Jan 2011 15:51:42 +0000 (10:51 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:47 +0000 (09:37 -0800)
ea/9cc272ae5d351a0189cfee3fca5454d8093216 [new file with mode: 0644]

diff --git a/ea/9cc272ae5d351a0189cfee3fca5454d8093216 b/ea/9cc272ae5d351a0189cfee3fca5454d8093216
new file mode 100644 (file)
index 0000000..fcc38df
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <prvs=0013a4eec=jrosenthal@jhu.edu>\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 40CEA431FB6\r
+       for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 08:51:50 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\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 IGjAtEGpj9Dg for <notmuch@notmuchmail.org>;\r
+       Thu, 27 Jan 2011 08:51:49 -0800 (PST)\r
+X-Greylist: delayed 3601 seconds by postgrey-1.32 at olra;\r
+       Thu, 27 Jan 2011 08:51:49 PST\r
+Received: from ipex4.johnshopkins.edu (ipex4.johnshopkins.edu\r
+       [128.220.161.141]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A9FC7431FB5\r
+       for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 08:51:49 -0800 (PST)\r
+X-IronPort-AV: E=Sophos;i="4.60,386,1291611600"; d="scan'208";a="43217791"\r
+Received: from c-69-255-36-229.hsd1.md.comcast.net (HELO lucky.home)\r
+       ([69.255.36.229])\r
+       by ipex4.johnshopkins.edu with ESMTP/TLS/AES256-SHA;\r
+       27 Jan 2011 10:51:43 -0500\r
+Received: from jkr by lucky.home with local (Exim 4.72)\r
+       (envelope-from <jrosenthal@jhu.edu>)\r
+       id 1PiU8M-0003iP-HX; Thu, 27 Jan 2011 10:51:42 -0500\r
+From: Jesse Rosenthal <jrosenthal@jhu.edu>\r
+To: notmuch@notmuchmail.org\r
+Subject: Remote usage script updated\r
+User-Agent: Notmuch/0.5-56-g74cb76a (http://notmuchmail.org) Emacs/23.2.1\r
+       (i486-pc-linux-gnu)\r
+Date: Thu, 27 Jan 2011 10:51:42 -0500\r
+Message-ID: <87oc72xs35.fsf@lucky.home>\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: Thu, 27 Jan 2011 16:51:50 -0000\r
+\r
+Dear all,\r
+\r
+Just a note to say that I finally got around to updating the remote\r
+usage script on the wiki to what I'm using now. With "--format=raw" in,\r
+it's all pretty straightforward. The only things the script does now\r
+are:\r
+\r
+1. Produces a slight pause in the "notmuch show" output to avoid that\r
+   weird bug where emacs leaves off every tenth message or so.\r
+\r
+2. Locally caches raw messages (i.e. when --format=raw) is called. This\r
+   usually happens when getting attachments, so this is a nice way to\r
+   avoid having to download large attachments repeatedly.\r
+\r
+   Note this just caches based on msg-id (or a hash thereof, to avoid\r
+   strange characters in file names). That means that if an attachment\r
+   is deleted on the server, the cache will be out of date. An easy way\r
+   to fix this would be to make the cache file name a concatenation of\r
+   the msg-id hash (check that first) and the hash of the actual message\r
+   (check that if the msg-id hash is there). I might put this in in the\r
+   future, especially if anyone else is using the script.\r
+\r
+3. Escapes dollar signs in the msg-id to make shell-quoting over ssh\r
+   work.\r
+\r
+I've actually switched over to keeping my messages on my IMAP server and\r
+using this remote script on all of my computers. It avoids any need for\r
+syncing. It's been working very well for me so far.\r
+\r
+A future feature might be to integrate the ControlMaster feature of\r
+openssh into the script, instead of having to open a connection\r
+manually, but there are some complications there (dead sockets still\r
+around if you go offline, etc.).\r
+\r
+Best,\r
+Jesse\r
+\r