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 E07EC429E25 for ; Fri, 18 Nov 2011 20:57:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 QVQ4kTPtxbvU for ; Fri, 18 Nov 2011 20:57:27 -0800 (PST) Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU [18.9.25.15]) by olra.theworths.org (Postfix) with ESMTP id 01291431FD0 for ; Fri, 18 Nov 2011 20:57:26 -0800 (PST) X-AuditID: 1209190f-b7f6e6d0000008df-2d-4ec737361645 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id 55.85.02271.63737CE4; Fri, 18 Nov 2011 23:57:26 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id pAJ4vPG8024575; Fri, 18 Nov 2011 23:57:26 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pAJ4vOZt001847 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Fri, 18 Nov 2011 23:57:25 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1RRd1x-00076d-3K; Fri, 18 Nov 2011 23:59:57 -0500 Date: Fri, 18 Nov 2011 23:59:57 -0500 From: Austin Clements To: Dmitry Kurochkin Subject: Re: [PATCH] Output unmodified Content-Type header value for JSON format. Message-ID: <20111119045957.GQ9351@mit.edu> References: <1321659905-24367-1-git-send-email-dmitry.kurochkin@gmail.com> <87fwhkyisj.fsf@servo.finestructure.net> <87wrawq1dz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wrawq1dz.fsf@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42IRYrdT1zUzP+5ncGGeqsXVrf3sFnv2eVlc vzmT2YHZ4+5pLo+ds+6yezxbdYs5gDmKyyYlNSezLLVI3y6BK2PelEbGgqPsFZc2NrM1MHax dTFyckgImEj8Ot3DCGGLSVy4tx4ozsUhJLCPUeLwlkksEM4GRolz044yQjgnmSRetE6CcpYw Svy5sxSsn0VAVeJ/G4TNJqAhsW3/cjBbRMBQ4tbFV8wgNrNAhMSUGR+ZQGxhgWCJl8vawWxe AW2J27cuM0MMncQo8eRVFyNEQlDi5MwnLBDNWhI3/r0EauAAsqUllv/jAAlzCqhL3Dr6jR3E FhVQkZhychvbBEahWUi6ZyHpnoXQvYCReRWjbEpulW5uYmZOcWqybnFyYl5eapGuiV5uZole akrpJkZQqHNK8u9g/HZQ6RCjAAejEg+v5LRjfkKsiWXFlbmHGCU5mJREebeYHfcT4kvKT6nM SCzOiC8qzUktPsQowcGsJMLbxwqU401JrKxKLcqHSUlzsCiJ8zbucPATEkhPLEnNTk0tSC2C ycpwcChJ8O4AGSpYlJqeWpGWmVOCkGbi4AQZzgM0fBNIDW9xQWJucWY6RP4Uo6KUOG83SEIA JJFRmgfXC0tFrxjFgV4R5l0PUsUDTGNw3a+ABjMBDc7dcwRkcEkiQkqqgdHRrOjSC62bMg9m 7BXltbSUcZytxtgqEP+uouNbTFDCnFu7/Y/p2zOc/n36xwoXp6TUg/6enOxFAl//OImVW5y8 VDxJSv9kA5s7g2miLDtXQ7Ba2/Rw/vvMk3yz2Tcu8Di45LOeRohijvcs9g/OLvLLDWwqpM32 yjAE+2V8mGNwa7KM2v9PSizFGYmGWsxFxYkArqSVTSADAAA= 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: Sat, 19 Nov 2011 04:57:31 -0000 Quoth Dmitry Kurochkin on Nov 19 at 6:42 am: > Hi Jamie. > > On Fri, 18 Nov 2011 17:58:52 -0800, Jameson Graef Rollins wrote: > > On Sat, 19 Nov 2011 03:45:05 +0400, Dmitry Kurochkin wrote: > > > Before the change, notmuch used g_mime_content_type_to_string(3) > > > function to output Content-Type header value. Turns out it outputs > > > only "type/subtype" part and ignores all parameters. Also, if there > > > is no Content-Type header, default "text/plain" value is used. > > > > Hi, Dmitry. Can you explain under what circumstances you would need the > > extra content-type parameters? > > Charset is an example of a parameter which you need to render a part > correctly. Can notmuch convert to a common charset, given that, otherwise, every client is going to have to implement this conversion anyway? (And are there other examples of useful things in the content type?)