Modify getMessagePart to only return selected message part if it
isn't an attachment, to prevent accidentally quoting a (possibly)
binary attachment file.
Can't we detect instead if it is a binary file? I actually see the merit in
replying to say an attached README.md. Although in that case you might need
parts of text/html as well ... For that you probably need to pipe the message
part to your clipboard and insert in the composer.
While I agree this could be improved along Bence's proposals, I also think
that this patch is already better than what we had.
I'm having trouble in the following situation, however:
(multipart/related)
(multipart/alternative)
(text/plain)
(text/html)
image003.jpg (image/jpeg)
attachment.pdf (application/pdf)
If I reply while having "attachment.pdf", it works allright and I get to
reply to the text/plain part. However, if I reply while having
"image003.jpg" selected, I get to reply to the binary representation of
that file.
:-?