Subject: | Please remove unwanted \n |
Date: | Tue, 23 Nov 2010 07:18:08 +0600 |
To: | bug-MIME-Lite [...] rt.cpan.org |
From: | "Pavel V." <pavel2000 [...] ngs.ru> |
--- Lite.pm.orig 2010-11-23 06:45:34.000000000 +0600
+++ Lite.pm 2010-11-23 06:38:20.000000000 +0600
@@ -2179,7 +2179,7 @@
}
### Epilogue:
- $out->print("\n--$boundary--\n\n");
+ $out->print("\n--$boundary--\n");
} elsif ( $type =~ m{^message/} ) {
my @parts = @{ $self->{Parts} };
I have mail with following structure:
m/mixed
|\
|_--m/alternative
|--\
|__|-text/plain
|__|-m/related
|____|\
|____|_-text/html
|____|_-image/gif
_\
__--image/jpeg; c-d: attachment;
And I have following lines in output:
x01 ... (image/gif data)
x02 2VmCcQhSLXoHEy5suCURO3EOFjNu7Pgx5MiSJ1OubPky5syaN3P+FxAAOw==
x03
x04 --_----------=_1290472452169070--
x05
x06
x07 --_----------=_1290472452169071--
x08
x09
x10 --_----------=_1290472452169072
x11 Content-Disposition: attachment; filename="13109_big_8061.jpg"
x12 ... (image/jpeg attributes)
I sign output before send (Using openssl smime -sign).
When I open this signed mail in Outlook Express,
warning appears that content was modified.
Other software accept this mail as signed valid and not modified,
but OE wantn`t open e-mail even from a just-signed file.
There are no problems with not signed messages.
After strong debugging solution was found:
output need to be shorter, by remove extra \n
x01 ... (image/gif data)
x02 2VmCcQhSLXoHEy5suCURO3EOFjNu7Pgx5MiSJ1OubPky5syaN3P+FxAAOw==
x03
x04 --_----------=_1290472452169070--
x05
x07 --_----------=_1290472452169071--
x08
x10 --_----------=_1290472452169072
x11 Content-Disposition: attachment; filename="13109_big_8061.jpg"
x12 ... (image/jpeg attributes)
This solves the problem fully.
--
Best regards,
Pavel mailto:pavel2000@ngs.ru