From: Jameson Graef Rollins <jrollins@finestructure.net>
To: Austin Clements <amdragon@MIT.EDU>,
Mark Walters <markwalters1009@gmail.com>
Cc: notmuch@notmuchmail.org
Subject: Re: [PATCH v2] emacs: show: lazy part bugfix
Date: Wed, 04 Sep 2013 08:50:39 -0700 [thread overview]
Message-ID: <87hae07fhs.fsf@servo.finestructure.net> (raw)
In-Reply-To: <20130904145639.GB1426@mit.edu>
[-- Attachment #1: Type: text/plain, Size: 1711 bytes --]
On Wed, Sep 04 2013, Austin Clements <amdragon@MIT.EDU> wrote:
>> Now, some mime parts have subparts and to avoid overwriting the
>> sub-part data notmuch checks and if part data is already recorded it
>> does not overwrite it.
>>
>> Now with lazy part handling this could fail: there is already part
>> data stored. In the common case it works as the part type information
>> was stored when the lazy-part button was inserted. However, this fails
>> if the lazy part has sub-parts: notmuch had no idea these existed
>> until the lazy part insertion.
>
> This says that things fail when a lazy part has sub-parts, but not
> what the failure is. What is the failure? Can you give a specific
> sequence of events and conditions that leads to and demonstrates the
> failure?
>
> (I ask not just for commit posterity, but because I actually don't
> know, though I may have figured it out after writing the comment
> below.)
Hey, Austin. Here's an example of a mail that is effected the issue:
└┬╴multipart/alternative 896783 bytes
├─╴text/plain 379 bytes
└┬╴multipart/related 892556 bytes
├─╴text/html 1236 bytes
└─╴image/jpeg inline [photo.JPG] 890841 bytes
The multipart/related part is initially hidden. Without Istvan's patch,
there would be no button at all for the image/jpeg part, even when the
multipart/related is exposed. With Istvan's patch the image/jpeg button
is there, but without Mark's patch the button would actually reference
the entire multipart/alternative part, instead of just the image/jpeg.
If I tried to save the image/jpeg I would get the entire
multipart/alternative mime structure in plain text.
jamie.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next prev parent reply other threads:[~2013-09-04 15:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-23 8:34 [PATCH] emacs: show: lazy part bugfix Mark Walters
2013-09-01 16:18 ` Jameson Graef Rollins
2013-09-04 7:30 ` [PATCH v2] " Mark Walters
2013-09-04 14:56 ` Austin Clements
2013-09-04 15:50 ` Jameson Graef Rollins [this message]
2013-09-04 16:16 ` Austin Clements
2013-09-05 18:46 ` Mark Walters
2013-09-06 23:28 ` [PATCH] emacs: show: lazy part handling bugfix Mark Walters
2013-09-09 13:56 ` Austin Clements
2013-09-10 11:14 ` 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=87hae07fhs.fsf@servo.finestructure.net \
--to=jrollins@finestructure.net \
--cc=amdragon@MIT.EDU \
--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).