Discussion:
[Bug 286481] New: Unable to open attachments in encrypted messages
Jannis Menn
2011-11-13 11:52:14 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Summary: Unable to open attachments in encrypted messages
Product: kmail2
Version: 4.7
Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdepim-***@kde.org
ReportedBy: ***@gmail.com


Version: 4.7 (using KDE 4.7.2)
OS: Linux

When I receive a pgp-encrypted message with an attachment, I am unable to open
the attachment. The attached file is displayed, but clicking on it does not
have any effect. Right-clicking on the mail and selecting "save attachments"
results in kmail2 to save the whole mail as an .asc-file.

Reproducible: Always

Steps to Reproduce:
Open any pgp-encrypted e-mail with an attachment in it. Click on the
attachment.

Actual Results:
Nothing happens.

Expected Results:
Open a dialog to save the file.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Laurent Montel
2011-11-13 17:07:29 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481


Laurent Montel <***@kde.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@kde.org




--- Comment #1 from Laurent Montel <montel kde org> 2011-11-13 17:07:28 ---
Will look at it in master.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Laurent Montel
2011-11-13 17:15:25 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481





--- Comment #2 from Laurent Montel <montel kde org> 2011-11-13 17:15:25 ---
Question: How we create an email pgp encrypted email .?
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Laurent Montel
2011-11-15 10:35:24 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481





--- Comment #3 from Laurent Montel <montel kde org> 2011-11-15 10:35:23 ---
no infos ?
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Jannis Menn
2011-11-15 18:35:36 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481





--- Comment #4 from Jannis Menn <jannis menn gmail com> 2011-11-15 18:35:36 ---
Hello... what info do you need exactly? How to create an encrypted message is
easy: just create a key-pair (f.e. with kleopatra), link the keys to your
identity in kmail-settings, create a mail, select "encrypt" and send it to
yourself.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Laurent Montel
2011-11-16 20:56:52 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481


Laurent Montel <***@kde.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED




--- Comment #5 from Laurent Montel <montel kde org> 2011-11-16 20:56:52 ---
I can't reproduce in master.
But I fixed a lot of bug. (backported to 4.7.3/4.7.4) So perhaps you can test
on new version.
Regards.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Jannis Menn
2011-11-16 23:18:29 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481





--- Comment #6 from Jannis Menn <jannis menn gmail com> 2011-11-16 23:18:28 ---
Ok, i'll try that, thanks.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Michael S.
2011-12-08 13:26:33 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481


Michael S. <***@arcor.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@arcor.de




--- Comment #7 from Michael S. <michael saalfeld arcor de> 2011-12-08 13:26:33 ---
The bug still exists in kde 4.7.4.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Tim
2012-09-16 18:08:41 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Tim <***@thtp.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@thtp.de

--- Comment #8 from Tim <***@thtp.de> ---
The bug still exists in kde 4.8.4.
--
You are receiving this mail because:
You are the assignee for the bug.
Myriam Schweingruber
2012-09-17 09:41:38 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Myriam Schweingruber <***@kde.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Version|4.7 |4.8.4
Resolution|FIXED |---
Ever confirmed|0 |1

--- Comment #9 from Myriam Schweingruber <***@kde.org> ---
Reopening based on comments #7 and #8
--
You are receiving this mail because:
You are the assignee for the bug.
Daniel Hornung
2012-09-26 18:46:42 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Daniel Hornung <***@gmx.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmx.de

--- Comment #10 from Daniel Hornung <***@gmx.de> ---
I can confirm this or a similar bug, at least for some mails.

The attachment is only shown as a link, e.g. "attachment:0:2?place=body", and
can ony be saved as a link to this location.

I cannot give a recipe how to reproduce this kind of problematic email, it only
happens sometimes to me.

A workaround: Save the encrypted email to disk, decrypt manually, save result
as foo.mbox, open that in Kmail and save the attachment from the unencrypted
email.
--
You are receiving this mail because:
You are the assignee for the bug.
Martin Honermeyer
2013-01-02 09:00:25 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Martin Honermeyer <***@strahlungsfrei.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@strahlungsfrei.de
--
You are receiving this mail because:
You are the assignee for the bug.
Ivan Shapovalov
2013-06-30 14:26:45 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Ivan Shapovalov <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmail.com

--- Comment #11 from Ivan Shapovalov <***@gmail.com> ---
The bug still exists in KDE SC 4.10.4. Problematic E-mails sent from Windows
using Thunderbird with Enigmail extension.
--
You are receiving this mail because:
You are the assignee for the bug.
Ivan Shapovalov
2013-06-30 14:27:31 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Ivan Shapovalov <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|4.8.4 |4.10.4
--
You are receiving this mail because:
You are the assignee for the bug.
Martin Albrecht
2013-07-15 13:21:15 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Martin Albrecht <***@googlemail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@googlemail.
| |com
--
You are receiving this mail because:
You are the assignee for the bug.
Sandro Knauß
2013-08-02 21:44:54 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Sandro Knauß <***@sandroknauss.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@sandroknauss.de

--- Comment #12 from Sandro Knauß <***@sandroknauss.de> ---
Can you tell me more about the structure of the mail, where the link doesn't
work:
* Is this a openpgp/MIME or inlnie message
* Are the hole message is encrypted at once or the attachments sperately?
--
You are receiving this mail because:
You are the assignee for the bug.
Daniel Hornung
2013-08-02 22:11:32 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #13 from Daniel Hornung <***@gmx.de> ---
(In reply to comment #12)
Post by Sandro Knauß
Can you tell me more about the structure of the mail, where the link doesn't
* Is this a openpgp/MIME or inlnie message
* Are the hole message is encrypted at once or the attachments sperately?
I can send a sample to you personally for the full headers, but this looks like
the relevant information:

....
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20110929
Thunderbird/7.0.1
MIME-Version: 1.0
....
X-Enigmail-Version: 1.3.3
Content-Type: multipart/encrypted;
protocol="application/pgp-encrypted";
boundary="------------enigXXXXXX"
....

This is an OpenPGP/MIME encrypted message (RFC 2440 and 3156)
--------------enigXXXXXX
Content-Type: application/pgp-encrypted
Content-Description: PGP/MIME version identification

Version: 1

--------------enigXXXXXX
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.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
--
You are receiving this mail because:
You are the assignee for the bug.
Sandro Knauß
2013-08-05 00:09:06 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Sandro Knauß <***@sandroknauss.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |CONFIRMED
Version|4.10.4 |4.11 beta2

--- Comment #14 from Sandro Knauß <***@sandroknauss.de> ---
Have now one message, to play with and can confirm this bug with KDE 4.11
branch.

As I can tell till now, the structure, that objectparser creates looks correct
(also the links to the attachments). I think the error is located in the
funtion, that resolves the links.

It is an PGP Mime Message with folloing structure inside:

Content-Type: multipart/mixed;
boundary="------------030502030301040002020205"

This is a multi-part message in MIME format.
--------------030502030301040002020205
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

blabla...

--------------030502030301040002020205
Content-Type: text/plain; charset=windows-1252;
name="testfile"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="testfile"

Some testfile

--------------030502030301040002020205--
--
You are receiving this mail because:
You are the assignee for the bug.
Sandro Knauß
2013-08-05 07:49:53 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Sandro Knauß <***@sandroknauss.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@CustomCDROM.de

--- Comment #15 from Sandro Knauß <***@sandroknauss.de> ---
*** Bug 294272 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are the assignee for the bug.
Andreas K. Huettel
2013-08-29 15:42:48 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Andreas K. Huettel <***@gentoo.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gentoo.org
Version|4.11 beta2 |4.11
--
You are receiving this mail because:
You are the assignee for the bug.
Roland Wolters
2013-10-02 11:20:26 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Roland Wolters <***@bayz.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@bayz.de
--
You are receiving this mail because:
You are the assignee for the bug.
Sandro Knauß
2013-10-19 21:23:30 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Sandro Knauß <***@sandroknauss.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmx.de

--- Comment #16 from Sandro Knauß <***@sandroknauss.de> ---
*** Bug 324365 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are the assignee for the bug.
Sandro Knauß
2013-10-21 16:50:12 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Sandro Knauß <***@sandroknauss.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|CONFIRMED |RESOLVED
Version Fixed In| |4.11.3
Resolution|--- |FIXED
Latest Commit| |http://commits.kde.org/kdep
| |im/bbbdbc2180036040cac2b664
| |92e6f0fd01c2b28c

--- Comment #17 from Sandro Knauß <***@sandroknauss.de> ---
Git commit bbbdbc2180036040cac2b66492e6f0fd01c2b28c by Sandro Knauß.
Committed on 21/10/2013 at 00:47.
Pushed by knauss into branch 'KDE/4.11'.

Fix 286481 - Unable to open attachments in encrypted messages

The node has to get a correct extra content and the filename must be
correctly point to the attachments inside the encrypted message.
Related: bug 300937
FIXED-IN: 4.11.3
REVIEW: 113361

M +2 -3 messageviewer/viewer/nodehelper.cpp
M +1 -1 messageviewer/viewer/objecttreeparser.cpp

http://commits.kde.org/kdepim/bbbdbc2180036040cac2b66492e6f0fd01c2b28c
--
You are receiving this mail because:
You are the assignee for the bug.
Till Schäfer
2013-10-25 09:01:43 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Till Schäfer <***@uni-dortmund.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@uni-dortmund
| |.de

--- Comment #18 from Till Schäfer <***@uni-dortmund.de> ---
this bug is NOT solved for me. i have a pgp/mime mail which is signed and
encrypted and still has the problem that the file is not savable. if i right
click on the file, the normal context menu is shown, that i can see if i click
anywhere in a mail.


Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";
micalg="pgp-sha1"; boundary="===============8454854918288420383=="
MIME-Version: 1.0
From: XXXXXXXX
To: ***@tu-dortmund.de
Date: Thu, 24 Oct 2013 17:03:34 -0400
Subject: Your signed PGP key 0xD84DED79

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============8454854918288420383==
Content-Type: application/pgp-encrypted
Content-Description: PGP/MIME version identification

Version: 1

--===============8454854918288420383==
Content-Type: application/octet-stream; name="encrypted.asc"
Content-Description: OpenPGP encrypted message
Content-Disposition: inline; filename="encrypted.asc"

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.15 (GNU/Linux)

...encrypted stuff...

-----END PGP MESSAGE-----

--===============8454854918288420383==--
--
You are receiving this mail because:
You are the assignee for the bug.
Till Schäfer
2013-10-25 09:02:38 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #19 from Till Schäfer <***@uni-dortmund.de> ---
Created attachment 83102
--> https://bugs.kde.org/attachment.cgi?id=83102&action=edit
mail with not clickable link
--
You are receiving this mail because:
You are the assignee for the bug.
Till Schäfer
2013-10-25 09:04:06 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #20 from Till Schäfer <***@uni-dortmund.de> ---
Forget to mention, that iam using the latest gentoo ebuild
(kde-base/kmail-4.11.2-r1). The changelog states, that this patch was
backported.
--
You are receiving this mail because:
You are the assignee for the bug.
Andreas K. Huettel
2013-10-25 09:43:49 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #21 from Andreas K. Huettel <***@gentoo.org> ---
Hey Till, yes I did indeed add this commit. Please make sure that you
re-started everything relevant... it would be best if you log out and log back
in again!
--
You are receiving this mail because:
You are the assignee for the bug.
Till Schäfer
2013-10-25 10:07:22 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #22 from Till Schäfer <***@uni-dortmund.de> ---
Hi Andreas, i already did a reboot. Still not working.
--
You are receiving this mail because:
You are the assignee for the bug.
Matt Whitlock
2013-10-25 14:03:14 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

Matt Whitlock <***@mattwhitlock.name> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@mattwhitlock.name

--- Comment #23 from Matt Whitlock <***@mattwhitlock.name> ---
Just a note: to get some changes to the KMail sources to take effect in Gentoo,
you also need to rebuild kdepimlibs.
--
You are receiving this mail because:
You are the assignee for the bug.
Till Schäfer
2013-10-25 14:39:13 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #24 from Till Schäfer <***@uni-dortmund.de> ---
rebuilding kdepimlibs did not change the behavior. should i file a gentoo bug
for this or is this? I don't know if it is gentoo specific.
--
You are receiving this mail because:
You are the assignee for the bug.
Till Schäfer
2013-10-27 21:43:42 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #25 from Till Schäfer <***@uni-dortmund.de> ---
i have noticed that the bug only occurs, when the mail is signed AND encrypted.
All mails that are only encrypted are working. When i have a signed and
encrypted mail, the attachement name shown on the top of the mail is called
encrypted.asc and not <attached file name>. for encrypted mails (not signed)
this line states the attached file name. so maybe this obversations are
somewhat connected?
--
You are receiving this mail because:
You are the assignee for the bug.
Sandro Knauß
2013-10-29 00:41:53 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #26 from Sandro Knauß <***@sandroknauss.de> ---
(In reply to comment #25)
Post by Till Schäfer
i have noticed that the bug only occurs, when the mail is signed AND
encrypted. All mails that are only encrypted are working. When i have a
signed and encrypted mail, the attachement name shown on the top of the mail
is called encrypted.asc and not <attached file name>. for encrypted mails
(not signed) this line states the attached file name. so maybe this
obversations are somewhat connected?
Actually this is exactly the bug that was solved. It sounds for me, that the
patch was NOT included in the version you have used. Plaese look into your
code, that you compile, to make sure that the pach is added (only three lines
patch).
--
You are receiving this mail because:
You are the assignee for the bug.
Andreas K. Huettel
2013-10-29 08:50:51 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #27 from Andreas K. Huettel <***@gentoo.org> ---
(In reply to comment #26)
Post by Sandro Knauß
(In reply to comment #25)
Post by Till Schäfer
i have noticed that the bug only occurs, when the mail is signed AND
encrypted. All mails that are only encrypted are working. When i have a
signed and encrypted mail, the attachement name shown on the top of the mail
is called encrypted.asc and not <attached file name>. for encrypted mails
(not signed) this line states the attached file name. so maybe this
obversations are somewhat connected?
Actually this is exactly the bug that was solved. It sounds for me, that the
patch was NOT included in the version you have used. Plaese look into your
code, that you compile, to make sure that the pach is added (only three
lines patch).
My fault. Till please also upgrade to kdepim-common-libs-4.11.2-r1. I applied
the patch in the wrong part of our split kdepim; it got happily applied but
never compiled.

(side note, if you need help in splitting kdepim into different repositories,
have a look at our ebuilds :)
--
You are receiving this mail because:
You are the assignee for the bug.
Till Schäfer
2013-10-29 10:26:07 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=286481

--- Comment #28 from Till Schäfer <***@uni-dortmund.de> ---
Now it is working for me. Therefore this was a gentoo bug.
--
You are receiving this mail because:
You are the assignee for the bug.
Loading...