Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp593907imm; Wed, 13 Jun 2018 05:34:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIN+Ok6eWVQV/42YcAHI2kFH8pRGXzdVSAosB2OTXpc37lArmklonFD1drpMwTUTvhpl8xO X-Received: by 2002:a17:902:1121:: with SMTP id d30-v6mr5108850pla.247.1528893241441; Wed, 13 Jun 2018 05:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528893241; cv=none; d=google.com; s=arc-20160816; b=xkSps8KOe5keaFSa5hUJoi5AeI825ld/xs3WcSXRapz8Fdmb1Z7MxEPCx0hJuEFJ4l ietzc4fW5PmNN4eQNosNKPHQ9Ca0MNTwdLr1LXOUdWOnysy0F+ix5fuCPwJ7Dgso5JRz Kn9lYJkhdFB43miJZerqJzsBHvHeXy7KBgRiWJikB/CK9PsX6rNSpqGSRUBn4w5yQ6Am oNrAQK3/C9kTfbp/KJlPAiPFpXxgh5K1RLsA6Bs1wU7suQ8rjppzn5xGnjAcp/636a7d X7MoUhf296785b06xFFHevFJgQshC0hRknt8Ay5x9IPQ4KS+xJguP6sD7aTR8fabf2ZE X/Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=DfdmDtlYoXC8EVvwXGXVQnmg6dgBgYN3w51gmkC08uc=; b=FaASYswhETia1kpmNfVZBZ5nAs/aM/kn3FhmtHHSHpRoSvKr99k7ERzCM1moiDIfRk 2+1yi0ce1qD4JCmntX0YI/l623f+M2ij4cqVQsNoa4RZeF74gS+duw0n0My/rVZwlaN3 fWozIIyR1DdNeEMy+Up/neSvRn5QnHeH7mnL+p/LexEoTRR085o6SvpOgyBJedZlRy5D ht4ca8hMt9qq4XtzeYFoxuQJ2/QilkaRo0/6071NL7rPD81lJpf8dZQuXisv6nHXGKm8 g0Dz7vTohxufy3+4gtrigyJk7VnvVt/LIglVvGLml22hHGSbkTd96eU5IHV7fXlwhGxz HkFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10-v6si2324668pgt.404.2018.06.13.05.33.46; Wed, 13 Jun 2018 05:34:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935496AbeFMMcw (ORCPT + 99 others); Wed, 13 Jun 2018 08:32:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:38140 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935346AbeFMMcv (ORCPT ); Wed, 13 Jun 2018 08:32:51 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BC927AF3E; Wed, 13 Jun 2018 12:32:49 +0000 (UTC) Date: Wed, 13 Jun 2018 14:32:47 +0200 From: Jean Delvare To: Peter Zijlstra Cc: Linus Torvalds , Ingo Molnar , Linux Kernel Mailing List , Thomas Gleixner , Sebastian Andrzej Siewior , Oleg Nesterov , Paul McKenney , Paolo Bonzini , Andreas Gruenbacher Subject: Re: Quilt vs gmail (Was: [PATCH 0/3] sched/swait: Convert to full exclusive mode) Message-ID: <20180613143247.1b749c83@endymion> In-Reply-To: <20180612171420.GU12217@hirez.programming.kicks-ass.net> References: <20180612083449.100099222@infradead.org> <20180612171420.GU12217@hirez.programming.kicks-ass.net> Organization: SUSE Linux X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, Linus, Andreas, On Tue, 12 Jun 2018 19:14:20 +0200, Peter Zijlstra wrote: > On Tue, Jun 12, 2018 at 09:47:34AM -0700, Linus Torvalds wrote: > > > I do note how quilt emails are really hard to read, because that: > > > > Content-Disposition: inline > > > > makes gmail think it's flowed. > > > > Which works horribly badly for patches, surprise surprise. > > > > So I really wish quilt wouldn't do that. It does smell like a gmail > > bug, but at the same time, why would you use "Content-Disposition: > > inline" when you don't have an actual multi-part email? So I do blame > > quilt too for sending nonsensical headers. > > > > (Yes, yes, I see the "It is permissible to use Content-Disposition on > > the main body" in the RFC. But the RFC also makes it clear that it > > actually matters for how things are presented, so saying "ok, I'll do > > flowed" seems equally insane and equally technically RFC-compliant) > > Quilt people, anything that can be done about that? The purpose of the Content-Disposition header is to let quilt store the original patch file name, so that the recipient can save the email as a patch file having the exact same name as the sender was using, to make communication between developers easier. This is the reason why the header is being added despite the email not being multi-part. As Linus found out already, RFC 2183 allows that. The RFC also explicitly allows the use of a filename parameter for inline parts (see section 2.3.) Using "attachment" instead of "inline" would presumably force the user to save the patch to a file before being able to read it, or, at least, to take additional actions in the MUA to convince it to display the contents inline regardless of what the Content-Disposition header says. This is clearly not desirable. We could try specifying the filename directly, without the "inline" keyword, however that would no longer comply with the RFC ("disposition-parm" is optional, but "disposition-type" is mandatory) and I am afraid that some MUA implementations would either default to disposition-type "attachment" in this case, or ignore the header altogether. I'm not sure I understand what "flowed" means in this context. If you mean that gmail breaks the formatting of the patch, I would say that gmail is infringing the RFC, which clearly stipulates at the beginning that the Content-Disposition header field is only about telling the MUA which parts should be displayed immediately and which parts should not, and not about presentation issues. Considering that "inline" is the default for a non-multi-part message, any MUA which changes its behavior in the presence of "Content-Disposition: inline" is bugged in my opinion. -- Jean Delvare SUSE L3 Support