From: Mark Walters <markwalters1009@gmail.com>
To: Jameson Graef Rollins <jrollins@finestructure.net>,
Istvan Marko <notmuch@kismala.com>,
notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: add buttons for all multipart/related parts
Date: Tue, 20 Aug 2013 19:23:24 +0100 [thread overview]
Message-ID: <87ob8ste5f.fsf@qmul.ac.uk> (raw)
In-Reply-To: <87fvu4fl25.fsf@servo.finestructure.net>
Hi
What does the (mis-behaving) part button say? is it [image/jpeg] or
[application/octet-stream as image/jpeg] or? and what do correctly
behaving part buttons say?
Best wishes
Mark
Jameson Graef Rollins <jrollins@finestructure.net> writes:
> On Fri, Aug 16 2013, Istvan Marko <notmuch@kismala.com> wrote:
>> When text/html parts include images as multipart/related and the
>> text/plain alternative is used these images can be completely hidden
>> with no easy way to access them or even find out that they are there.
>>
>> Make notmuch-show-insert-part-multipart/related add buttons for all
>> parts, the first one visible the rest hidden.
>
> Hey, Istvan. Thanks so much for this patch. It seems to be addressing
> the same issue I reported in id:87ob8u8l6k.fsf@servo.finestructure.net.
>
> However, the behavior of the part button that now appears seems to be a
> bit strange. Clicking/hitting enter on the part attempts to save it
> rather than open it. I wouldn't be surprised if has nothing to do with
> the correctness of this patch, though. So is it possible that the
> button is not inserted in the most ideal way, or is there some other
> issue preventing it from behaving properly (could it have to do with the
> part being "inline"?)?
>
> jamie.
>
>
>> emacs/notmuch-show.el | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
>> index 82b70ba..20844f0 100644
>> --- a/emacs/notmuch-show.el
>> +++ b/emacs/notmuch-show.el
>> @@ -621,6 +621,10 @@ message at DEPTH in the current thread."
>>
>> ;; Render the primary part.
>> (notmuch-show-insert-bodypart msg (car inner-parts) depth)
>> + ;; Add hidden buttons for the rest
>> + (mapc (lambda (inner-part)
>> + (notmuch-show-insert-bodypart msg inner-part depth t))
>> + (cdr inner-parts))
>>
>> (when notmuch-show-indent-multipart
>> (indent-rigidly start (point) 1)))
>> --
>> 1.8.1.4
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
next prev parent reply other threads:[~2013-08-20 18:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-16 20:24 [PATCH] emacs: add buttons for all multipart/related parts Istvan Marko
2013-08-20 15:17 ` Jameson Graef Rollins
2013-08-20 15:43 ` Istvan Marko
2013-08-20 16:07 ` Jameson Graef Rollins
2013-08-20 16:17 ` Istvan Marko
2013-08-20 18:23 ` Mark Walters [this message]
2013-08-21 17:26 ` Jameson Graef Rollins
2013-08-23 8:36 ` Mark Walters
2013-09-01 17:13 ` Mark Walters
2013-09-10 11:15 ` 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=87ob8ste5f.fsf@qmul.ac.uk \
--to=markwalters1009@gmail.com \
--cc=jrollins@finestructure.net \
--cc=notmuch@kismala.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).