I have merged some pending patches (please, git pull):
* add "nm_exclude_tags" to not load messages from specified tags from notmuch DB at all.
* add "tag-transforms" to transform tags to (for example) unicode symbols
* add "tag-formats" to define a tag specific $index_format %Gx formatting sequences (where 'x' is configurable).
For example transform "honey" tag to unicode heart symbol and display the symbol by tag specific %Gh formatting sequence.
tag-transforms "honey" "❤" tag-formats "honey "Gh" set index_format = "%4C %Z %?Gh?%Gh& ? %[%d/%b] %-16.15F %s"
Note that %G may display hidden tags too.
* add index_tag color object to colorize %G tags, for example:
color index_tag red default '(honey)'
to colorize the symbol define in the previous example
* add "Tags:" line to the email view
* merge old index color patch to coloring individual columns in the index, supported objects:
index_subject index_author index_collapsed index_date index_flags index_label index_number index_size index_tags - %g output index_tag - %Gx output
for more details and screenshot see https://github.com/karelzak/mutt-kz/pull/49
* merge nested if-else conditional patch (%? conditions in index_format)
* date conditional patch, so you can use relative times, etc., for example I use:
%<[1y?%<[1w?%<[1d?%[ %H:%M]&%[%a %d]>&%[%b %d]>&%[%y%m%d]>
to display "YYMMDD" for messages older than one year, "Mon DD" for messages from one week to one year, "Day DD" for messages from 1 to 7 days old, and the "HH:MM" time for messages under one day old.
Thanks to Eric Davis!
TODO:
* merge the current mutt upstream patches (v1.5.22) to mutt-kz
* status line color patch: https://thomas.glanzmann.de//mutt/#cstatus
* improve save-message command to update notmuch DB
Volunteers? ;-)
Karel
On Wed, Nov 06, 2013 at 12:09:50PM +0100, Karel Zak wrote:
TODO:
- merge the current mutt upstream patches (v1.5.22) to mutt-kz
I did the merge from upstream some time ago, but haven't sent a pull request yet. Will do.
- status line color patch: https://thomas.glanzmann.de//mutt/#cstatus
The patch looks simple and unintrusive, this should be easy.
I have a broader question: do you want to merge more of the 3rd party mutt patches?
Ther's the indexcolor patch that complements the 'statusbar color', dunno how close is the color definition syntax. There are lots of others that may not be useful to everybody and are not related to the notmuch extensions. I still work with mboxes (archived mailinglists) so eg. the open-hook (aka. compressed mailboxes) is handy.
Part of the question is how far from the upstream is it wise to diverge. Because, believe it or not, mutt development seems to be alive again, so the generic functionality could/should go via upstream.
david
On Wed, Nov 06, 2013 at 01:13:23PM +0100, David Sterba wrote:
On Wed, Nov 06, 2013 at 12:09:50PM +0100, Karel Zak wrote:
TODO:
- merge the current mutt upstream patches (v1.5.22) to mutt-kz
I did the merge from upstream some time ago, but haven't sent a pull request yet. Will do.
I did the merge in April.
how close is the color definition syntax. There are lots of others that may not be useful to everybody and are not related to the notmuch
Well, this project is really not restricted to notmuch, for example I like UI improvements and UI customization (this is reason why I use mutt:-)
extensions. I still work with mboxes (archived mailinglists) so eg. the open-hook (aka. compressed mailboxes) is handy.
OK.
Part of the question is how far from the upstream is it wise to diverge.
IMHO it's obvious that we will more and more diverge, I have doubts that mutt upstream cares about the same things like mutt-kz, many patches are out of the official mutt tree for decade ...
Because, believe it or not, mutt development seems to be alive again, so
I know.
the generic functionality could/should go via upstream.
Yep, that's good point.
Karel
On Wed, Nov 06, 2013 at 01:13:23PM +0100, David Sterba wrote:
On Wed, Nov 06, 2013 at 12:09:50PM +0100, Karel Zak wrote:
TODO:
- merge the current mutt upstream patches (v1.5.22) to mutt-kz
I did the merge from upstream some time ago, but haven't sent a pull request yet. Will do.
Thanks, just to avoid duplicate work: https://github.com/karelzak/mutt-kz/pull/50
Karel
On Wed, Nov 06, 2013 at 12:09:50PM +0100, Karel Zak wrote:
- merge old index color patch to coloring individual columns in the index, supported objects:
- merge nested if-else conditional patch (%? conditions in index_format)
Oh, I missed that ifdef and indexcolor got merged. Nice.
Hi,
I seem to have some issues with un-coloring message text. I think it worked some time in the past, but does not seem to be working now.
uncolor body yellow black "Evaluator:.*" yellow: unknown command
uncolor body * *: unknown command
Does uncoloring work for you?
Thank you
I seem to have some issues with un-coloring message text. I think it worked some time in the past, but does not seem to be working now.
uncolor body yellow black "Evaluator:.*" yellow: unknown command
uncolor body * *: unknown command
It's because https://github.com/karelzak/mutt-kz/commit/d18b4cdfc39c887a97aefaf981d7e40bf... does not support body and header colors. The attached file should fix it.
I haven't done git clone and pull request, hopefully you'll accept plain old diff ...
Thank you
On Thu, Nov 07, 2013 at 09:46:32PM +0100, Vladimir Marek wrote:
I seem to have some issues with un-coloring message text. I think it worked some time in the past, but does not seem to be working now.
uncolor body yellow black "Evaluator:.*" yellow: unknown command
uncolor body * *: unknown command
It's because https://github.com/karelzak/mutt-kz/commit/d18b4cdfc39c887a97aefaf981d7e40bf... does not support body and header colors. The attached file should fix it.
I haven't done git clone and pull request, hopefully you'll accept plain old diff ...
Applied, thanks.
Karel
Hi Karel et. al,
On 06 Nov 06:09, Karel Zak wrote:
I have merged some pending patches (please, git pull):
Cool thanks! Great changes.
TODO:
merge the current mutt upstream patches (v1.5.22) to mutt-kz
status line color patch: https://thomas.glanzmann.de//mutt/#cstatus
improve save-message command to update notmuch DB
Just curious because it wasn't included, and my e-mail address is weird enough to get caught by overzealous anti-spam mechanisms, did you receive my "virtual message-id" patch?
I'm subscribed to the http://nettime.org/ mailing list which unfortunately sends out messages without a message-id. It doesn't only break threading, but mutt-kz wasn't able to change the tags as the id for message with a missing message-id defaults to NULL. notmuch has it's own internal virtual message-id for such cases: notmuch-sha1-$sha1hexdigest
I'm not very proficient in C, so what I sent you (via e-mail) is really a bit of a hack: http://ha.x0.rs/0001-notmuch-Handle-messages-without-Message-ID.patch
It just occurred to me, there might be a licensing issue, given that the code I duplicated from notmuch is GPL3 and mutt GPL2. Shall I refactor my own patch and resend? Maybe someone else who didn't bother to send a bug report/mail so far is plagued by this issue …
Best, Michael
PS: If you're wondering about my User-Agent: kz has a rather terrible meaning in German, my native tongue.
On Wed, Nov 06, 2013 at 10:56:38AM -0500, Michael Zeltner wrote:
Hi Karel et. al,
On 06 Nov 06:09, Karel Zak wrote:
I have merged some pending patches (please, git pull):
Cool thanks! Great changes.
TODO:
merge the current mutt upstream patches (v1.5.22) to mutt-kz
status line color patch: https://thomas.glanzmann.de//mutt/#cstatus
improve save-message command to update notmuch DB
Just curious because it wasn't included, and my e-mail address is weird enough to get caught by overzealous anti-spam mechanisms, did you receive my "virtual message-id" patch?
Yes, your patch is waiting... :-)
I'm subscribed to the http://nettime.org/ mailing list which unfortunately sends out messages without a message-id. It doesn't only break threading, but mutt-kz wasn't able to change the tags as the id for message with a missing message-id defaults to NULL. notmuch has it's own internal virtual message-id for such cases: notmuch-sha1-$sha1hexdigest
I'm not very proficient in C, so what I sent you (via e-mail) is really a bit of a hack: http://ha.x0.rs/0001-notmuch-Handle-messages-without-Message-ID.patch
It just occurred to me, there might be a licensing issue, given that the code I duplicated from notmuch is GPL3 and mutt GPL2. Shall I refactor my own patch and resend? Maybe someone else who didn't bother to send a bug report/mail so far is plagued by this issue …
I'll play with the patch at the end of this week, we will see.
PS: If you're wondering about my User-Agent: kz has a rather terrible meaning in German, my native tongue.
:-)
Karel
On Wed, Nov 06, 2013 at 10:56:38AM -0500, Michael Zeltner wrote:
Just curious because it wasn't included, and my e-mail address is weird enough to get caught by overzealous anti-spam mechanisms, did you receive my "virtual message-id" patch?
I'm subscribed to the http://nettime.org/ mailing list which unfortunately sends out messages without a message-id. It doesn't only break threading, but mutt-kz wasn't able to change the tags as the id for message with a missing message-id defaults to NULL. notmuch has it's own internal virtual message-id for such cases: notmuch-sha1-$sha1hexdigest
Hmm.. I have merged some time ago patch:
https://github.com/ramLlama/mutt-kz/commit/8565c3a7f319b0baf04185982da61eb86...
where the ID is generated from header length (well, pretty strange method...). I reverted this patch now.
I see a better way -- rather than generate a message Id within mutt we can ask notmuch for the Id when we fetch messages from the DB.
It seems better to always rely on the notmuch message Id than try to be smart and try to use mutt env->message_id.
Please, git pull & make -- I have no such crazy emails, so you have to tests it :-)
Karel
On 07 Nov 10:11, Karel Zak wrote:
It seems better to always rely on the notmuch message Id than try to be smart and try to use mutt env->message_id.
Please, git pull & make -- I have no such crazy emails, so you have to tests it :-)
Sounds a lot more reasonable, should've dug around the source a little more to realise that's possible. Works fine, thanks!
Michael
On Wed, Nov 06, 2013 at 12:09:50PM +0100, Karel Zak wrote:
TODO:
- improve save-message command to update notmuch DB
Fixed (I hope it has no some bad consequences and side effects;-)
Karel
mutt-kz@lists.fedoraproject.org