From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 89B99431FAF for ; Tue, 7 Oct 2014 00:53:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 saKDBhZztbzK for ; Tue, 7 Oct 2014 00:53:50 -0700 (PDT) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 91567431FAE for ; Tue, 7 Oct 2014 00:53:50 -0700 (PDT) Received: by mail-wi0-f171.google.com with SMTP id em10so6928653wid.4 for ; Tue, 07 Oct 2014 00:53:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:user-agent:from:date:message-id :mime-version:content-type; bh=oAGRjXpVwJHbQXCsZjPI52plarxlWaDyMEnrNU5mchQ=; b=M7uIPLJp0nabt/5uboq1+JELfzUvM0KSXA9r5EtF7AoqS+mtIzUOxbGiGAuGMZMCe2 airKOH4/pL0UwdiiGtoMUg1EGSHp1ZNtIK/NQSV821dW5bCCw10MJ0PEMrEby/+ZI0hP 3J8asEfC522Q2FAtA0rvk9q3shSgQsR/5+b2cW/zXCgQ8sCpz371TmgJbn0QegQYP/dz xy67j5epIqJwMswG8FL/aEtwicRxajfRadFGWJXAhBBVjKPOgeNllkTtj+JmNvtJGmNs OufpLhk4A6CLD0jLVBA/mlBxOyMN/igrIY3XorrIJ9tWVJZVHZ6zjBQ5FXh4UHSBqWu+ oXCg== X-Gm-Message-State: ALoCoQljQ5AkskWzo+Qy/igDDkj9e10aHyCLFRQJZoQsAAMFf9Mjb6JX0nu4bCHGdq/UyX10k251 X-Received: by 10.180.86.167 with SMTP id q7mr2543986wiz.21.1412668429291; Tue, 07 Oct 2014 00:53:49 -0700 (PDT) Received: from localhost ([2a01:348:1a2:1:bc6b:bac4:2954:d414]) by mx.google.com with ESMTPSA id wu10sm11556227wjb.8.2014.10.07.00.53.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Oct 2014 00:53:48 -0700 (PDT) To: notmuch@notmuchmail.org Subject: RFC: notmuch-cache.el: simple caching of MIME parts User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-apple-darwin13.3.0) From: David Edmondson Date: Tue, 07 Oct 2014 08:53:47 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: Tue, 07 Oct 2014 07:53:55 -0000 --=-=-= Content-Type: text/plain I've been using remote-notmuch over a 3G connection quite a lot recently. Dragging down the same MIME part more than once is annoying, so here is a very simple filesystem based cache of MIME parts for notmuch. It's integrated using defadvice for now, but a cleaner approach is obviously possible. No suggestion that this should be integrated - it's just a toy to prompt discussion. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=notmuch-cache.el~ Content-Transfer-Encoding: base64 KGRlZnVuIG5vdG11Y2gtY2FjaGUtZ2V0IChpZCBwYXJ0KQogICJSZXR1cm4gYSBjYWNoZWQgY29w eSBvZiBJRCdzIE1JTUUgUEFSVCwgb3IgbmlsLiIKICBuaWwpCgooZGVmdW4gbm90bXVjaC1jYWNo ZS1wdXQgKGlkIHBhcnQgY29udGVudCkKICAiQ2FjaGUgYSBjb3B5IG9mIElEJ3MgTUlNRSBQQVJU IHVzaW5nIENPTlRFTlQuIgogICkKCihkZWZhZHZpY2Ugbm90bXVjaC1nZXQtYm9keXBhcnQtaW50 ZXJuYWwK --=-=-=--