Re: Hi all
[notmuch-archives.git] / ea / 9cc272ae5d351a0189cfee3fca5454d8093216
1 Return-Path: <prvs=0013a4eec=jrosenthal@jhu.edu>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 40CEA431FB6\r
6         for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 08:51:50 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id IGjAtEGpj9Dg for <notmuch@notmuchmail.org>;\r
16         Thu, 27 Jan 2011 08:51:49 -0800 (PST)\r
17 X-Greylist: delayed 3601 seconds by postgrey-1.32 at olra;\r
18         Thu, 27 Jan 2011 08:51:49 PST\r
19 Received: from ipex4.johnshopkins.edu (ipex4.johnshopkins.edu\r
20         [128.220.161.141]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id A9FC7431FB5\r
23         for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 08:51:49 -0800 (PST)\r
24 X-IronPort-AV: E=Sophos;i="4.60,386,1291611600"; d="scan'208";a="43217791"\r
25 Received: from c-69-255-36-229.hsd1.md.comcast.net (HELO lucky.home)\r
26         ([69.255.36.229])\r
27         by ipex4.johnshopkins.edu with ESMTP/TLS/AES256-SHA;\r
28         27 Jan 2011 10:51:43 -0500\r
29 Received: from jkr by lucky.home with local (Exim 4.72)\r
30         (envelope-from <jrosenthal@jhu.edu>)\r
31         id 1PiU8M-0003iP-HX; Thu, 27 Jan 2011 10:51:42 -0500\r
32 From: Jesse Rosenthal <jrosenthal@jhu.edu>\r
33 To: notmuch@notmuchmail.org\r
34 Subject: Remote usage script updated\r
35 User-Agent: Notmuch/0.5-56-g74cb76a (http://notmuchmail.org) Emacs/23.2.1\r
36         (i486-pc-linux-gnu)\r
37 Date: Thu, 27 Jan 2011 10:51:42 -0500\r
38 Message-ID: <87oc72xs35.fsf@lucky.home>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain; charset=us-ascii\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Thu, 27 Jan 2011 16:51:50 -0000\r
54 \r
55 Dear all,\r
56 \r
57 Just a note to say that I finally got around to updating the remote\r
58 usage script on the wiki to what I'm using now. With "--format=raw" in,\r
59 it's all pretty straightforward. The only things the script does now\r
60 are:\r
61 \r
62 1. Produces a slight pause in the "notmuch show" output to avoid that\r
63    weird bug where emacs leaves off every tenth message or so.\r
64 \r
65 2. Locally caches raw messages (i.e. when --format=raw) is called. This\r
66    usually happens when getting attachments, so this is a nice way to\r
67    avoid having to download large attachments repeatedly.\r
68 \r
69    Note this just caches based on msg-id (or a hash thereof, to avoid\r
70    strange characters in file names). That means that if an attachment\r
71    is deleted on the server, the cache will be out of date. An easy way\r
72    to fix this would be to make the cache file name a concatenation of\r
73    the msg-id hash (check that first) and the hash of the actual message\r
74    (check that if the msg-id hash is there). I might put this in in the\r
75    future, especially if anyone else is using the script.\r
76 \r
77 3. Escapes dollar signs in the msg-id to make shell-quoting over ssh\r
78    work.\r
79 \r
80 I've actually switched over to keeping my messages on my IMAP server and\r
81 using this remote script on all of my computers. It avoids any need for\r
82 syncing. It's been working very well for me so far.\r
83 \r
84 A future feature might be to integrate the ControlMaster feature of\r
85 openssh into the script, instead of having to open a connection\r
86 manually, but there are some complications there (dead sockets still\r
87 around if you go offline, etc.).\r
88 \r
89 Best,\r
90 Jesse\r
91 \r