From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 1D6AC6DE0355 for ; Tue, 19 Sep 2017 01:07:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.066 X-Spam-Level: X-Spam-Status: No, score=0.066 tagged_above=-999 required=5 tests=[AWL=0.167, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 90pjuwoRNLbA for ; Tue, 19 Sep 2017 01:07:17 -0700 (PDT) Received: from mail.choca.pics (mail.choca.pics [62.210.108.126]) by arlo.cworth.org (Postfix) with ESMTPS id C17486DE01C2 for ; Tue, 19 Sep 2017 01:07:16 -0700 (PDT) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id AE21F232DA64; Tue, 19 Sep 2017 10:07:14 +0200 (CEST) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 6OLzw_9mzCQH; Tue, 19 Sep 2017 10:07:13 +0200 (CEST) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id B951B232DA63; Tue, 19 Sep 2017 10:07:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.choca.pics B951B232DA63 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cassou.me; s=9EA44F5C-DEF4-11E6-A83F-A08DF322D8FB; t=1505808433; bh=GJJ7tgj8ahHHSME7IW+S70gdbJRnO9Wq/4pWlOLWatE=; h=From:To:Date:Message-ID:MIME-Version; b=ZNW/o0SDlW+VptD6SDQcwqanB56LR8cuNVhr206xbp0DSjksW06qNBnFPysrMTr/p W8KLsF43RUO+JSVDoh05Q/XHJziSgWS4v/ZeoPnnW8DKAJYnEg2M9DJVVEn/OPf1Pc VB2+U40IVfX2qE9hLJf7DTlTjKMnvDsRdynvSbJ5gNfMCABdlfszUoJjW+opXzYiCv +uTaPvdf/C1upU/ZxZfiudIi5HBmFUTBp299lcdh54YWlkfAZo4WrUEFZQv+sDwdoM 9HcOnPNS8yJEAYJsS33auR8t81Ic/iZ991TO+re7actYD/TlpWLNUIF5uv/h5Gebpt Ro2wR3HFhbN2Q== X-Virus-Scanned: amavisd-new at choca.pics Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id XCtkdnmZnFN9; Tue, 19 Sep 2017 10:07:13 +0200 (CEST) Received: from luz4 (31-211-216-84.customers.ownit.se [31.211.216.84]) by mail.choca.pics (Postfix) with ESMTPSA id 5EA7C232DA60; Tue, 19 Sep 2017 10:07:13 +0200 (CEST) From: Damien Cassou To: David Bremner , notmuch@notmuchmail.org Subject: Re: Guess 'From:' when doing notmuch reply In-Reply-To: <87efr3x10h.fsf@tesseract.cs.unb.ca> References: <874lrz29ec.fsf@cassou.me> <87efr3x10h.fsf@tesseract.cs.unb.ca> Date: Tue, 19 Sep 2017 10:07:03 +0200 Message-ID: <87o9q7yuvs.fsf@cassou.me> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Tue, 19 Sep 2017 08:07:19 -0000 > Damien Cassou writes: >> Unfortunately, notmuch always got the From: field wrong when replying to >> a (microsoft-exchange hosted) mailing list. The result of this is that I >> always answer with the incorrect email address resulting in an error >> message from the mailing list a few minutes after. >> >> Is there anything I can do to make notmuch properly guess the From: >> field? David Bremner writes: > I think we'll need more information, ideally a sample message where > notmuch-reply (on the command line) guesses the reply address > incorrectly. I'm not sure my company would let me send you even headers of the email. What I can tell is that my email address does not appear in the headers (I had a look at notmuch-reply.c/guess_from_in_received_headers()). I can't really blame notmuch for not finding it then :-). But, the domain name of my email address appears in many occasions: - in the Received: field (which looks like " from: ") - in the To: field (the mailing list is hosted under the same domain) - in the From: field (the user who sent the email has an email in the same domain) Unfortunately, there is no Received: field with a " by " matching my domain. Would it be possible to guess the From: field from "Received: from "? -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill