Re: [PATCH] lib: make find_message{,by_filename) report errors
[notmuch-archives.git] / 4c / d68d522d1ac58bc69a7abea8827586fba8a1fd
1 Return-Path: <cworth@cworth.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 19AAF4196F2\r
6         for <notmuch@notmuchmail.org>; Tue, 13 Apr 2010 10:37:51 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.89\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5\r
12         tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01]\r
13         autolearn=ham\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id BaQr57ry1ej2; Tue, 13 Apr 2010 10:37:50 -0700 (PDT)\r
17 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
18         by olra.theworths.org (Postfix) with ESMTP id 17615431FC1;\r
19         Tue, 13 Apr 2010 10:37:50 -0700 (PDT)\r
20 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
21         id C0E045883A6; Tue, 13 Apr 2010 10:37:49 -0700 (PDT)\r
22 From: Carl Worth <cworth@cworth.org>\r
23 To: Dirk Hohndel <hohndel@infradead.org>,\r
24         Sebastian Spaeth <Sebastian@SSpaeth.de>, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH] Fix code extracting the MTA from Received: headers\r
26 In-Reply-To: <m3sk76geyj.fsf@x200.gr8dns.org>\r
27 References: <m31verxaka.fsf@x200.gr8dns.org> <877hoil6i5.fsf@SSpaeth.de>\r
28         <m3sk76geyj.fsf@x200.gr8dns.org>\r
29 Date: Tue, 13 Apr 2010 10:37:49 -0700\r
30 Message-ID: <87eiijl0cy.fsf@yoom.home.cworth.org>\r
31 MIME-Version: 1.0\r
32 Content-Type: multipart/signed; boundary="=-=-=";\r
33         micalg=pgp-sha1; protocol="application/pgp-signature"\r
34 X-BeenThere: notmuch@notmuchmail.org\r
35 X-Mailman-Version: 2.1.13\r
36 Precedence: list\r
37 List-Id: "Use and development of the notmuch mail system."\r
38         <notmuch.notmuchmail.org>\r
39 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
40         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
42 List-Post: <mailto:notmuch@notmuchmail.org>\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
44 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
46 X-List-Received-Date: Tue, 13 Apr 2010 17:37:51 -0000\r
47 \r
48 --=-=-=\r
49 Content-Transfer-Encoding: quoted-printable\r
50 \r
51 On Thu, 08 Apr 2010 08:07:48 -0700, Dirk Hohndel <hohndel@infradead.org> wr=\r
52 ote:\r
53 > Right now my plan is to do something like this:\r
54 >=20\r
55 > 1) look for my email address in To/Cc\r
56 > 2) look for my email in "for <email@add.res>" in Received headers\r
57 > 3) look for my email in X-Original-To\r
58 > 4) look for the domain of my email in Received headers (not just 1st)\r
59 > 5) punt and use default email address\r
60 >=20\r
61 > Does that sound sane?\r
62 \r
63 It sounds sane.\r
64 \r
65 > (and thanks for sending the headers - this really helps... can others\r
66 > for whom the current code or the logic mentioned above wouldn't work\r
67 > send their headers, too, please?)\r
68 \r
69 I started using fetchmail many years ago and have never really needed to\r
70 switch. So I'm still using that, (but don't necessarily recommend it to\r
71 anyone.\r
72 \r
73 It seems to break the above since it delivers mail locally, so the first\r
74 headers I get are:\r
75 \r
76         X-Original-To: cworth@localhost\r
77         Delivered-To: cworth@localhost\r
78         Received: from yoom.home.cworth.org (yoom.home.cworth.org [127.0.0.1])\r
79                 by yoom.home.cworth.org (Postfix) with ESMTP id D391B5883A6\r
80                 for <cworth@localhost>; Mon, 12 Apr 2010 09:11:18 -0700 (PDT)\r
81         MIME-Version: 1.0\r
82         Received: from 10.22.226.213 [10.22.226.213]\r
83                 by yoom.home.cworth.org with IMAP (fetchmail-6.3.16)\r
84                 for <cworth@localhost> (single-drop); Mon, 12 Apr 2010 09:11:18 -0700 (PD=\r
85 T)\r
86 \r
87 And none of these are useful for your detection. Worse, the presence of\r
88 "cworth.org" in the above might throw your detection off before it could\r
89 find something useful like "intel.com" in a later Received header.\r
90 \r
91 I'll send a complete message with full headers to you separately.\r
92 \r
93 Perhaps I can just switch programs to transfer email and avoid this\r
94 problem. Anyone have a recommendation for something to transfer mail\r
95 From=20an imap server to the local matchine, (but *not* leaving it stored\r
96 on the imap server)[*]. I don't think offlineimap supports this mode\r
97 does it?\r
98 \r
99 =2DCarl\r
100 \r
101 [*] I do separately want to start playing with remote notmuch, but I\r
102 won't use this with the imap servers currently accepting my\r
103 mail. Instead, I'd rather just rsync my mail from my local machine to a\r
104 server I own, (which could then export imap if needed), and do remote\r
105 notmuch stuff from there.\r
106 \r
107 --=-=-=\r
108 Content-Type: application/pgp-signature\r
109 \r
110 -----BEGIN PGP SIGNATURE-----\r
111 Version: GnuPG v1.4.10 (GNU/Linux)\r
112 \r
113 iD8DBQFLxKvt6JDdNq8qSWgRAhkoAJ4oh+edQbAph1qb3uoi8K43hmZlJQCgm796\r
114 FnNzMoXac4WqsIyMOH011D0=\r
115 =K2Mi\r
116 -----END PGP SIGNATURE-----\r
117 --=-=-=--\r