Bug 158583

Summary: MIME attachement not recognized
Product: [Applications] kmail Reporter: Toralf Förster <toralf.foerster>
Component: mimeAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 1.9.8   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: example mail

Description Toralf Förster 2008-02-29 17:05:24 UTC
Version:           2.5.8 (using 3.5.8, Gentoo)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.23-gentoo-r9

Instead it is displayed as inlined text 

While implementing a quick & dirty solution at an AIX box to send out mails with a Reply-To: line I wrote the following script 8see below). It results are displayed fine within Lotus Notes but at my local Gentoo Linux + KMail instead I didn't get valid mail+attachment - instead I got a plain text mail only :-(

Here's the script ./mymail.sh :
--------------------------------------------------
fn_sendmail()
{
	echo "From: <noreply@nowhere> Do not reply to this address
To: tfoerste@localhost
Reply-To: user@other.domain
Subject: test
X-MSMail-Priority: High
Importance: 1
Mime-Version: 1.0
Content-Type: text/plain

 This is a test email ...

 Rgds
"
	
	[[ -f $ATTACH ]] && uuencode $ATTACH $ATTACH
}

ATTACH=$1

fn_sendmail | /usr/sbin/sendmail -t -O DeliveryMode=i -R hdrs -n

--------------------------------------------------


I run it with :

tfoerste@n22 ~/tmp $ ls > ls; ./mymail.sh ls
Comment 1 Thomas McGuire 2008-02-29 19:25:37 UTC
Please attach such a mail.
Comment 2 Toralf Förster 2008-02-29 20:15:27 UTC
Created attachment 23746 [details]
example mail
Comment 3 Thomas McGuire 2008-02-29 20:31:28 UTC
That's not a mime attachment, it's a uuencoded attachment, which KMail does not understand. 
I suggest changing your script to produce valid mime messages.

*** This bug has been marked as a duplicate of 55898 ***