unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Edmondson <dme@dme.org>
To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org
Subject: Re: [PATCH v3 0/9] emacs: Improve the cited message included in replies
Date: Tue, 13 May 2014 11:01:58 +0100	[thread overview]
Message-ID: <cunvbta5755.fsf@hotblack-desiato.hh.sledj.net> (raw)
In-Reply-To: <87vbtak5uz.fsf@qmul.ac.uk>

[-- Attachment #1: Type: text/plain, Size: 4129 bytes --]

Firstly, I don't think that the code resulting from this patch series is
beyond improvement - the intention was really only that it be better
than the current implementation.

On Mon, May 12 2014, Mark Walters wrote:
> On Mon, 12 May 2014, David Edmondson <dme@dme.org> wrote:
>> emacs: Improve the cited message included in replies
>>
>> I tried to do things in small increments to make it easier to review.
>>
>> v2:
>> - Don't run the text/plain hooks when generating the message to quote.
>>
>> v3:
>> - Remove the 'no-button code, as it's no longer used.
>> - Control the insertion of part headers using a function.
>> - Fix the tests.
>
> I think I broadly like this series. I haven't thought through all the
> ramifications yet so this is just some first thoughts. I will also send
> some comments on individual patches.

Thanks!

> In notmuch-show we go to notmuch-show-insert-part-*/* to
> notmuch-mm-display-part-inline and then leave the decision to inline to
> mm-inlined-types. I think this means that, by default, we will not
> inline signatures amongst other things.

The rule is essentially: whatever text would be shown when the message
is displayed for reading, without any of the washing.

> So at the least I think we should decide whether we want to override
> mm-inlined-types.

I'm not really clear on the benefits of this. Could you explain?

> Alternatively, and in my view preferably, we could have a function or
> variable of our own which says which parts to include. Indeed, if do
> it with a function we might be able to make an option to reply to mean
> "include parts currently shown in the notmuch-show buffer" which might
> be nice.

That seems over complicated to me. The rule (above) from this series
is easy to understand and work with. Other mechanisms could be
implemented later, of course.

> There is a related question and possible bug that we might be able to
> do something about at the same time: should we include text parts in the
> reply if they have content-disposition attachment? I have been caught
> about by this on one occasion replying to a message with a 500K log file
> attached (and notmuch-show/wash becomes very slow with a 500K
> message!)

This is really a question of what happens in `show' mode. If it is
currently displaying text parts with content-disposition attachment,
that sounds like a bug that should be fixed (which would mean that the
cited message wouldn't include that part either).

> Finally, I am not sure whether I like having buttons in the reply. My
> instinct is against, but they do add context.

The last patch in the series is an example of trying to do the right
thing - show the part headers when they are necessary for proper
understanding, but elide them in all other cases.

The mechanism used to do this is pretty crude in the patch. One could
imagine a better implementation that examines the depth of the part
tree, etc.

> Best wishes
>
> Mark
>
>
>
>
>>
>>
>> David Edmondson (9):
>>   emacs/show: Re-arrange determination if a part header is necessary
>>   emacs/show: Allow the user to decide when part headers should be
>>     inserted
>>   emacs/show: Accommodate the lack of part header buttons
>>   emacs/mua: Generate improved cited text for replies
>>   emacs/show: Remove the 'no-buttons option of
>>     `notmuch-show-insert-bodypart'
>>   emacs/mua: Don't insert part headers in citations
>>   test: Update the test output to accord with the reply changes
>>   emacs/mua: Insert part headers depending on the message
>>   test: Update the test output to accord with more reply changes
>>
>>  emacs/notmuch-mua.el  |  82 +++++++++++++++++++-----------
>>  emacs/notmuch-show.el | 135 +++++++++++++++++++++++++++++++-------------------
>>  test/T310-emacs.sh    |  44 ++++++++++++++++
>>  3 files changed, 180 insertions(+), 81 deletions(-)
>>
>> -- 
>> 2.0.0.rc0
>>
>> _______________________________________________
>> notmuch mailing list
>> notmuch@notmuchmail.org
>> http://notmuchmail.org/mailman/listinfo/notmuch

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 310 bytes --]

  reply	other threads:[~2014-05-13 10:02 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-10  9:12 reply to messages with message/rfc822 parts Mark Walters
2014-05-07 17:14 ` [RFC] [PATCH] emacs/notmuch-mua: Generate improved cited text for replies David Edmondson
2014-05-08  6:24   ` [PATCH v2] emacs: Improve the cited message included in replies David Edmondson
2014-05-08  6:24     ` [PATCH v2] emacs/notmuch-mua: Generate improved cited text for replies David Edmondson
2014-05-10  8:30     ` [PATCH v2] emacs: Improve the cited message included in replies Mark Walters
2014-05-12  6:06       ` David Edmondson
2014-05-12  8:11         ` Mark Walters
2014-05-12  8:55           ` David Edmondson
2014-05-12 12:29 ` [PATCH v3 0/9] " David Edmondson
2014-05-12 12:29   ` [PATCH v3 1/9] emacs/show: Re-arrange determination if a part header is necessary David Edmondson
2014-05-12 22:09     ` Mark Walters
2014-05-13  9:47       ` David Edmondson
2014-05-12 12:29   ` [PATCH v3 2/9] emacs/show: Allow the user to decide when part headers should be inserted David Edmondson
2014-05-12 22:15     ` Mark Walters
2014-05-13  9:49       ` David Edmondson
2014-05-12 12:29   ` [PATCH v3 3/9] emacs/show: Accommodate the lack of part header buttons David Edmondson
2014-05-12 22:16     ` Mark Walters
2014-05-12 12:29   ` [PATCH v3 4/9] emacs/mua: Generate improved cited text for replies David Edmondson
2014-05-12 22:30     ` Mark Walters
2014-05-13 10:06       ` David Edmondson
2014-05-12 12:29   ` [PATCH v3 5/9] emacs/show: Remove the 'no-buttons option of `notmuch-show-insert-bodypart' David Edmondson
2014-05-12 22:18     ` Mark Walters
2014-05-12 12:29   ` [PATCH v3 6/9] emacs/mua: Don't insert part headers in citations David Edmondson
2014-05-12 12:29   ` [PATCH v3 7/9] test: Update the test output to accord with the reply changes David Edmondson
2014-05-13 12:16     ` Mark Walters
2014-05-12 12:29   ` [PATCH v3 8/9] emacs/mua: Insert part headers depending on the message David Edmondson
2015-01-19 20:06     ` Mark Walters
2015-01-20  8:44       ` David Edmondson
2014-05-12 12:29   ` [PATCH v3 9/9] test: Update the test output to accord with more reply changes David Edmondson
2014-05-12 22:08   ` [PATCH v3 0/9] emacs: Improve the cited message included in replies Mark Walters
2014-05-13 10:01     ` David Edmondson [this message]
2014-05-13 12:05       ` Mark Walters
2016-02-06 21:27   ` David Edmondson
2017-03-12 16:26 ` reply to messages with message/rfc822 parts David Bremner

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=cunvbta5755.fsf@hotblack-desiato.hh.sledj.net \
    --to=dme@dme.org \
    --cc=markwalters1009@gmail.com \
    --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).