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 E74AE431FBD for ; Wed, 10 Feb 2010 14:10:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.918 X-Spam-Level: X-Spam-Status: No, score=-2.918 tagged_above=-999 required=5 tests=[AWL=1.081, BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4] autolearn=unavailable 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 AG93N3W9iYD7 for ; Wed, 10 Feb 2010 14:10:20 -0800 (PST) X-Greylist: delayed 3602 seconds by postgrey-1.32 at olra; Wed, 10 Feb 2010 14:10:20 PST Received: from ipex2.johnshopkins.edu (ipex2.johnshopkins.edu [162.129.8.151]) by olra.theworths.org (Postfix) with ESMTP id 09E63431FAE for ; Wed, 10 Feb 2010 14:10:19 -0800 (PST) X-IronPort-AV: E=Sophos;i="4.49,446,1262581200"; d="scan'208";a="302469174" Received: from c-69-255-36-229.hsd1.md.comcast.net (HELO lucky) ([69.255.36.229]) by ipex2.johnshopkins.edu with ESMTP/TLS/AES256-SHA; 10 Feb 2010 16:10:16 -0500 Received: from jkr by lucky with local (Exim 4.69) (envelope-from ) id 1NfJoy-0006fm-3O; Wed, 10 Feb 2010 16:10:04 -0500 From: Jesse Rosenthal To: Carl Worth , notmuch@notmuchmail.org In-Reply-To: <87vde4derz.fsf@yoom.home.cworth.org> References: <87vde4derz.fsf@yoom.home.cworth.org> Date: Wed, 10 Feb 2010 16:10:03 -0500 Message-ID: <87aavg6bmc.fsf@jhu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] emacs: On getting support for inline images 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, 10 Feb 2010 22:10:22 -0000 On Wed, 10 Feb 2010 12:20:00 -0800, Carl Worth wrote: > Here are some ideas for possible (and independent) fixes: > .... > 3. We could move away from these various mm- functions for displaying > MIME parts and simply add functionality to the notmuch command line > for extracting individual MIME parts from messages, (which is > something that a non-emacs client will likely want anyway). Then we > can use the lower-level functions to display things directly. (For > example, displaying an image looks as simple as calling the > create-image and put-image functions). I really think that this (#3) is the way to go, going forward. First, it frees us up from the various slownesses and eccentricities of the mm- modes. Second, and more importantly, it makes it a *lot* easier for other clients to play, for the remote use of the existing emacs client, and for scripted command-line usage (e.g. put all the attached vcards in your maildir into a directory). I've been playing around with this a bit, for my own purposes, already. Unfortunately, my autodidact's c code is probably all sorts of wrong, and I wouldn't want to subject anyone to it. But it does seem like the way to go, and I'd be very happy to help out with any testing, if anyone goes forwad with this. Best, Jesse