From: Mike Kelly <pioto@pioto.org>
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 [thread overview]
Message-ID: <1270755931-24290-2-git-send-email-pioto@pioto.org> (raw)
In-Reply-To: <1270755931-24290-1-git-send-email-pioto@pioto.org>
---
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
next prev parent reply other threads:[~2010-04-08 19:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 19:45 [PATCH 1/3] Initial support for maildir flags Mike Kelly
2010-04-08 19:45 ` Mike Kelly [this message]
2010-04-08 19:45 ` [PATCH 3/3] document new `notmuch new` behavior Mike Kelly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1270755931-24290-2-git-send-email-pioto@pioto.org \
--to=pioto@pioto.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).