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