Re: notmuch-search-toggle-order and notmuch-tree
[notmuch-archives.git] / 84 / a892952facdc95b0b172a6eba38fdebf81c75f
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 25785429E2B\r
6         for <notmuch@notmuchmail.org>; Wed, 15 Jun 2011 04:12:02 -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: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 nK6Wim2oYCi9 for <notmuch@notmuchmail.org>;\r
17         Wed, 15 Jun 2011 04:12:01 -0700 (PDT)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 1FA25429E2A\r
22         for <notmuch@notmuchmail.org>; Wed, 15 Jun 2011 04:11:59 -0700 (PDT)\r
23 Received: by mail-fx0-f53.google.com with SMTP id 8so337389fxm.26\r
24         for <notmuch@notmuchmail.org>; Wed, 15 Jun 2011 04:11:59 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer\r
27         :in-reply-to:references;\r
28         bh=BKY+hOPBBkd3VzG0Hl/2bFgqdITaOiWy9mIHuSZosXY=;\r
29         b=sOgfDIqhvbrtHDs5JQq9apTcMLFwvwhH0DYiI0nACItBZKpPwxlChgE+OrWSbmfnms\r
30         xkJ/p5qbaJ6I88eWjVyfPYmsXm3yc3XjbMQeWyhdD0KKH44kvylFcFm580bEvpNrO05J\r
31         WA3+U3qW0GRzdI+MtEIEpVT63wirs5Gh6fxFc=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
34         b=LQgK8nj8r37SkhxpRjptWKuuZUatT2rIgqOEoulSZLgq6onwRgePohb/bl3Ajyr+78\r
35         17kG7cG8axSRPM7fC3PT3+45a0B9II0GseGnQU/XN5bz2anR+UYJfa9+rkYV3Xl7ztoG\r
36         okKTssH4rDJd6wPaBnst39H4p+gF/DjBzKcM8=\r
37 Received: by 10.223.158.72 with SMTP id e8mr439665fax.39.1308136319808;\r
38         Wed, 15 Jun 2011 04:11:59 -0700 (PDT)\r
39 Received: from localhost ([91.144.186.21])\r
40         by mx.google.com with ESMTPS id h9sm160132fai.30.2011.06.15.04.11.58\r
41         (version=TLSv1/SSLv3 cipher=OTHER);\r
42         Wed, 15 Jun 2011 04:11:59 -0700 (PDT)\r
43 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH 3/3] Fix indentation in guess_from_received_header().\r
46 Date: Wed, 15 Jun 2011 15:12:14 +0400\r
47 Message-Id: <1308136334-9219-3-git-send-email-dmitry.kurochkin@gmail.com>\r
48 X-Mailer: git-send-email 1.7.5.4\r
49 In-Reply-To: <1308136334-9219-1-git-send-email-dmitry.kurochkin@gmail.com>\r
50 References: <1308136334-9219-1-git-send-email-dmitry.kurochkin@gmail.com>\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Wed, 15 Jun 2011 11:12:02 -0000\r
64 \r
65 ---\r
66  notmuch-reply.c |   12 ++++++------\r
67  1 files changed, 6 insertions(+), 6 deletions(-)\r
68 \r
69 diff --git a/notmuch-reply.c b/notmuch-reply.c\r
70 index 64f70bf..27ef37b 100644\r
71 --- a/notmuch-reply.c\r
72 +++ b/notmuch-reply.c\r
73 @@ -427,13 +427,13 @@ guess_from_received_header (notmuch_config_t *config, notmuch_message_t *message\r
74  \r
75             if (strcasestr(primary, domain)) {\r
76                 free(mta);\r
77 -           return primary;\r
78 -       }\r
79 -       for (i = 0; i < other_len; i++)\r
80 -           if (strcasestr (other[i],domain)) {\r
81 -               free(mta);\r
82 -               return other[i];\r
83 +               return primary;\r
84             }\r
85 +           for (i = 0; i < other_len; i++)\r
86 +               if (strcasestr (other[i],domain)) {\r
87 +                   free(mta);\r
88 +                   return other[i];\r
89 +               }\r
90         }\r
91         free (mta);\r
92      }\r
93 -- \r
94 1.7.5.4\r
95 \r