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