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 17BC4429E27 for ; Sun, 20 Nov 2011 10:36:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 M+RrE5pyCc6E for ; Sun, 20 Nov 2011 10:36:01 -0800 (PST) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 593C5431FD0 for ; Sun, 20 Nov 2011 10:36:01 -0800 (PST) Received: by bkaq10 with SMTP id q10so6299106bka.26 for ; Sun, 20 Nov 2011 10:35:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=G8KPs7awpCSAGG4HEOdxZkgFx+L9fEc4mf2ubVN8SiE=; b=mE4/HY4mhO48A9mUUR9ToGutNJEeX391V94eRhKN/RPRPbzcqmhrU2kWcqBGvqC9P4 1+jdZXV8j3I0eTgMlKzhexOy2dPwyorFbY+mghi54CAZtj5jSHTAC9Z5C9ggFZfcM8Z3 GRfqgvqWdaSmvWK8/Z7aZeKMo4hrv0G6Agwl8= Received: by 10.205.118.132 with SMTP id fq4mr4131029bkc.126.1321814159895; Sun, 20 Nov 2011 10:35:59 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id z7sm5442345bka.1.2011.11.20.10.35.58 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Nov 2011 10:35:58 -0800 (PST) From: Dmitry Kurochkin To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH v2] Output unmodified Content-Type header value for JSON format. In-Reply-To: <87sjlktgi6.fsf@zancas.localnet> References: <1321659905-24367-1-git-send-email-dmitry.kurochkin@gmail.com> <1321676321-27745-1-git-send-email-dmitry.kurochkin@gmail.com> <87sjlktgi6.fsf@zancas.localnet> User-Agent: Notmuch/0.10~rc1+20~gec94ced (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sun, 20 Nov 2011 22:35:42 +0400 Message-ID: <87obw6prpd.fsf@gmail.com> 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: Sun, 20 Nov 2011 18:36:02 -0000 On Sat, 19 Nov 2011 08:59:29 -0400, David Bremner wrote: > On Sat, 19 Nov 2011 08:18:41 +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; > > I haven't analyzed the substance of your patch yet, but I did have a > couple thoughts while reading your mail. > > - It seems that every time we change the json format, we have a round of > suffering because people are unable to detect a mismatch between their > emacs code and the cli. Not that this is your problem necessarily, but > it would be nice if someone (TM), would come up with some version info > for the json output, and a patch to check it on the emacs side. > IMO this is a good idea. > - The previous point is a bit of a counterargument to this, but in > general, I think I prefer patches that modify the core seperate from > those that do emacs (or python, or ...) stuff. > I couls separate it. I made is a single patch to avoid having a revision with broken emacs UI (and tests). Regards, Dmitry > - I understand you want to make your patches reviewable without applying > by including lots of context, but at a certain point it has actually > the opposite effect for me. I just don't read 900+ line emails ;). Of > course, I can still apply the patch and look at it, so it's really up > to you. > > d