Bug 107067

Summary: Autodetect message/news attachments and set MIME type accordingly
Product: [Applications] kmail Reporter: Tristan Miller <psychonaut>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tristan Miller 2005-06-08 21:10:40 UTC
Version:            (using KDE KDE 3.4.1)
Installed from:    SuSE RPMs

Steps to reproduce:

1. Message->New message
2. Attach->Attach file
3. Select a file containing a Usenet message; click Attach

Observed behaviour:

4. KMail attaches the message as type "text/plain"

Expected behaviour:

5. KMail should attach the message as type "message/news"
Comment 1 Tristan Miller 2005-06-08 21:16:00 UTC
I've done some more testing.  I've discovered that only when the attachment has the filename extension ".txt" does KMail attach the file as type text/plain.  Perhaps it's not so bad that the filename extension overrides the actual MIME type.  However, when the message/news attachment in question has no extension, then KMail attaches it as type "message/rfc822", which is incorrect.

To fix this bug, KMail should check for the presence of a "Newsgroups:" header.
Comment 2 Carsten Burghardt 2005-06-08 22:31:50 UTC
That's a wish.
Comment 3 Tristan Miller 2009-04-25 23:18:01 UTC
Appears to be fixed in KDE 4.2.2.