[PATCH 2/3] tags_to_maildir_flags: Cleanup double assignement
authorLouis Rilling <l.rilling@av7.net>
Tue, 12 Jul 2011 13:59:49 +0000 (15:59 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:05 +0000 (09:39 -0800)
09/6abb657020bafa17baea6f58a60a5a186ee649 [new file with mode: 0644]

diff --git a/09/6abb657020bafa17baea6f58a60a5a186ee649 b/09/6abb657020bafa17baea6f58a60a5a186ee649
new file mode 100644 (file)
index 0000000..c3b8c72
--- /dev/null
@@ -0,0 +1,82 @@
+Return-Path: <lrilling@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 40500431FB6\r
+       for <notmuch@notmuchmail.org>; Tue, 12 Jul 2011 07:00:28 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 8LcRUKTIqYka for <notmuch@notmuchmail.org>;\r
+       Tue, 12 Jul 2011 07:00:27 -0700 (PDT)\r
+Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com\r
+       [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A8152429E2C\r
+       for <notmuch@notmuchmail.org>; Tue, 12 Jul 2011 07:00:27 -0700 (PDT)\r
+Received: by mail-ey0-f181.google.com with SMTP id 5so1740488eyh.26\r
+       for <notmuch@notmuchmail.org>; Tue, 12 Jul 2011 07:00:27 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
+       :references; bh=QsbOwFnNHwEQdIn9Npb8t57AZcATCsCIUJMmVsl4HbU=;\r
+       b=VllkA27DLrE5zbXANcxTKOgx0oghycfbIWd7fxBqLMN8ar/ia/ke/73sLkA3uI3Wo6\r
+       UiW+8EmPSt3qs4eRKr4qnFGxMy4jRopG3JSi0qnehToeZgenDLmMRXdPrGUiiun0JbIY\r
+       wfYOlLVIp8M41js1uhtwTpRCfvtMwBnQOeSDc=\r
+Received: by 10.14.188.12 with SMTP id z12mr1795340eem.146.1310479227327;\r
+       Tue, 12 Jul 2011 07:00:27 -0700 (PDT)\r
+Received: from osdor.le-roi-du-couscous.fr ([78.222.14.116])\r
+       by mx.google.com with ESMTPS id z49sm1538190eef.33.2011.07.12.07.00.22\r
+       (version=SSLv3 cipher=OTHER); Tue, 12 Jul 2011 07:00:25 -0700 (PDT)\r
+Sender: Louis Rilling <lrilling@gmail.com>\r
+From: Louis Rilling <l.rilling@av7.net>\r
+To: Carl Worth <cworth@cworth.org>\r
+Subject: [PATCH 2/3] tags_to_maildir_flags: Cleanup double assignement\r
+Date: Tue, 12 Jul 2011 15:59:49 +0200\r
+Message-Id: <1310479190-6973-3-git-send-email-l.rilling@av7.net>\r
+X-Mailer: git-send-email 1.7.2.5\r
+In-Reply-To: <1310479190-6973-1-git-send-email-l.rilling@av7.net>\r
+References: <1310479190-6973-1-git-send-email-l.rilling@av7.net>\r
+Cc: notmuch@notmuchmail.org, Austin Clements <amdragon@MIT.EDU>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 12 Jul 2011 14:00:28 -0000\r
+\r
+The for loop right after already does the job.\r
+\r
+Signed-off-by: Louis Rilling <l.rilling@av7.net>\r
+---\r
+ lib/message.cc |    2 --\r
+ 1 files changed, 0 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/lib/message.cc b/lib/message.cc\r
+index cf651e5..b1b2942 100644\r
+--- a/lib/message.cc\r
++++ b/lib/message.cc\r
+@@ -1172,8 +1172,6 @@ _new_maildir_filename (void *ctx,\r
+     if (info == NULL) {\r
+       info = filename + strlen(filename);\r
+     } else {\r
+-      flags = info + 3;\r
+-\r
+       /* Loop through existing flags in filename. */\r
+       for (flags = info + 3, last_flag = 0;\r
+            *flags;\r
+-- \r
+1.7.2.5\r
+\r