Re: [PATCH 2/2] emacs: regard text/calendar as text/x-vcalendar
authorDavid Edmondson <dme@dme.org>
Wed, 8 Feb 2012 17:06:45 +0000 (17:06 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:18 +0000 (09:44 -0800)
00/45e9f91088fab66bb5816fa532cd42b010c7d0 [new file with mode: 0644]

diff --git a/00/45e9f91088fab66bb5816fa532cd42b010c7d0 b/00/45e9f91088fab66bb5816fa532cd42b010c7d0
new file mode 100644 (file)
index 0000000..d86a6d5
--- /dev/null
@@ -0,0 +1,122 @@
+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 olra.theworths.org (Postfix) with ESMTP id 76953431FAF\r
+       for <notmuch@notmuchmail.org>; Wed,  8 Feb 2012 09:06:50 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id auhynSyWfN6D for <notmuch@notmuchmail.org>;\r
+       Wed,  8 Feb 2012 09:06:50 -0800 (PST)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B5D72431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  8 Feb 2012 09:06:49 -0800 (PST)\r
+Received: by werp13 with SMTP id p13so616190wer.26\r
+       for <notmuch@notmuchmail.org>; Wed, 08 Feb 2012 09:06:48 -0800 (PST)\r
+Received: by 10.216.132.214 with SMTP id o64mr6951531wei.26.1328720808670;\r
+       Wed, 08 Feb 2012 09:06:48 -0800 (PST)\r
+Received: from hotblack-desiato.hh.sledj.net\r
+       (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
+       by mx.google.com with ESMTPS id cs4sm2359033wib.8.2012.02.08.09.06.46\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 08 Feb 2012 09:06:47 -0800 (PST)\r
+Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
+       id 9DBC5A0A98; Wed,  8 Feb 2012 17:06:45 +0000 (GMT)\r
+To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 2/2] emacs: regard text/calendar as text/x-vcalendar\r
+In-Reply-To:\r
+ <19a567d3e0c466ec6d73ba2039cf5a0d6c8bc3f5.1328719309.git.jani@nikula.org>\r
+References: <cover.1328719309.git.jani@nikula.org>\r
+       <19a567d3e0c466ec6d73ba2039cf5a0d6c8bc3f5.1328719309.git.jani@nikula.org>\r
+User-Agent: Notmuch/0.11.1+166~g546cb24 (http://notmuchmail.org)\r
+       Emacs/24.0.92.1 (x86_64-pc-linux-gnu)\r
+From: David Edmondson <dme@dme.org>\r
+Date: Wed, 08 Feb 2012 17:06:45 +0000\r
+Message-ID: <cunty312r16.fsf@hotblack-desiato.hh.sledj.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-Gm-Message-State:\r
+ ALoCoQn+36B5uB32jYNtNloryflHcYDKNk1Sv5kPy7aJza+wytMe8mDhVvz0TMrTOQ4a3K6523GG\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://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: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 08 Feb 2012 17:06:50 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Wed,  8 Feb 2012 16:55:16 +0000, Jani Nikula <jani@nikula.org> wrote:\r
+> Treat text/calendar as text/x-vcalendar. At least the following\r
+> produce text/calendar that parse as text/x-vcalendar:\r
+>=20\r
+> PRODID:-//Google Inc//Google Calendar 70.9054//EN\r
+> PRODID:Microsoft Exchange Server 2010\r
+>=20\r
+> Code by David Edmondson <dme@dme.org>\r
+>=20\r
+> ---\r
+>=20\r
+> I wish I had some references here, other than my own maildirs. Almost\r
+> all of the calendar invites I have are text/calendar, and all of them\r
+> parse just fine as text/x-vcalendar.\r
+> ---\r
+>  emacs/notmuch-show.el |    3 +++\r
+>  1 files changed, 3 insertions(+), 0 deletions(-)\r
+>=20\r
+> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+> index 1340380..f6588b3 100644\r
+> --- a/emacs/notmuch-show.el\r
+> +++ b/emacs/notmuch-show.el\r
+> @@ -720,6 +720,9 @@ current buffer, if possible."\r
+>            result)))\r
+>    t)\r
+>=20=20\r
+> +(defun notmuch-show-insert-part-text/calendar (msg part content-type nth=\r
+ depth declared-type)\r
+> +  (notmuch-show-insert-part-text/x-vcalendar msg part content-type nth d=\r
+epth declared-type))\r
+> +\r
+>  (defun notmuch-show-insert-part-application/octet-stream (msg part conte=\r
+nt-type nth depth declared-type)\r
+\r
+It seems that "text/calendar" is officially sanctioned and\r
+"text/x-vcalendar" is old and being phased out, so these should really\r
+be the other way around (i.e. text/calendar is the 'real' function that\r
+is called by the text/x-vcalendar variant).\r
+\r
+>    ;; If we can deduce a MIME type from the filename of the attachment,\r
+>    ;; do so and pass it on to the handler for that type.\r
+> --=20\r
+> 1.7.1\r
+>=20\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk8yq6UACgkQaezQq/BJZRZvFgCeI/dok59pj+N+vGJN2Dz1CUXG\r
+GAwAn3ZJWrEnO0lTg02l8MMPYUhF4BUU\r
+=UKZX\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r