Subject: | Mail::Message::Attachment::Stripper |
Date: | Fri, 18 Apr 2008 15:53:29 +0200 |
To: | bug-Mail-Message-Attachment-Stripper [...] rt.cpan.org |
From: | "peto [...] ammo.sk" <peto [...] ammo.sk> |
Hi,
I am using module Mail::Message::Attachment::Stripper and i have a
query. Why don't you add file to attachments when it's "inline"? It can
be text file.
sub _handle_part {
..
foreach my $part ($mm->isMultipart ? $mm->parts : $mm) {
if ($self->_is_inline_text($part)) {
$self->_gather_body($part);
} elsif ($self->_should_recurse($part)) {
$self->_handle_part($part);
...
}
woundn't be better? :
sub _handle_part {
..
foreach my $part ($mm->isMultipart ? $mm->parts : $mm) {
if ($self->_is_inline_text($part)) {
$self->_gather_body($part);
}
if ($self->_should_recurse($part)) {
$self->_handle_part($part);
...
}
and return only attachments with "filename" != "" ?
have a nice day,
peter