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 7D52D4196F0 for ; Wed, 24 Mar 2010 00:32:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_40=-0.001] autolearn=ham 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 mraUzO3x6386 for ; Wed, 24 Mar 2010 00:32:38 -0700 (PDT) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by olra.theworths.org (Postfix) with ESMTP id 2B12F431FC1 for ; Wed, 24 Mar 2010 00:32:38 -0700 (PDT) Received: by wwb22 with SMTP id 22so2471728wwb.26 for ; Wed, 24 Mar 2010 00:32:37 -0700 (PDT) Received: by 10.216.88.143 with SMTP id a15mr1224487wef.6.1269415957195; Wed, 24 Mar 2010 00:32:37 -0700 (PDT) Received: from uf.hh.sledj.net (host83-217-165-81.dsl.vispa.com [83.217.165.81]) by mx.google.com with ESMTPS id x6sm7873442gvf.12.2010.03.24.00.32.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Mar 2010 00:32:35 -0700 (PDT) Received: by uf.hh.sledj.net (Postfix, from userid 1000) id 9DCE5594249; Wed, 24 Mar 2010 07:32:41 +0000 (GMT) To: notmuch@notmuchmail.org In-Reply-To: <87iq8o76r8.fsf@uf.hh.sledj.net> References: <87iq8o76r8.fsf@uf.hh.sledj.net> From: David Edmondson Date: Wed, 24 Mar 2010 07:32:41 +0000 Message-ID: <87d3yudvja.fsf@uf.hh.sledj.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] JSON based emacs UI 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: Wed, 24 Mar 2010 07:32:40 -0000 On Mon, 22 Mar 2010 14:47:39 +0000, David Edmondson wrote: > I've pushed the first stage of a JSON based emacs UI to the repository > at http://github.com/dme/notmuch (it's in the "master" branch). > > This is intended to be functionally equivalent to the current UI, though > HTML display is not present (see below). > > This is lightly tested, but if anyone else wants to give it a try I > would be interested in feedback. There were a couple of places in the > current code where I wasn't completely sure of the intention, so I may > have inadvertently diverged (notmuch-show-rewind is a good example). > > For HTML display and other improved MIME support my intention is to > enhance notmuch to allow single parts to be output (something like: > "notmuch show --part=2 id:k74hf87df.fsf@fish.org") and use that from the > UI code. No idea when I'll get to it, though. "notmuch part --part=2 id:k74hf87df.fsf@fish.org" support is pushed now and notmuch-show.el updated to use it. An attempt is made to inline all parts, including guessing the type of application/octet-stream parts using mailcap (so a file called "foo.patch" sent as type application/octet-stream will be displayed using diff-mode formatting). Image inlining doesn't work, even for simple image/jpeg attachments. I'm still puzzling over this - the output from 'notmuch part' seems fine, but the lisp code to generate the image and insert it at the right place is broken. Inline images in HTML are also likely problematic - I'm not sure that I have the framework in place for handling images specified using the cid: prefix. Next is to fix images and persuade notmuch to be more verbose about the detailed MIME structure of messages. As always, feedback (especially if something breaks) appreciated. dme. -- David Edmondson, http://dme.org