From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8CUrD/4l02BzgQEAgWs5BA (envelope-from ) for ; Wed, 23 Jun 2021 14:15:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OPzKCv4l02CsMAAAbx9fmQ (envelope-from ) for ; Wed, 23 Jun 2021 12:15:58 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8F973120EB for ; Wed, 23 Jun 2021 14:15:57 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id BF4AF290A6; Wed, 23 Jun 2021 08:15:51 -0400 (EDT) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mail.notmuchmail.org (Postfix) with ESMTPS id B0EDA290A0 for ; Wed, 23 Jun 2021 08:15:49 -0400 (EDT) Received: by mail-lf1-f45.google.com with SMTP id a11so3677346lfg.11 for ; Wed, 23 Jun 2021 05:15:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:subject:to:in-reply-to :references; bh=cwH42J5G3ufJ9huVioDeSQAyJqPFhLgg4y/xRSoDAzc=; b=d9xCnkL89FZBE2pFv5HM4yi0HyEBwLdbx/rhePEideTsp2IyK6svv3pZeoGwmFPI7Z blpwdZ0HR5eShW/4a+5/YEBTJ9JcDq22P8SdR0+ORActX2CErJbUYOC2hE9bwc633jjX U/WMh7ea86RdKH48On14LJQleHQZhSrt3PSuZPonS7aHhxTqs1bqurjpmBwrEAtdPmLG ovRyiAQSm6NBoQwbFHGi5CSw7zLxr8zknRKO3KA1Ppssotbf5Q4SvgLklZxefHZvLmP2 CHYsg6nZ7o9NvOJUl3JUrOAgkOhmhBUaP2nnXHZUkMygOcjrpAQHxyiU+p5cUROyBhCM PY5A== X-Gm-Message-State: AOAM5327RxU7g5WbYLuVD3XPgffe6TujNLZrVnu2j1fAnAIc0ucnQxBt o6lcJANsgqvdDkkSV30Qcf4= X-Google-Smtp-Source: ABdhPJyT98VlhJzK+YxKLWiJxOWwXFP8MpQAgmN6OPcMhbo8ymPKuN70y5SWv7QXa0I4zJVrVuoHbg== X-Received: by 2002:a05:6512:32a6:: with SMTP id q6mr2737386lfe.308.1624450548390; Wed, 23 Jun 2021 05:15:48 -0700 (PDT) Received: from localhost (88-112-11-80.elisa-laajakaista.fi. [88.112.11.80]) by smtp.gmail.com with ESMTPSA id h4sm304329ljk.4.2021.06.23.05.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 05:15:47 -0700 (PDT) Message-ID: <60d325f3.1c69fb81.dbc42.1809@mx.google.com> Date: Wed, 23 Jun 2021 15:15:46 +0300 From: Hannu Hartikainen Subject: Re: [PATCH] lib: consider all instances of Delivered-To header To: Michael J Gruber , notmuch@notmuchmail.org In-Reply-To: <162444591341.4884.15473775974370085837.git@grubix.eu> References: <20210623102906.20602-1-hannu@hrtk.in> <162444591341.4884.15473775974370085837.git@grubix.eu> Message-ID-Hash: E554DJMPFPXEXF7YOOFCNIR4GDVNPLH7 X-Message-ID-Hash: E554DJMPFPXEXF7YOOFCNIR4GDVNPLH7 X-MailFrom: hannu.hartikainen@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624450558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=00K6P7yZ2wDrByRFVsV488jnxVmhqQ+awkKHycPQ8Xc=; b=TGtMc2v3GkRJCJviNMSPyN9r4RrUuI9JVcMLZulB/BgzPn5/Os5Txk/CiKwuDlSlr8drim sqDAvPCMSHsaLWCSwRJQRxbpwJGX3zHcddgUxecNAk4fJPT9lIU8lHho4/igvqjkEKP4N1 jH4AVUym9Fs1MzJH83048vk1+kovoowwVf+eSyy8XxmBEgh5WtFYvOJerfb9WrNttNRvWN M35qCDlV2VIu104nybr0rpTsR3uViZ093CRssqjI9Fsb8nsxXjSWSx2DvKA4heu1Ii6roB 2eJNYjQC7FDFivMfE+ic4WWRUf91+u1Si5/cQK/S+8YPeZR4BuHrAxaRCq1ckQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624450558; a=rsa-sha256; cv=none; b=U0flnccl7gWjKmvCrHzQPcMpKxrzjqJVY5f3WhD5y6pVXdGrj2aQTF7ixfZHqq40s09BFR YQBy5J3yHiGQBVaxwllTbjtxTHayD6c7+Am2mtNSc3NhYBVIuPFEn0bLreVFSpHL8QD21l cyTpfwVSrDPLYNutsJPcxin+EWWp1KSOtXm1I/+G/Ivt7X094McZx1Yg2jTAlwkBzYdmKL 1TO1SZpI89nPx1oEJgZlSRf4c5s1lI7wPjSFDx61jW3tdeA7jbtmAIqsdk0U6asu6VCSan aunOCKPMaph77ZK20P9WKq+30iGFLvGW/Ziw3vU8qjkBJbfhQH2aQnl2tWOXxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.99 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 8F973120EB X-Spam-Score: -1.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: F3I7QrakVJnc On Wed, 23 Jun 2021 12:58:33 +0200, Michael J Gruber wrote: > Is an address from a received header (still) preferred over one from a > delivered-to, or does the order of headers in the mail envelope play a > role? In my understanding the From: address is looked up in the following steps (each step may have their own internal priorizing logic): 1. To, Cc, Bcc, Reply-To, From 2. Envelope-To 3. X-Original-To 4. Delivered-To 5. Received (for) 6. Received (by) 7. configured primary address Obviously the patch doesn't touch this logic; it only affects the handling of multiple Delivered-To headers. Hannu