Received: from fhigh-b6-smtp.messagingengine.com (fhigh-b6-smtp.messagingengine.com [202.12.124.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A89B63F4103 for ; Mon, 10 Aug 2026 15:28:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786375737; cv=none; b=EqRZ+KGJgAnPNBvyiB+OIBuQbUmatGHjUsTDgC2/u3y5ou+VNGFveyeNo2nGaNY5dKjuzF6T1AxYrThX7rLxL90EsAtQzHu2TK+zLVQgRqlzBla9zN3PpDKQ1obFFtoG8HSAwTbFqdUq7peE3lLihIHMht2xiuZrGFqpBeCgmKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786375737; c=relaxed/simple; bh=4KjjX4RfiuBAh0uD02B9II9AOoqilxmTLXvsXAkh5m4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Rtm7zZG1EdGAiu/E0lyKnjza1I/oXMwGGV8LiAQ2HGxTx4jmS92sin0ixTG8toapzg7JFILs17R8pEO7MGjI521SQHFuSWP6HCAquUdhdnnErtwbBVcij4E2PFyg7Lgzl0thzK2yULNYmpKvaiiJ5b9aYgf9Uqti8PCYYs0TFLA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b=NIon3QIC; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=lZfc25qa; arc=none smtp.client-ip=202.12.124.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="NIon3QIC"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="lZfc25qa" Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id DF78E7A0138; Mon, 10 Aug 2026 11:28:54 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-12.internal (MEProxy); Mon, 10 Aug 2026 11:28:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1786375734; x=1786462134; bh=q7Im0p0BvL KK9O2P8YL7nVz6n696BgHcyLUCeUZ1fpM=; b=NIon3QICD9+bpqe545pmFqmrcw HVNaLsJNPW1rMRpN+5f7DU9/PzhGWkTn4LJEZShZoJniQ2+XseBjpYRbg8LVOLJf nbrZA5xc01JljF+EM5vAU49P5GPyTAxK7TozQtwSjBkc47V1hes80sju04di6hlK CuIIFVpiKLDPHPVfNDxkW0kG1y26vvxIQueKbivz5y2b4iMzl6c8I0e9Bs4Ww8MT qKFHYi6b2Cj8t73WLeLwJYzE26o+IgLw3LlWLopoIjPGDCaPCKTSA56BdqdY3DC6 vwiri2uWi4wbXT3+RNgWEj+rzlN0IKxhDD11zsmqX5YV2DMHqsBA1ZBhGLnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1786375734; x=1786462134; bh=q7Im0p0BvLKK9O2P8YL7nVz6n696BgHcyLU CeUZ1fpM=; b=lZfc25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ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Aug 2026 11:28:54 -0400 (EDT) From: Junio C Hamano To: Harald Nordgren Cc: Harald Nordgren via GitGitGadget , git@vger.kernel.org Subject: Re: [PATCH] send-email: clarify missing subject error In-Reply-To: (Harald Nordgren's message of "Mon, 10 Aug 2026 11:48:07 +0200") References: Date: Mon, 10 Aug 2026 08:28:52 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Harald Nordgren writes: >> An input file to the 'git send-email' program is often the output >> of 'git format-patch'. Such a file begins with a UNIX 'From ' >> line, followed by email headers such as 'From:', 'Date:', and >> 'Subject:'. The 'Subject:' line cannot be the first line of >> the file in this case, yet it is a valid input. >> >> The only condition that this subroutine flags as an error is when >> the file lacks a subject line. "No 'Subject:' line in '%s'\n" is a >> clear message to display and is an improvement over the original. >> >> However, the fact that the first line does not start with >> "Subject:" is irrelevant to the basis of the subroutine's >> decision to issue an error, I think. > > Yeah, that makes sense, so maybe we don't need to focus on it being > the first line, but Subject needs to be there somewhere before the > body. Yeah, the curious thing is that the subroutine with the loop is happy as long as it finds "^Subject: " somewhere, not necessarily before the first blank line. That is why I said "No 'Subject: ' line in '%s'\n" is clear enough and an improvement over the original. Anything else will add lie to it. Thanks.