From: "Matthew Lear" <matt@bubblegen.co.uk>
To: notmuch@notmuchmail.org
Subject: (emacs) Parsing problems replying to encrypted html
Date: Tue, 1 Mar 2016 13:09:16 -0000 [thread overview]
Message-ID: <f50e07855e9bbbdd780ef925d8e2d879.squirrel@webmail.plus.net> (raw)
Hi,
I've noticed a problem when replying to an encrypted email when I have
html set as preferred over plain text. Looks like notmuch fails to parse
the body and the original body text in notmuch-reply just looks like this:
> [ text/html ]
> !!! Bodypart insert error: End of file during parsing !!!
A few things which might help understand what could be happening here...
notmuch from git with head @ 07b6220
gmime 2.6.20-r1 (gentoo)
(setq mm-text-html-renderer 'shr)
(setq shr-inhibit-images nil)
(setq mime-view-text/html-previewer 'shr)
(setq mm-inline-text-html-with-images t)
(set-locale-environment "en_GB.UTF-8")
(set-language-environment 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
(setq notmuch-multipart/alternative-discouraged '("text/plain"
"multipart/related"))
The message I'm replying to looks like:
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101
Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <removed>
Content-Type: multipart/encrypted;
protocol="application/pgp-encrypted";
boundary="et6k1RmUSFFnhWFnwewqvineB8rlw3boE"
This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156)
--et6k1RmUSFFnhWFnwewqvineB8rlw3boE
Content-Type: application/pgp-encrypted
Content-Description: PGP/MIME version identification
Version: 1
--et6k1RmUSFFnhWFnwewqvineB8rlw3boE
Content-Type: application/octet-stream; name="encrypted.asc"
Content-Description: OpenPGP encrypted message
Content-Disposition: inline; filename="encrypted.asc"
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2
hQEMA41hzuYEoCb4AQgApMvj7nt6Goj1kLDUheofRWwORI/CNFgExIIAAz8ivJxH
...
...
6nVgRBQIJp+59xsmfC2axrASSAh11/ZdVl3T60LvlrsoKLkBHNAC4W+H/cyxxDk0
BnJC8+QJbgbyRBANUV4d5PCUbKcuDRW/TVQhtZY=
=rKjq
-----END PGP MESSAGE-----
--et6k1RmUSFFnhWFnwewqvineB8rlw3boE--
Notmuch shows this as:
[ multipart/encrypted ]
[ Decryption successful ]
[ Good signature by: xxxx ]
[ application/pgp-encrypted ]
Version: 1
[ multipart/mixed ]
[ multipart/alternative ]
[ text/plain (hidden) ]
[ multipart/related ]
[ text/html (hidden) ]
[ image.jpg: image/jpeg (hidden) ]
Things of interest:
1/ I have the same encrypted email in plain text only and replying to it
works fine with notmuch.
2/ I can view the html from the email in a browser, and it looks fine.
3/ If I switch emacs to use w3m instead of shr, I don't see the 'Bodypart
insert error' fro notmuch-reply but there is no original message included
in the reply composition either.
I'm not quite sure if this is a notmuch issue as such, or attributed to my
emacs config, or something else...
I don't know exactly what is supposed to happen when replying to html
emails, but if I reply to an html email which is not encrypted, there is
no '> [ text/html ]' in the reply composition window - it's just text from
the original message that I'm replying to and nothing more.
Since the encrypted email I'm replying has a text part, can notmuch use
this and quote it when replying (obviously ensuring that the entire reply
will be encrypted).
Any thoughts?
Thanks a lot.
-- Matt
next reply other threads:[~2016-03-01 13:16 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-01 13:09 Matthew Lear [this message]
2016-03-01 13:38 ` (emacs) Parsing problems replying to encrypted html David Edmondson
2016-03-01 13:59 ` Matthew Lear
2016-03-07 9:24 ` Matthew Lear
2016-03-07 12:20 ` David Bremner
2016-03-07 21:01 ` Matthew Lear
2016-03-08 11:22 ` David Bremner
2016-03-08 11:44 ` Matthew Lear
2016-03-08 12:08 ` David Bremner
2016-03-08 12:28 ` Matthew Lear
2016-03-08 12:26 ` Tomi Ollila
2016-03-08 12:39 ` Tomi Ollila
2016-03-08 14:06 ` Matthew Lear
2016-03-10 12:09 ` David Bremner
2016-03-10 12:23 ` David Edmondson
2016-03-12 13:33 ` David Bremner
2016-03-12 14:37 ` David Edmondson
2016-03-13 16:09 ` Jani Nikula
2016-03-14 8:32 ` David Edmondson
2016-03-31 19:20 ` Matthew Lear
2016-04-01 11:34 ` David Bremner
2016-04-01 11:54 ` Matthew Lear
2016-04-01 13:28 ` David Bremner
2016-04-01 13:58 ` Matthew Lear
2016-04-01 18:29 ` Matthew Lear
2016-04-01 23:24 ` David Bremner
2016-04-03 18:42 ` David Edmondson
2016-07-22 16:47 ` Matthew Lear
2016-07-23 13:40 ` 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=f50e07855e9bbbdd780ef925d8e2d879.squirrel@webmail.plus.net \
--to=matt@bubblegen.co.uk \
--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).