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 CB0DD4196F4 for ; Tue, 6 Apr 2010 05:00:57 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.5 X-Spam-Level: X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5 tests=[BAYES_05=-0.5] autolearn=ham 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 iPQnzE98lXQR for ; Tue, 6 Apr 2010 05:00:57 -0700 (PDT) Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57]) by olra.theworths.org (Postfix) with ESMTP id F2F7B4196F0 for ; Tue, 6 Apr 2010 05:00:56 -0700 (PDT) Received: from fctnnbsc30w-142167190087.pppoe-dynamic.high-speed.nb.bellaliant.net ([142.167.190.87] helo=rocinante.cs.unb.ca) by pivot.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Nz7Sh-0007hi-TP; Tue, 06 Apr 2010 09:00:55 -0300 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.71) (envelope-from ) id 1Nz7Sc-0002Aa-Bx; Tue, 06 Apr 2010 09:00:50 -0300 From: David Bremner To: Jason White , notmuch Subject: Re: [notmuch] Message parsing issue? In-Reply-To: <20100403072540.GA15606@jdc.jasonjgw.net> References: <20100403072540.GA15606@jdc.jasonjgw.net> Date: Tue, 06 Apr 2010 09:00:50 -0300 Message-ID: <87fx384wp9.fsf@rocinante.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender-Verified: bremner@pivot.cs.unb.ca 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, 06 Apr 2010 12:00:57 -0000 On Sat, 3 Apr 2010 18:25:40 +1100, Jason White wrote: > The problem is that for certain messages, notmuch show treats the entire > message, including, significantly, all of the headers, as the message body. > > An example is attached, with "notmuch show" output as the first file and the > original message as the second. > > Suggestions are welcome. One thing I noticed was that the message you sent (at least, if I got the correct attachment), had X-Spam headers _before_ the "From " line. If I remove those headers then the message displays Ok. It is probably not worth putting too much effort into that display code since it is in the process of being completely rewritten. Perhaps an extra pass through "formail" can format you message headers a bit more nicely? David