Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / c9 / d75c804242d9299a755be1508593783135e4b6
1 Return-Path: <aneesh.kumar@linux.vnet.ibm.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 43373431FC0\r
6         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 20:58:31 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id T+bY1WGzKNSz for <notmuch@notmuchmail.org>;\r
11         Tue, 24 Nov 2009 20:58:30 -0800 (PST)\r
12 Received: from e23smtp02.au.ibm.com (e23smtp02.au.ibm.com [202.81.31.144])\r
13         by olra.theworths.org (Postfix) with ESMTP id 304EF431FC4\r
14         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 20:58:29 -0800 (PST)\r
15 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247])\r
16         by e23smtp02.au.ibm.com (8.14.3/8.13.1) with ESMTP id nAP4toGN022951\r
17         for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 15:55:50 +1100\r
18 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96])\r
19         by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id\r
20         nAP4svwH1445966\r
21         for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 15:54:57 +1100\r
22 Received: from d23av01.au.ibm.com (loopback [127.0.0.1])\r
23         by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id\r
24         nAP4wRsi008144\r
25         for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 15:58:27 +1100\r
26 Received: from localhost.localdomain ([9.124.31.111])\r
27         by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id\r
28         nAP4wQYO008088; Wed, 25 Nov 2009 15:58:26 +1100\r
29 From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>\r
30 To: notmuch@notmuchmail.org\r
31 Date: Wed, 25 Nov 2009 10:28:24 +0530\r
32 Message-Id:\r
33  <1259125104-18785-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>\r
34 X-Mailer: git-send-email 1.6.5.2.74.g610f9\r
35 Subject: [notmuch] [PATCH] notmuch-new: Fix notmuch new to look at files\r
36         within symbolic links\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.12\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Wed, 25 Nov 2009 04:58:31 -0000\r
50 \r
51 We look at the modified time of the database and the directory\r
52 to decide whether we need to look at only the subdirectories.\r
53 ie, if directory modified time is < database modified time\r
54 then we have already looking at all the files withing the\r
55 directory. So we just need to iterate through the subdirectories\r
56 \r
57 But with symlinks we need to make sure we follow them even if\r
58 the directory modified time is less than database modified time\r
59 \r
60 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>\r
61 ---\r
62  notmuch-new.c |    2 +-\r
63  1 files changed, 1 insertions(+), 1 deletions(-)\r
64 \r
65 diff --git a/notmuch-new.c b/notmuch-new.c\r
66 index e32b92a..ba5bb5a 100644\r
67 --- a/notmuch-new.c\r
68 +++ b/notmuch-new.c\r
69 @@ -149,7 +149,7 @@ add_files_recursive (notmuch_database_t *notmuch,\r
70         /* If this directory hasn't been modified since the last\r
71          * add_files, then we only need to look further for\r
72          * sub-directories. */\r
73 -       if (path_mtime <= path_dbtime && entry->d_type != DT_DIR)\r
74 +       if (path_mtime <= path_dbtime && entry->d_type == DT_REG)\r
75             continue;\r
76  \r
77         /* Ignore special directories to avoid infinite recursion.\r
78 -- \r
79 1.6.5.2.74.g610f9\r
80 \r