I've got a script (below) that I use to forward spam to my isp.  In 9.0 it 
would forward as an attachment with all headers present, however, in Kmail 
1.7.1 it wants to forward them all inline.  Any help on how to get them back 
as attachments with all headers would be appreciated.

#!/usr/bin/perl 
 
# Spamcop reporter

open(SENDMAIL, "|/usr/lib/sendmail -f [EMAIL PROTECTED] -oi -t") || die 
"Cannot open sendmail output";

print SENDMAIL  <<"ENDENDEND";
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: report spam
MIME-Version: 1.0
Content-Type: multipart/mixed;
  boundary="DeathToSpamDeathToSpamDeathToSpam"

This is a multi-part message in MIME format.
--DeathToSpamDeathToSpamDeathToSpam
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


--DeathToSpamDeathToSpamDeathToSpam
Content-Type: message/rfc822
Content-Disposition: attachment

ENDENDEND

while (<STDIN>) {
        print SENDMAIL ;
}


print SENDMAIL  <<"ENDENDEND";

--DeathToSpamDeathToSpamDeathToSpam--
ENDENDEND

close (SENDMAIL);

-- 
Chris
Registered Linux User 283774 http://counter.li.org
14:28:31 up 4 days, 21:47, 1 user, load average: 0.31, 0.17, 0.16
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The soul would have no rainbow had the eyes no tears.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mandrake Linux 10.1Official, kernel 2.6.8.1-12mdk

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to