From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 870B5431FD0 for ; Thu, 24 Nov 2011 08:13:32 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 And4XUFcxhJ0 for ; Thu, 24 Nov 2011 08:13:31 -0800 (PST) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 8E4F6431FB6 for ; Thu, 24 Nov 2011 08:13:31 -0800 (PST) Received: from zancas.localnet (fctnnbsc36w-156034074106.pppoe-dynamic.High-Speed.nb.bellaliant.net [156.34.74.106]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pAOGDM0N017315 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Thu, 24 Nov 2011 12:13:23 -0400 Received: from bremner by zancas.localnet with local (Exim 4.77) (envelope-from ) id 1RTbvO-00068h-Fc; Thu, 24 Nov 2011 12:13:22 -0400 From: David Bremner To: Antoine Amarilli , notmuch@notmuchmail.org Subject: Re: python-notmuch decoding error on a message In-Reply-To: <20111106221554.GA23240@clipper.ens.fr> References: <20111106221554.GA23240@clipper.ens.fr> User-Agent: Notmuch/0.10 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Thu, 24 Nov 2011 12:13:22 -0400 Message-ID: <8762i98pnh.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Thu, 24 Nov 2011 16:13:32 -0000 On Sun, 6 Nov 2011 23:15:54 +0100, Antoine Amarilli wrote: > Hello, > > The attached message makes python-notmuch crash when trying to access it (see > attached log). > > I don't know if the encoding of Subject is valid or not, but it would probably > be better anyway to ignore decoding errors and return some approximation of > Subject instead of failing like this. > I get a set of critical errors about forgetting to call g_type_init. We actually call g_type_init in the CLI now, thanks to id:"1311625989-97755-1-git-send-email-aaronecay@gmail.com" but it sounds like this probably needs to be called either in libnotmuch or in the bindings. For what it is worth this message decodes fine in the CLI d