Re: Yet another revision of --format=pretty

2021-07-13 Thread Hannu Hartikainen
On Mon, 12 Jul 2021 20:19:37 -0300, David Bremner  wrote:
> The main thing I was worried about was the vim interface and Felipe
> confirmed that it does not use text format at all. There are no doubt
> user scripts out there that will have to be adjusted, so it would have
> to be a long-ish deprecation, but we've done that before.

Cool!

> I guess the question for you is if the format will still be useful for
> you if we need to include _some_ metadata in order to replace use cases
> for text format? I'm thinking of potentially a couple of X-Notmuch-*
> headers. But that in itself is another design discussion.

I'm fine with that. There also *could* be a way to configure which
headers are displayed; Tomi suggested that the colors should be
configurable, and I think configuring pairs of header+color would be one
option of implementing that. But I need to dogfood some more before I
can confidently say what I like best.

> I think having some quick mail pager for search results makes sense. I'm
> not sure how far in the direction of MH we should go, but we can look at
> each potential change as it arrives.

I'd never heard of MH before. I'll need to try it out :) (For those not
familiar, it can be found at https://www.nongnu.org/nmh/ .) It sounds
philosophically like what I want from a CLI mail client. But then again
I really don't need much. I'm writing this message with this shell
function (and Neovim) and I think it's good enough. :)

nr() {
draft=$(mktemp $HOME/draft-)
$notmuch reply $1 > "$draft" || return
nvim -c 'set filetype=mail' "$draft" || return
cat "$draft"
echo
echo "Press ENTER to send (Ctrl-C to cancel)"
read || return
cat "$draft" | msmtp -t || return
rm "$draft"
}

Hannu
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Re: Yet another revision of --format=pretty

2021-07-12 Thread David Bremner
Hannu Hartikainen  writes:

>
> In my personal opinion this output format is better than `--format=text`
> both for humans and machines. I might consider deprecating `text` now,
> making `pretty` the default later, and then much later removing `text`
> altogether. But I don't know the users and if there would be politics
> involved in such a change.

The main thing I was worried about was the vim interface and Felipe
confirmed that it does not use text format at all. There are no doubt
user scripts out there that will have to be adjusted, so it would have
to be a long-ish deprecation, but we've done that before.

I guess the question for you is if the format will still be useful for
you if we need to include _some_ metadata in order to replace use cases
for text format? I'm thinking of potentially a couple of X-Notmuch-*
headers. But that in itself is another design discussion.

> As I said before, if this is a non-goal for notmuch, I can understand
> this change being unwanted. Still, I'd like some discussion on the
> matter. But maybe most readers of this list don't care either way?

I think having some quick mail pager for search results makes sense. I'm
not sure how far in the direction of MH we should go, but we can look at
each potential change as it arrives.

I'll reply with actual code review in a separate message.
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org