Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 87 / 883d5ac16bb8b61d41f03dfaba722f4446982c
1 Return-Path: <jani@nikula.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id CBFEC431FAE\r
6         for <notmuch@notmuchmail.org>; Wed,  8 Feb 2012 08:55:31 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id n5Hrsspw8vEA for <notmuch@notmuchmail.org>;\r
17         Wed,  8 Feb 2012 08:55:27 -0800 (PST)\r
18 Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
19         [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 5F257431FB6\r
22         for <notmuch@notmuchmail.org>; Wed,  8 Feb 2012 08:55:27 -0800 (PST)\r
23 Received: by mail-qw0-f53.google.com with SMTP id k1so601534qaf.5\r
24         for <notmuch@notmuchmail.org>; Wed, 08 Feb 2012 08:55:27 -0800 (PST)\r
25 Received: by 10.224.106.194 with SMTP id y2mr7034400qao.87.1328720127052;\r
26         Wed, 08 Feb 2012 08:55:27 -0800 (PST)\r
27 Received: from localhost (nikula.org. [92.243.24.172])\r
28         by mx.google.com with ESMTPS id fh6sm3852677qab.22.2012.02.08.08.55.25\r
29         (version=SSLv3 cipher=OTHER); Wed, 08 Feb 2012 08:55:26 -0800 (PST)\r
30 From: Jani Nikula <jani@nikula.org>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [PATCH 2/2] emacs: regard text/calendar as text/x-vcalendar\r
33 Date: Wed,  8 Feb 2012 16:55:16 +0000\r
34 Message-Id:\r
35  <19a567d3e0c466ec6d73ba2039cf5a0d6c8bc3f5.1328719309.git.jani@nikula.org>\r
36 X-Mailer: git-send-email 1.7.1\r
37 In-Reply-To: <cover.1328719309.git.jani@nikula.org>\r
38 References: <cover.1328719309.git.jani@nikula.org>\r
39 In-Reply-To: <cover.1328719309.git.jani@nikula.org>\r
40 References: <cover.1328719309.git.jani@nikula.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Wed, 08 Feb 2012 16:55:32 -0000\r
54 \r
55 Treat text/calendar as text/x-vcalendar. At least the following\r
56 produce text/calendar that parse as text/x-vcalendar:\r
57 \r
58 PRODID:-//Google Inc//Google Calendar 70.9054//EN\r
59 PRODID:Microsoft Exchange Server 2010\r
60 \r
61 Code by David Edmondson <dme@dme.org>\r
62 \r
63 ---\r
64 \r
65 I wish I had some references here, other than my own maildirs. Almost\r
66 all of the calendar invites I have are text/calendar, and all of them\r
67 parse just fine as text/x-vcalendar.\r
68 ---\r
69  emacs/notmuch-show.el |    3 +++\r
70  1 files changed, 3 insertions(+), 0 deletions(-)\r
71 \r
72 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
73 index 1340380..f6588b3 100644\r
74 --- a/emacs/notmuch-show.el\r
75 +++ b/emacs/notmuch-show.el\r
76 @@ -720,6 +720,9 @@ current buffer, if possible."\r
77               result)))\r
78    t)\r
79  \r
80 +(defun notmuch-show-insert-part-text/calendar (msg part content-type nth depth declared-type)\r
81 +  (notmuch-show-insert-part-text/x-vcalendar msg part content-type nth depth declared-type))\r
82 +\r
83  (defun notmuch-show-insert-part-application/octet-stream (msg part content-type nth depth declared-type)\r
84    ;; If we can deduce a MIME type from the filename of the attachment,\r
85    ;; do so and pass it on to the handler for that type.\r
86 -- \r
87 1.7.1\r
88 \r