sending email using different server for different 'From:' field
[notmuch-archives.git] / a3 / 384bfedd9fc3b0fb6df32d6f0c8d2b9ae9a7d4
1 Return-Path: <m.walters@qmul.ac.uk>\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 2DC9B431FC3\r
6         for <notmuch@notmuchmail.org>; Sat, 14 Jul 2012 09:49:36 -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: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\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 r84PW5gzBrqD for <notmuch@notmuchmail.org>;\r
17         Sat, 14 Jul 2012 09:49:35 -0700 (PDT)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 5585B431FBC\r
22         for <notmuch@notmuchmail.org>; Sat, 14 Jul 2012 09:49:35 -0700 (PDT)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1Sq5X9-00029F-9V; Sat, 14 Jul 2012 17:49:31 +0100\r
27 Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]\r
28         helo=localhost)\r
29         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
30         (envelope-from <m.walters@qmul.ac.uk>)\r
31         id 1Sq5X9-0007I6-0W; Sat, 14 Jul 2012 17:49:31 +0100\r
32 From: Mark Walters <markwalters1009@gmail.com>\r
33 To: notmuch@notmuchmail.org\r
34 Subject: Re: [PATCH 0/3] Control notmuch show output\r
35 In-Reply-To: <1341673978-6094-1-git-send-email-markwalters1009@gmail.com>\r
36 References: <1341673978-6094-1-git-send-email-markwalters1009@gmail.com>\r
37 User-Agent: Notmuch/0.13.2+90~g84fa1ef (http://notmuchmail.org) Emacs/23.4.1\r
38         (x86_64-pc-linux-gnu)\r
39 Date: Sat, 14 Jul 2012 17:49:29 +0100\r
40 Message-ID: <87r4sei8yu.fsf@qmul.ac.uk>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain; charset=us-ascii\r
43 X-Sender-Host-Address: 94.192.233.223\r
44 X-QM-SPAM-Info: Sender has good ham record.  :)\r
45 X-QM-Body-MD5: 20ebca354a98a0c1b0e9597358cbf8fd (of first 20000 bytes)\r
46 X-SpamAssassin-Score: -1.8\r
47 X-SpamAssassin-SpamBar: -\r
48 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
49         determine if it is\r
50         spam. We require at least 5.0 points to mark a message as spam.\r
51         This message scored -1.8 points.\r
52         Summary of the scoring: \r
53         * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
54         *      medium trust\r
55         *      [138.37.6.40 listed in list.dnswl.org]\r
56         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
57         provider *      (markwalters1009[at]gmail.com)\r
58         * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
59         *      domain\r
60         *  0.5 AWL AWL: From: address is in the auto white-list\r
61 X-QM-Scan-Virus: ClamAV says the message is clean\r
62 X-BeenThere: notmuch@notmuchmail.org\r
63 X-Mailman-Version: 2.1.13\r
64 Precedence: list\r
65 List-Id: "Use and development of the notmuch mail system."\r
66         <notmuch.notmuchmail.org>\r
67 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
69 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
70 List-Post: <mailto:notmuch@notmuchmail.org>\r
71 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
72 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
74 X-List-Received-Date: Sat, 14 Jul 2012 16:49:36 -0000\r
75 \r
76 \r
77 I wonder if we need as many options as this: I implemented a simpler set\r
78 of possibilities: \r
79 no-body:          just from, to, cc, subject and date headers and no bodies\r
80 brief:            from, to, cc, subject and date header with bodies\r
81 most:             all headers except "received" with bodies\r
82 all:              all headers and bodies\r
83 \r
84 I then benchmarked this by timing the command line run. I saved the\r
85 output and ran it in a simple emacs lisp script which just ran (and\r
86 timed) json-read on the output. I also noted the size of the data.\r
87 \r
88 All were done on the query \r
89 \r
90 notmuch show --format=json <relevant output> tag:notmuch \r
91 \r
92 (which contains 11 775 messages in 1 672 threads)\r
93 \r
94              Cli time      JSON time      Data MB\r
95 no-body:      10.0            7               7    \r
96 brief:        11.9           55              70\r
97 most:         12.6           73              91          \r
98 all:          13.0           85             107\r
99 \r
100 (note the cli was actually run on a different (slower) machine than the\r
101 json)\r
102 \r
103 So do we want all sorts of header options, or would the above be\r
104 sufficient? Note that for notmuch show itself the difference is probably\r
105 negligible in most cases as the data size is *much* smaller. The\r
106 datasize may be significant for some uses though.\r
107 \r
108 Best wishes\r
109 \r
110 Mark\r
111 \r