--- /dev/null
+Return-Path: <dme@dme.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id E6DDE6DE1995\r
+ for <notmuch@notmuchmail.org>; Fri, 15 Jan 2016 05:35:05 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.475\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.475 tagged_above=-999 required=5 tests=[AWL=0.542, \r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652,\r
+ UNPARSEABLE_RELAY=0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id BMj-moHRGbyJ for <notmuch@notmuchmail.org>;\r
+ Fri, 15 Jan 2016 05:35:04 -0800 (PST)\r
+Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com\r
+ [74.125.82.65]) by arlo.cworth.org (Postfix) with ESMTPS id AB26B6DE00DD for\r
+ <notmuch@notmuchmail.org>; Fri, 15 Jan 2016 05:35:03 -0800 (PST)\r
+Received: by mail-wm0-f65.google.com with SMTP id u188so2889130wmu.0\r
+ for <notmuch@notmuchmail.org>; Fri, 15 Jan 2016 05:35:03 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=dme-org.20150623.gappssmtp.com; s=20150623;\r
+ h=from:to:subject:date:message-id;\r
+ bh=U/OXyxkcr01LqFxN/K0oN0lteztNnfsPXXPeyzDhC48=;\r
+ b=Re6MSrJRDdZZz5DttdUerN2WZCk0nkT2hSumVGSxVb70roBw2qIyhbnFDYygp/lRjt\r
+ a2MpikgqTezD03gQolKMspPgo0Wkzqsm/bUOaHf+1+wKpfCdAfxw4CTkHzX1yf0qv3Td\r
+ 9nGzEswv/CID2lJHi7puxJR6SfHhMj1gPNqHEO5WQHvCIChB2hPI4IhZt8D1yGlt4Av5\r
+ nsu6vWP7O+3zfRStDcf1iNm7gdrddQMPH5w0OUJQJl/qmkF2rwsMYb79jZOSfndDdRMz\r
+ dE0rtg71NnQl01LkODQvvW7lKjnnUhKhjvCuao9QpeYGDcuZGhPYazEgt/d1llJr6uc9\r
+ h8NQ==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:subject:date:message-id;\r
+ bh=U/OXyxkcr01LqFxN/K0oN0lteztNnfsPXXPeyzDhC48=;\r
+ b=KihUcb1icoF8p4iaBld0ZoWYjA9K1Hbz98IYdW4gbqzL7vAxJh4NwDjZfd/S/rIgvG\r
+ PSbV4Qy6BVhVPUBOR6qNCYtdMTpU+n1nehaEJQhr+Cf04XS7kQjxPcvcMjSw1pN1jg8a\r
+ 789tnhz/RSV0ylD0cazjcUIapAHRnqXwiUKcMv3WdvxjAnxGlvBnSMF3yLM1NHERxPcZ\r
+ Yk8D5X9LKQyOLvizYMEg1q9fthiZdUv+u7U9ZU6+rwznLNQ1VkdjJnNedHKrMqU0tL/N\r
+ 46ARgQCTAoRO6sYSCkn1gNMn1XKpjUaNZ4N3uGpmiihqv5b2xW8lvabBw4iPviWHW6LG\r
+ dD4Q==\r
+X-Gm-Message-State:\r
+ AG10YOSKF5lAiSZnWC65xHOTxfzaL7UYNNEj7awQvYR2xZD2Is6jwhztiZJWUDGohBI1EQ==\r
+X-Received: by 10.28.216.211 with SMTP id p202mr3577545wmg.84.1452864900475;\r
+ Fri, 15 Jan 2016 05:35:00 -0800 (PST)\r
+Received: from disaster-area.hh.sledj.net\r
+ ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+ by smtp.gmail.com with ESMTPSA id id1sm10648439wjb.19.2016.01.15.05.34.59\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Fri, 15 Jan 2016 05:34:59 -0800 (PST)\r
+Received: from localhost (disaster-area.hh.sledj.net [local])\r
+ by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 5661bf40\r
+ for <notmuch@notmuchmail.org>; Fri, 15 Jan 2016 13:34:58 +0000 (UTC)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [RFC][PATCH v1] Allow content preference based on message content.\r
+Date: Fri, 15 Jan 2016 13:34:57 +0000\r
+Message-Id: <1452864898-9719-1-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 2.6.3\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 15 Jan 2016 13:35:06 -0000\r
+\r
+\r
+Previously in #notmuch we discussed how it would be convenient to\r
+control part preferences on the basis of message attributes. This\r
+patch is an attempt to provide that.\r
+\r
+My own setting for `notmuch-multipart/alternative-discouraged' is:\r
+\r
+(setq notmuch-multipart/alternative-discouraged\r
+ '(cond\r
+ ((string-match "9195404@capita-intouch.co.uk" from)\r
+ '("text/plain"))\r
+ (t\r
+ '("text/html" "multipart/related"))))\r
+\r
+That is, discourage text/plain and multipart/related unless the\r
+message is sent from 9195404@capita-intouch.co.uk, in which case\r
+discourage text/plain (which for this sender is always another copy of\r
+the HTML content, as HTML).\r
+\r
+David Edmondson (1):\r
+ emacs: Allow part preferences to depend on message content.\r
+\r
+ emacs/notmuch-lib.el | 39 +++++++++++++++++++++++++++++++++++----\r
+ emacs/notmuch-mua.el | 2 +-\r
+ emacs/notmuch-show.el | 2 +-\r
+ 3 files changed, 37 insertions(+), 6 deletions(-)\r
+\r
+-- \r
+2.2.0\r
+\r