unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>
To: notmuch@notmuchmail.org
Subject: Re: [PATCH 0/2] Bug and potential fix: forwarded messages
Date: Fri, 3 Feb 2012 23:01:23 -0700	[thread overview]
Message-ID: <CAMoJFUsfPwmLPxhK_mCbJ7N66u5+62QQne-oNJjVawSUzfFrjg@mail.gmail.com> (raw)
In-Reply-To: <1328315554-16085-1-git-send-email-awg+notmuch@xvx.ca>

Oh, and I just noticed that Dmitry has already fixed this, probably in
a better way [1] (though I maintain that there still may be a problem
with the approach in general).  I clearly haven't been following the
list closely enough this week.

[1] id:"1327926286-16680-1-git-send-email-dmitry.kurochkin@gmail.com"

On Fri, Feb 3, 2012 at 17:32, Adam Wolfe Gordon <awg+notmuch@xvx.ca> wrote:
> Hi everyone,
>
> I encountered today a bug that I remember being mentioned on IRC where
> some messages are shown in emacs as completely empty, even though their
> content is present and simple. For me, the bug shows up with messages that
> have been forwarded by an Outlook user who didn't add any content to the top
> of the message. The first line of the message is "-----Original Message-----",
> and the rest is the forwarded text. Notmuch tries to collapse the forwarded
> content into a button, but fails mysteriously.
>
> The first patch in this series adds a test (marked as broken) that demonstrates
> the bug. I think this should be pushed regardless of whether my solution is
> the right one. My solution is to check whether we're collapsing the entire
> message before doing so, and avoid turning it into a button if that's the case.
> I think this is a desirable behavior, since if someone has forwarded a message
> without adding anything the user probably wants to read that message. But,
> I'll admit that I didn't figure out the real cause of the problem, and I
> would be happy to hear other suggestions.
>
> It also occurs to me that this might indicate a bigger problem with how
> notmuch-wash.el handles messages starting with "-----Original Message-----".
> Notmuch seems to assume that this indicates the rest of the message is quoted
> stuff that's been top-posted on. In my office this isn't necessarily the case,
> since Outlook produces that line at the top of every reply, and it's up to
> the user whether to top-post or not (and not everyone does).
>
> I'll have to experiment a bit more to verify whether a problem (i.e. whether
> Notmuch hides inappropriate things when someone replies inline with Outlook).
> Someone please correct me if I'm missing something in how the code operates.
>
> Adam Wolfe Gordon (2):
>  test: Add broken test for showing forwarded messages
>  emacs: Fix broken showing of forwarded messages.
>
>  emacs/notmuch-wash.el |    5 +++--
>  test/emacs            |   32 ++++++++++++++++++++++++++++++++
>  2 files changed, 35 insertions(+), 2 deletions(-)
>
> --
> 1.7.5.4
>

  parent reply	other threads:[~2012-02-04  6:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-04  0:32 [PATCH 0/2] Bug and potential fix: forwarded messages Adam Wolfe Gordon
2012-02-04  0:32 ` [PATCH 1/2] test: Add broken test for showing " Adam Wolfe Gordon
2012-02-04  0:32 ` [PATCH 2/2] emacs: Fix broken showing of " Adam Wolfe Gordon
2012-02-04  6:01 ` Adam Wolfe Gordon [this message]
2012-02-04  6:10   ` [PATCH 0/2] Bug and potential fix: " Dmitry Kurochkin
2012-02-04 16:51     ` Adam Wolfe Gordon

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=CAMoJFUsfPwmLPxhK_mCbJ7N66u5+62QQne-oNJjVawSUzfFrjg@mail.gmail.com \
    --to=awg+notmuch@xvx.ca \
    --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).