From c0721d6d0b8f61a0aea373b7d792e1a61b9f84d8 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Fri, 25 May 2012 20:03:32 +0300 Subject: [PATCH] Re: Emacs notmuch-show consistently reports "End of file during parsing" --- 27/061330573ae53750e81bfb9de65781a1b6540b | 165 ++++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 27/061330573ae53750e81bfb9de65781a1b6540b diff --git a/27/061330573ae53750e81bfb9de65781a1b6540b b/27/061330573ae53750e81bfb9de65781a1b6540b new file mode 100644 index 000000000..8d671f0a2 --- /dev/null +++ b/27/061330573ae53750e81bfb9de65781a1b6540b @@ -0,0 +1,165 @@ +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 6B74C431FBC + for ; Fri, 25 May 2012 10:03:26 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 Bt4zhCSNo4Yq for ; + Fri, 25 May 2012 10:03:23 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 39232431FB6 + for ; Fri, 25 May 2012 10:03:23 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 9FF45100641; Fri, 25 May 2012 20:03:32 +0300 (EEST) +From: Tomi Ollila +To: Tellman +Subject: Re: Emacs notmuch-show consistently reports "End of file during + parsing" +In-Reply-To: <20120525155331.GA80819@amazon.com> +References: <20120523142301.GC10576@amazon.com> + + <20120523183459.GA34543@amazon.com> + + <20120525155331.GA80819@amazon.com> +User-Agent: Notmuch/0.13+38~g944a859 (http://notmuchmail.org) Emacs/23.1.1 + (x86_64-redhat-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Cc: "notmuch@notmuchmail.org" +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: Fri, 25 May 2012 17:03:26 -0000 + +On Fri, May 25 2012, Tellman wrote: + +> I installed gmime 2.4.28 and notmuch 0.12 and that combination seems to +> work fine. +> +> I'm not sure what the problem was, but it seems OK now. + +Good that it works for you! + +Do you happen to know which version of gmime you were using previously -- +http://www.macports.org/ports.php?by=library&substr=gmime shows version +2.4.23 (but that is just something that internet search presented me) + +> Thanks for your help. +> +> --Ed + +Tomi + + +> +> On Wed, May 23, 2012 at 11:04:32PM -0700, Tomi Ollila wrote: +>> On Wed, May 23 2012, Tellman wrote: +>> +>> > Thanks for the quick response. +>> > +>> > I have gmime 2.4 installed. +>> +>> Gmime 2.4.x -- what is the value if 'x' :D ? +>> +>> > I tried the search and show commands and the responses all looked OK to +>> > me, although I wasn't quite sure what to look for. I didn't see any +>> > error messages. +>> +>> > Here's a sample: +>> > +>> > (json-read)[[[{"id": "5qt490ipfnbu1z.fsf@78ca391a1b82.ant.amazon.com", "match": true, "filename": "/Users/edwint/mail/INBOX/sent/cur/1337734168.4985_755109_1.78ca391a1b82.ant.amazon.com:2,S", "timestamp": 1337734168, "date_relative": "Yest. 17:49", "tags": ["inbox"], "headers": {"Subject": "hi", "From": "Ed Tellman ", "To": "edwint@amazon.com", "Cc": "", "Bcc": "", "Date": "Tue, 22 May 2012 17:49:28 -0700"}, "body": [{"id": 1, "content-type": "text/plain", "content": "hi\n"}]}, []]]]78ca391a1b82:gmime +>> > +>> > I tried a bunch of other ones, and they all looked similar. +>> +>> +>> Putting cursor /here (use monospace font ;) and entering C-x C-e parses ...... +>> | +>> | +>> V +>> (json-read)[[[{"id": "5qt490ipfnbu1z.fsf@78ca391a1b82.ant.amazon.com", "match": true, "filename": "/Users/edwint/mail/INBOX/sent/cur/1337734168.4985_755109_1.78ca391a1b82.ant.amazon.com:2,S", "timestamp": 1337734168, "date_relative": "Yest. 17:49", "tags": ["inbox"], "headers": {"Subject": "hi", "From": "Ed Tellman ", "To": "edwint@amazon.com", "Cc": "", "Bcc": "", "Date": "Tue, 22 May 2012 17:49:28 -0700"}, "body": [{"id": 1, "content-type": "text/plain", "content": "hi\n"}]}, []]]] +>> +>> ...... the message OK... You could next try to enter +>> +>> id:"5qt490ipfnbu1z.fsf@78ca391a1b82.ant.amazon.com" +>> +>> into your notmuch-hello search bar and see if that message shows ok. +>> +>> If that does then just some threads makes the parsing fail. +>> +>> I have had similar experience: when using gmime 2.4.21 some threads +>> (note: not all) make notmuch segfault. Updating to 2.4.25 fixed that +>> problem. You may have the same problem or not. +>> +>> > +>> > Thanks, +>> > --Ed +>> +>> Tomi +>> +>> > +>> > +>> > On Wed, May 23, 2012 at 08:25:26AM -0700, Tomi Ollila wrote: +>> >> On Wed, May 23 2012, Tellman wrote: +>> >> +>> >> > I recently installed notmuch on my OS X laptop. Searching works fine--it +>> >> > seems to find all my mail and displays the subject lines, dates, etc., +>> >> > correctly. +>> >> +>> >> > However, the emacs mode is unable to display the contents of any of the +>> >> > messages. I see the subjects correctly, but when I try to view the +>> >> > actual message, I see: "End of file during parsing" and an empty page. +>> >> +>> >> > I have OS X Lion, Emacs.App, version 23.2.1, and notmuch version 0.11 +>> >> > installed via MacPorts. +>> >> > +>> >> > Does anyone have an idea what might be causing this? +>> >> +>> >> What version of gmime is installed ? +>> >> +>> >> Do the following on command line (the l33t... below is +>> >> actually a date 'Tue May 15 23:10:56 2012 UTC'). +>> >> +>> >> notmuch search --output=threads 1337123456.. +>> >> +>> >> and then execute +>> >> +>> >> notmuch show --format=json thread:000000000000XXXX +>> >> +>> >> (take the XXX from the thread list outputted before +>> >> -- try many of those and see whether something fails +>> >> during execution...). +>> >> +>> >> > Thanks, +>> >> > --Ed Tellman +>> >> +>> >> Tomi +>> > _______________________________________________ +>> > notmuch mailing list +>> > notmuch@notmuchmail.org +>> > http://notmuchmail.org/mailman/listinfo/notmuch +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch -- 2.26.2