omit inbox tag on sent folder
by R. Andrew Bailey
I've been using mutt-kz for several months and absolutely love it. I
suspect this is a dumb question, so apologies in advance.
I use 'set record="+sent"', and I find that my sent mail is
automatically indexed (good), but that it gets tagged as +inbox. I
considered adding sent to the new.ignore option in notmuch-config, but
I definitely like having it indexed.
I'm thinking I can ignore sent and then use a post send hook to index
my sentmail folder without adding +inbox, but I'm guessing there may
be some simpler way to do this. Any advice appreciated.
.andy
10 years, 11 months
[PATCH] notmuch: print read progress of a query
by David Sterba
Signed-off-by: David Sterba <dsterba(a)suse.cz>
---
mutt_notmuch.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/mutt_notmuch.c b/mutt_notmuch.c
index 0ffe83d..cb1891d 100644
--- a/mutt_notmuch.c
+++ b/mutt_notmuch.c
@@ -83,6 +83,7 @@ struct nm_ctxdata {
int longrun;
struct uri_tag *query_items;
+ progress_t *progress;
};
static void url_free_tags(struct uri_tag *tags)
@@ -782,6 +783,8 @@ static void append_replies(CONTEXT *ctx, notmuch_message_t *top)
notmuch_message_t *m = notmuch_messages_get(msgs);
append_message(ctx, m);
+ if (!ctx->quiet)
+ mutt_progress_update (get_ctxdata(ctx)->progress, ctx->msgcount, -1);
/* recurse through all the replies to this message too */
append_replies(ctx, m);
notmuch_message_destroy(m);
@@ -802,6 +805,8 @@ static void append_thread(CONTEXT *ctx, notmuch_thread_t *thread)
notmuch_message_t *m = notmuch_messages_get(msgs);
append_message(ctx, m);
+ if (!ctx->quiet)
+ mutt_progress_update (get_ctxdata(ctx)->progress, ctx->msgcount, -1);
append_replies(ctx, m);
notmuch_message_destroy(m);
}
@@ -825,6 +830,8 @@ static void read_mesgs_query(CONTEXT *ctx, notmuch_query_t *q)
notmuch_message_t *m = notmuch_messages_get(msgs);
append_message(ctx, m);
+ if (!ctx->quiet)
+ mutt_progress_update (get_ctxdata(ctx)->progress, ctx->msgcount, -1);
notmuch_message_destroy(m);
}
}
@@ -856,6 +863,8 @@ int nm_read_query(CONTEXT *ctx)
notmuch_query_t *q;
struct nm_ctxdata *data;
int rc = -1;
+ char msgbuf[STRING];
+ progress_t progress;
if (init_context(ctx) != 0)
return -1;
@@ -864,8 +873,14 @@ int nm_read_query(CONTEXT *ctx)
if (!data)
return -1;
+ data->progress = &progress;
+
dprint(1, (debugfile, "nm: reading messages...[current count=%d]\n",
ctx->msgcount));
+ if (!ctx->quiet) {
+ snprintf (msgbuf, sizeof (msgbuf), _("Reading %s..."), ctx->path);
+ mutt_progress_init (data->progress, msgbuf, M_PROGRESS_MSG, ReadInc, 0);
+ }
q = get_query(data, FALSE);
if (q) {
--
1.7.6.233.gd79bc
11 years, 5 months
[PATCH] format: support optional modifier for g (notmuch labels)
by David Sterba
Used in index_format like this %?g?(%g)? will show nothing if there are
no notmuch labels, eg. in mixed mail setups.
Signed-off-by: David Sterba <dsterba(a)suse.cz>
---
hdrline.c | 5 ++++-
init.h | 1 +
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/hdrline.c b/hdrline.c
index 8292f58..18ca273 100644
--- a/hdrline.c
+++ b/hdrline.c
@@ -451,7 +451,10 @@ hdr_format_str (char *dest,
break;
#ifdef USE_NOTMUCH
case 'g':
- mutt_format_s (dest, destlen, prefix, nm_header_get_tags(hdr));
+ if (!optional)
+ mutt_format_s (dest, destlen, prefix, nm_header_get_tags(hdr));
+ else if (!nm_header_get_tags(hdr))
+ optional = 0;
break;
#endif
case 'H':
diff --git a/init.h b/init.h
index 886c6a3..131ee03 100644
--- a/init.h
+++ b/init.h
@@ -1256,6 +1256,7 @@ struct option_t MuttVars[] = {
** .dt %E .dd number of messages in current thread
** .dt %f .dd sender (address + real name), either From: or Return-Path:
** .dt %F .dd author name, or recipient name if the message is from you
+ ** .dt %g .dd message labels (e.g. notmuch tags)
** .dt %H .dd spam attribute(s) of this message
** .dt %i .dd message-id of the current message
** .dt %l .dd number of lines in the message (does not work with maildir,
--
1.7.6.233.gd79bc
11 years, 5 months
mutt-kz debian package 1.5.21-9
by Víctor M. Jáquez L.
Hi,
My mutt debian build is again synchronized with the current mutt-kz HEAD
(3aac54d)
Steps to build and install the package:
$ git clone git://gitorious.org/vjaquez-misc/mutt.git
$ cd mutt
$ git checkout mutt-kz
$ dpkg-buildpackage -rfakeroot -us -uc -b
$ cd ..
$ sudo dpkg -i mutt_1.5.21-9_amd64.deb mutt-patched_1.5.21-9_amd64.deb
vmjl
11 years, 5 months