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 017214196F0 for ; Thu, 8 Apr 2010 00:59:20 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_40=-0.001] autolearn=ham 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 eaF9d-xTG9Xz for ; Thu, 8 Apr 2010 00:59:18 -0700 (PDT) Received: from homiemail-a13.g.dreamhost.com (caiajhbdccah.dreamhost.com [208.97.132.207]) by olra.theworths.org (Postfix) with ESMTP id DA016431FC1 for ; Thu, 8 Apr 2010 00:59:18 -0700 (PDT) Received: from sspaeth.de (unknown [195.190.188.219]) by homiemail-a13.g.dreamhost.com (Postfix) with ESMTPA id C48756A8076; Thu, 8 Apr 2010 00:59:16 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Thu, 08 Apr 2010 09:59:14 +0200 From: "Sebastian Spaeth" To: Dirk Hohndel , notmuch@notmuchmail.org Subject: Re: [PATCH] Fix code extracting the MTA from Received: headers In-Reply-To: References: Date: Thu, 08 Apr 2010 09:59:14 +0200 Message-ID: <877hoil6i5.fsf@SSpaeth.de> 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: Thu, 08 Apr 2010 07:59:20 -0000 On 2010-04-07, Dirk Hohndel wrote: > > The previous code made too many assumptions about the (sadly not > standardized) format of the Received headers. This version should > be more robust to deal with different variations. This code might be useful for some, but I know it is not being useful for me. I use e.g. dreamhost.com as my mail provider and I never have my email domain name show up after the Received: by ..... See my Received headers for your message below. On the other hand, it contains "for " stating the intended email address explicitely. IMHO, we should use this before we start some hand-wavy guessing. Also, I have the "X-Original-To: sebastian@sspaeth.de" header. Is that something that we could make use of before starting to guess? Sebastian ----------------------------------------------------------------------- Received: from segal.dreamhost.com (mx1.spunky.mail.dreamhost.com [208.97.132.47]) by homiemail-mx12.g.dreamhost.com (Postfix) with ESMTP id 9A6602781BC for ; Wed, 7 Apr 2010 13:38:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by segal.dreamhost.com (Postfix) with ESMTP id 9CF8A5341BE for ; Wed, 7 Apr 2010 13:38:48 -0700 (PDT) Received: from connor.dreamhost.com ([208.97.132.81]) by localhost (segal.dreamhost.com [208.97.132.104]) (amavisd-new, port 10024) with ESMTP id S3IlsMcJewY1 for ; Wed, 7 Apr 2010 13:38:39 -0700 (PDT) Received: from olra.theworths.org (u15218177.onlinehome-server.com [82.165.184.25]) by connor.dreamhost.com (Postfix) with ESMTP id 33B472C9806F for ; Wed, 7 Apr 2010 13:38:39 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1978741733A; Wed, 7 Apr 2010 13:38:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 ZbcQaubefNY6; Wed, 7 Apr 2010 13:38:37 -0700 (PDT) Received: from olra.theworths.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 044574196F4; Wed, 7 Apr 2010 13:38:35 -0700 (PDT)