Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 65 / d0e6b3c8e154a7af43f06e5630271e5db4b91d
1 Return-Path: <jan@ryngle.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 94657431FBC\r
6         for <notmuch@notmuchmail.org>; Wed, 18 Nov 2009 06:36:53 -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 XsRRfXFzUd6y for <notmuch@notmuchmail.org>;\r
11         Wed, 18 Nov 2009 06:36:53 -0800 (PST)\r
12 Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com\r
13         [209.85.218.224])\r
14         by olra.theworths.org (Postfix) with ESMTP id D8FDA431FAE\r
15         for <notmuch@notmuchmail.org>; Wed, 18 Nov 2009 06:36:52 -0800 (PST)\r
16 Received: by bwz24 with SMTP id 24so127170bwz.30\r
17         for <notmuch@notmuchmail.org>; Wed, 18 Nov 2009 06:36:51 -0800 (PST)\r
18 MIME-Version: 1.0\r
19 Received: by 10.204.34.201 with SMTP id m9mr6601936bkd.77.1258555011799; Wed, \r
20         18 Nov 2009 06:36:51 -0800 (PST)\r
21 Date: Wed, 18 Nov 2009 15:36:51 +0100\r
22 Message-ID: <f35dbb950911180636p10f1dba9v594ddd047361e487@mail.gmail.com>\r
23 From: Jan Janak <jan@ryngle.com>\r
24 To: notmuch@notmuchmail.org\r
25 Content-Type: text/plain; charset=UTF-8\r
26 Subject: [notmuch] Why is no. of files from count_files reset to 0?\r
27 X-BeenThere: notmuch@notmuchmail.org\r
28 X-Mailman-Version: 2.1.12\r
29 Precedence: list\r
30 List-Id: "Use and development of the notmuch mail system."\r
31         <notmuch.notmuchmail.org>\r
32 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
33         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
34 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
35 List-Post: <mailto:notmuch@notmuchmail.org>\r
36 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
37 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
38         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
39 X-List-Received-Date: Wed, 18 Nov 2009 14:36:53 -0000\r
40 \r
41 Hello,\r
42 \r
43 The function count_file returns the total number of files to be\r
44 processed, the result is then stored in add_files_state.total_files.\r
45 But that variable is reset back to 0 in notmuch_new_command.\r
46 \r
47 When I comment out the following line (before add_files is called):\r
48 \r
49 add_files_state.total_files = 0;\r
50 \r
51 The progress indicator shows the total number of files to be\r
52 processed, as well as the time remaining. This is, IMHO, much better,\r
53 especially if you process a large collection of emails.\r
54 \r
55 Is there any reason for having the variable reset to 0 before calling\r
56 add_files? Thanks!\r
57 \r
58    -- Jan\r