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 57F1A431FD0 for ; Tue, 20 Dec 2011 00:40:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 VcrfLkIrZZFk for ; Tue, 20 Dec 2011 00:40:49 -0800 (PST) Received: from mail-gy0-f181.google.com (mail-gy0-f181.google.com [209.85.160.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id DAC6E431FB6 for ; Tue, 20 Dec 2011 00:40:49 -0800 (PST) Received: by ghrr19 with SMTP id r19so855134ghr.26 for ; Tue, 20 Dec 2011 00:40:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type:content-transfer-encoding; bh=WfBWknbA8+JLJFsSq6OjXwNw1q6Rn/moMMHla32L9SQ=; b=vw1mOihMbGh3gtgxBcM1TtDW+ZZF/tr+I5Ax3LRVho5rA7tAP8peOFVaCrzH9z9cH5 z2CuFJuP3lJpgUjZK+VX/avqWmpuV4qff2iS8Ew05n2WVcFkbd+yRjpVsCc9KOrZGLrT v6bjknvjE/y8vq+bFuAEmi2cjAy91idSij7ak= Received: by 10.236.139.199 with SMTP id c47mr1603326yhj.113.1324370449426; Tue, 20 Dec 2011 00:40:49 -0800 (PST) Received: from localhost (c-68-80-94-73.hsd1.pa.comcast.net. [68.80.94.73]) by mx.google.com with ESMTPS id 5sm3234377anz.14.2011.12.20.00.40.47 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Dec 2011 00:40:48 -0800 (PST) From: Aaron Ecay To: Chris Gray , David Edmondson , notmuch@notmuchmail.org Subject: Re: [RFC][PATCH] emacs: Provide scaffolding so that the new `shr' HTML renderer can run. In-Reply-To: <8762hbkas3.fsf@gmail.com> References: <1324309559-7993-1-git-send-email-dme@dme.org> <8762hbkas3.fsf@gmail.com> User-Agent: Notmuch/0.10.1+56~gd709fd6 (http://notmuchmail.org) Emacs/24.0.92.3 (i386-apple-darwin10.8.0) Date: Tue, 20 Dec 2011 03:40:44 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 20 Dec 2011 08:40:50 -0000 On Mon, 19 Dec 2011 23:38:36 -0700, Chris Gray wrote: > This is working around a bug in gnus. Arguably this is true, but the real =E2=80=9Cbug=E2=80=9D (conceptual error= ) is that the MIME handling libraries and gnus are a little too tightly coupled. Why should notmuch users have to load gnus (gnus-art.el does (require 'gnus), which brings in tens of thousands of lines of Elisp)[1], or customize gnus-* variables to use general-purpose MIME viewing, HTML rendering facilities? The best GNUS-side solution would be to make mm-shr GNUS-agnostic, and probably to introduce shr-{inhibit,blocked}-images as customizable variables in their own right (which could inherit their values from the gnus-* versions under the right circumstances). I hope that the GNUS folks are receptive to this approach, but if they aren=E2=80=99t I think it=E2=80=99s better for notmuch to not go the way of= requiring that GNUS be loaded to function. Aaron [1] I see that (featurep 'gnus) returns t for me, so that horse is already out of the barn. But it isn=E2=80=99t something we should be seeking to perpetuate. --=20 Aaron Ecay