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 19AAF4196F2 for ; Tue, 13 Apr 2010 10:37:51 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] 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 BaQr57ry1ej2; Tue, 13 Apr 2010 10:37:50 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 17615431FC1; Tue, 13 Apr 2010 10:37:50 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id C0E045883A6; Tue, 13 Apr 2010 10:37:49 -0700 (PDT) From: Carl Worth To: Dirk Hohndel , Sebastian Spaeth , notmuch@notmuchmail.org Subject: Re: [PATCH] Fix code extracting the MTA from Received: headers In-Reply-To: References: <877hoil6i5.fsf@SSpaeth.de> Date: Tue, 13 Apr 2010 10:37:49 -0700 Message-ID: <87eiijl0cy.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Tue, 13 Apr 2010 17:37:51 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 08 Apr 2010 08:07:48 -0700, Dirk Hohndel wr= ote: > Right now my plan is to do something like this: >=20 > 1) look for my email address in To/Cc > 2) look for my email in "for " in Received headers > 3) look for my email in X-Original-To > 4) look for the domain of my email in Received headers (not just 1st) > 5) punt and use default email address >=20 > Does that sound sane? It sounds sane. > (and thanks for sending the headers - this really helps... can others > for whom the current code or the logic mentioned above wouldn't work > send their headers, too, please?) I started using fetchmail many years ago and have never really needed to switch. So I'm still using that, (but don't necessarily recommend it to anyone. It seems to break the above since it delivers mail locally, so the first headers I get are: X-Original-To: cworth@localhost Delivered-To: cworth@localhost Received: from yoom.home.cworth.org (yoom.home.cworth.org [127.0.0.1]) by yoom.home.cworth.org (Postfix) with ESMTP id D391B5883A6 for ; Mon, 12 Apr 2010 09:11:18 -0700 (PDT) MIME-Version: 1.0 Received: from 10.22.226.213 [10.22.226.213] by yoom.home.cworth.org with IMAP (fetchmail-6.3.16) for (single-drop); Mon, 12 Apr 2010 09:11:18 -0700 (PD= T) And none of these are useful for your detection. Worse, the presence of "cworth.org" in the above might throw your detection off before it could find something useful like "intel.com" in a later Received header. I'll send a complete message with full headers to you separately. Perhaps I can just switch programs to transfer email and avoid this problem. Anyone have a recommendation for something to transfer mail From=20an imap server to the local matchine, (but *not* leaving it stored on the imap server)[*]. I don't think offlineimap supports this mode does it? =2DCarl [*] I do separately want to start playing with remote notmuch, but I won't use this with the imap servers currently accepting my mail. Instead, I'd rather just rsync my mail from my local machine to a server I own, (which could then export imap if needed), and do remote notmuch stuff from there. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLxKvt6JDdNq8qSWgRAhkoAJ4oh+edQbAph1qb3uoi8K43hmZlJQCgm796 FnNzMoXac4WqsIyMOH011D0= =K2Mi -----END PGP SIGNATURE----- --=-=-=--