Bug 118022 - Content-Description missing for encrypted attachements [patch included]
Summary: Content-Description missing for encrypted attachements [patch included]
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-09 19:25 UTC by Stefan Scheler
Modified: 2015-04-12 10:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch to fix content-description (2.97 KB, patch)
2005-12-09 19:26 UTC, Stefan Scheler
Details
patch to fix content-description (2.97 KB, patch)
2005-12-13 13:39 UTC, Stefan Scheler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Scheler 2005-12-09 19:25:53 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs
OS:                Linux

KMail currently doesn't set the content-description header for signed and encrypted mails. This is especially annoying because some anti virus programs (e.g. avast) detect mails with such unnamed attachments as "suspicious". I attached a trivial patch to fix this. In fact, support for that was already prepared in the code but commented out. Hmm.
Comment 1 Stefan Scheler 2005-12-09 19:26:48 UTC
Created attachment 13838 [details]
patch to fix content-description
Comment 2 Stefan Scheler 2005-12-13 13:39:18 UTC
Created attachment 13894 [details]
patch to fix content-description

I forget something: "Content-Disposition: attachment\n" has to be removed from
the pgp/mime version identification. It's simply not required according to RFC
2015 and makes the mail suspicious for certain anti virus software.
Comment 3 Till Adam 2006-01-29 10:29:59 UTC
On Tuesday 13 December 2005 13:39, Stefan Scheler wrote:

> patch to fix content-description


Thanks for the patch, I'll have a look later today.

Cheers,

Till
Comment 4 Till Adam 2006-01-29 18:43:56 UTC
I talked to our MIME guru and got the following intel: 

"The internal structure of a multipart/signed or /encrypted is nothing a user should see (yes, KMail shows it). As such, C-Desc headers on these parts (which are only for humans), are useless. C-Desc header should only be added at user discretion, never automatically. I guess such wording appears in the corresponding rfc, too."

That translates to: you should fix the broken avast, adding c-desc headers is not the right answer to the problem. Do you happen to know how other MUAs (Evo, Thunderbird) deal with this? If they indeed add c-desc headers we might have to reconsider.
Comment 5 Stefan Scheler 2006-01-29 19:14:48 UTC
> C-Desc header should only be added at user discretion, never automatically. 

Why that? I don't see how a description like "digital signature" for a pgp signature would hurt anyone? The corresponding RFC doesn't say anything about whether this should be added automatically or not. And in fact most headers are added automatically, so I don't see the point here.

> Do you happen to know how other MUAs (Evo, Thunderbird) deal with this?

Well Thunderbird adds these headers, mutt doesn't.
Comment 6 Thiago Macieira 2006-02-02 19:44:49 UTC
I think the RFC was probably referring to attachments made by the user.

There's no reason to ask the user for description for automatically-generated MIME parts.
Comment 7 Laurent Montel 2015-04-12 10:21:48 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.