[PATCH 2/3] apply all the other maildir flag->tag conversions
authorMike Kelly <pioto@pioto.org>
Thu, 8 Apr 2010 19:45:30 +0000 (15:45 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:32 +0000 (09:36 -0800)
ee/704f7428c0f5b40a5459303c2554528e8d6e08 [new file with mode: 0644]

diff --git a/ee/704f7428c0f5b40a5459303c2554528e8d6e08 b/ee/704f7428c0f5b40a5459303c2554528e8d6e08
new file mode 100644 (file)
index 0000000..631bc70
--- /dev/null
@@ -0,0 +1,75 @@
+Return-Path: <pioto@pioto.org>\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 95D88418C25\r
+       for <notmuch@notmuchmail.org>; Thu,  8 Apr 2010 12:44:46 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9] autolearn=ham\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 qpltikj7tzl4 for <notmuch@notmuchmail.org>;\r
+       Thu,  8 Apr 2010 12:44:45 -0700 (PDT)\r
+Received: from everglades.pioto.org (everglades.pioto.org [207.192.69.249])\r
+       by olra.theworths.org (Postfix) with ESMTP id 86A554196F0\r
+       for <notmuch@notmuchmail.org>; Thu,  8 Apr 2010 12:44:45 -0700 (PDT)\r
+Received: from aether.pioto.org (pool-96-236-149-110.pitbpa.fios.verizon.net\r
+       [96.236.149.110]) (Authenticated sender: pioto)\r
+       by everglades.pioto.org (Postfix) with ESMTPA id 4D74E160E00;\r
+       Thu,  8 Apr 2010 15:44:45 -0400 (EDT)\r
+Received: by aether.pioto.org (Postfix, from userid 1000)\r
+       id 87C256B08C; Thu,  8 Apr 2010 15:45:49 -0400 (EDT)\r
+From: Mike Kelly <pioto@pioto.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/3] apply all the other maildir flag->tag conversions\r
+Date: Thu,  8 Apr 2010 15:45:30 -0400\r
+Message-Id: <1270755931-24290-2-git-send-email-pioto@pioto.org>\r
+X-Mailer: git-send-email 1.7.0.4\r
+In-Reply-To: <1270755931-24290-1-git-send-email-pioto@pioto.org>\r
+References: <1270755931-24290-1-git-send-email-pioto@pioto.org>\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: Thu, 08 Apr 2010 19:44:47 -0000\r
+\r
+---\r
+ notmuch-new.c |   10 ++++++++++\r
+ 1 files changed, 10 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/notmuch-new.c b/notmuch-new.c\r
+index 511347d..dc33d69 100644\r
+--- a/notmuch-new.c\r
++++ b/notmuch-new.c\r
+@@ -99,6 +99,16 @@ tag_inbox_and_unread (notmuch_message_t *message)\r
+     notmuch_message_add_tag (message, "inbox");\r
+     if (! notmuch_message_md_flag(message, 'S'))\r
+         notmuch_message_add_tag (message, "unread");\r
++    if (notmuch_message_md_flag(message, 'T'))\r
++        notmuch_message_add_tag (message, "deleted");\r
++    if (notmuch_message_md_flag(message, 'D'))\r
++        notmuch_message_add_tag (message, "draft");\r
++    if (notmuch_message_md_flag(message, 'F'))\r
++        notmuch_message_add_tag (message, "flagged");\r
++    if (notmuch_message_md_flag(message, 'P'))\r
++        notmuch_message_add_tag (message, "passed");\r
++    if (notmuch_message_md_flag(message, 'R'))\r
++        notmuch_message_add_tag (message, "replied");\r
+ }\r
\r
+ static void\r
+-- \r
+1.7.0.4\r
+\r