unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#50154: [Rmail]: Cannot save attachments from decryped email
@ 2021-08-21 20:27 Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-08-22  9:49 ` Eli Zaretskii
  2021-08-29 11:11 ` Ariel Costas
  0 siblings, 2 replies; 6+ messages in thread
From: Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-08-21 20:27 UTC (permalink / raw)
  To: 50154

When I receive an unencrypted email on my inbox and view it through
Rmail, I get the option to save the file.

     [1:text/plain Show]

     [2:image/jpeg Show Save:My_attachment.jpg (400kB)]

However, when I receive an encrypted message, and decrypt it with `M-x
rmail-epa-decrypt`, I get to see the plaintext of all the email, with
the multipart/mixed Content-Type, the email's body and then another part
with the attachment as base64, without an option to save it to my disk.

    Content-Type: multipart/mixed;boundary=---------------------BOUNDARY

    -----------------------BOUNDARY
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain;charset=utf-8

    The body of the message
    -----------------------BOUNDARY
    Content-Type: mime/type; filename="My_attachment.format"; name="My_attachment.format"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename="My_attachment.jpg"; name="My_attachment.format"

Apparently, when decrypting the email, Rmail doesn't parse its contents
to highlight it or show the attachments as on the first scenario.

--
Ariel Costas https://costas.dev

Encrypt your email -- https://emailselfdefense.org/
  GnuPG public key -- https://costas.dev/pgp





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#50154: [Rmail]: Cannot save attachments from decryped email
  2021-08-21 20:27 bug#50154: [Rmail]: Cannot save attachments from decryped email Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-08-22  9:49 ` Eli Zaretskii
  2021-08-22 10:29   ` Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-08-29 11:11 ` Ariel Costas
  1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2021-08-22  9:49 UTC (permalink / raw)
  To: Ariel Costas; +Cc: 50154

> Date: Sat, 21 Aug 2021 20:27:17 +0000
> From:  Ariel Costas via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> When I receive an unencrypted email on my inbox and view it through
> Rmail, I get the option to save the file.
> 
>      [1:text/plain Show]
> 
>      [2:image/jpeg Show Save:My_attachment.jpg (400kB)]
> 
> However, when I receive an encrypted message, and decrypt it with `M-x
> rmail-epa-decrypt`, I get to see the plaintext of all the email, with
> the multipart/mixed Content-Type, the email's body and then another part
> with the attachment as base64, without an option to save it to my disk.

Could you please add more details to your report?

First, which version of Emacs is that?  If it isn't Emacs 28 from the
master branch of the Emacs Git repository, could you please try the
latest master and see if the problem persists?

And second, rmail-epa-decrypt should ask whether to replace the
original message -- did it ask, and if it did, what was your answer to
that question?

Thanks.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#50154: [Rmail]: Cannot save attachments from decryped email
  2021-08-22  9:49 ` Eli Zaretskii
@ 2021-08-22 10:29   ` Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-08-22 10:55     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-08-22 10:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 50154

> Could you please add more details to your report?
>
> First, which version of Emacs is that?  If it isn't Emacs 28 from the
> master branch of the Emacs Git repository, could you please try the
> latest master and see if the problem persists?

It's GNU Emacs 27.2-1 from the Artix Linux repository, I could try
installing Emacs 28 from source on another computer and try there

> And second, rmail-epa-decrypt should ask whether to replace the
> original message -- did it ask, and if it did, what was your answer to
> that question?

It asks if I want to replace the original message, I usually say no. I
tried saying yes to get it saved, restart emacs and load the inbox with
the decrypted message, and it still isn't detected.

-- 
Ariel Costas https://costas.dev

Encrypt your email -- https://emailselfdefense.org/
  GnuPG public key -- https://costas.dev/pgp





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#50154: [Rmail]: Cannot save attachments from decryped email
  2021-08-22 10:29   ` Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-08-22 10:55     ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2021-08-22 10:55 UTC (permalink / raw)
  To: Ariel Costas; +Cc: 50154

> From: Ariel Costas <ariel@costas.dev>
> Cc: 50154@debbugs.gnu.org
> Date: Sun, 22 Aug 2021 10:29:19 +0000
> 
> > First, which version of Emacs is that?  If it isn't Emacs 28 from the
> > master branch of the Emacs Git repository, could you please try the
> > latest master and see if the problem persists?
> 
> It's GNU Emacs 27.2-1 from the Artix Linux repository, I could try
> installing Emacs 28 from source on another computer and try there

Yes, please do.  There were some changes in that code in the recent
months, and I wonder whether anything's changed as result.  In any
case, if we need fixes, they will start from what's now in Git, so it
would be good for you to have that available.

> > And second, rmail-epa-decrypt should ask whether to replace the
> > original message -- did it ask, and if it did, what was your answer to
> > that question?
> 
> It asks if I want to replace the original message, I usually say no. I
> tried saying yes to get it saved, restart emacs and load the inbox with
> the decrypted message, and it still isn't detected.

OK, thanks.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#50154: [Rmail]: Cannot save attachments from decryped email
  2021-08-21 20:27 bug#50154: [Rmail]: Cannot save attachments from decryped email Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-08-22  9:49 ` Eli Zaretskii
@ 2021-08-29 11:11 ` Ariel Costas
  2021-08-29 11:18   ` Eli Zaretskii
  1 sibling, 1 reply; 6+ messages in thread
From: Ariel Costas @ 2021-08-29 11:11 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 50154

> Yes, please do.  There were some changes in that code in the recent
> months, and I wonder whether anything's changed as result.  In any
> case, if we need fixes, they will start from what's now in Git, so it
> would be good for you to have that available.

I built emacs from source at commit `b0fe06e` and it worked the same: no
option to save the attachment, only see it inline as base64. Emacs
latest (master) on Ubuntu 20.04 LTS via tty.

Also, Gnus doens't have this problem decrypting attachments, it just
allows to save them after decrypting with GPG.

-- 
Ariel Costas (https://costas.dev)

When replying to emails, please use plaintext: https://useplaintext.email
Make our conversation fully private, use GPG: https://costas.dev/onthenet/#email





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#50154: [Rmail]: Cannot save attachments from decryped email
  2021-08-29 11:11 ` Ariel Costas
@ 2021-08-29 11:18   ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2021-08-29 11:18 UTC (permalink / raw)
  To: Ariel Costas; +Cc: 50154

> From: Ariel Costas <ariel@costas.dev>
> Cc: 50154@debbugs.gnu.org
> Date: Sun, 29 Aug 2021 11:11:36 +0000
> 
> I built emacs from source at commit `b0fe06e` and it worked the same: no
> option to save the attachment, only see it inline as base64. Emacs
> latest (master) on Ubuntu 20.04 LTS via tty.

OK, thanks.  I will try to look into this when I have time.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-29 11:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-21 20:27 bug#50154: [Rmail]: Cannot save attachments from decryped email Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-22  9:49 ` Eli Zaretskii
2021-08-22 10:29   ` Ariel Costas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-22 10:55     ` Eli Zaretskii
2021-08-29 11:11 ` Ariel Costas
2021-08-29 11:18   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).