Thread Check ob MIME korrekt aufgebaut ist.
(20 answers)
Opened by leo11 at 2009-10-07 14:44
Hier nun die Lösung:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 if ( $entity->is_multipart ) { for my $part ( $entity->parts ) { my $head = $part->head; if ( my $filename = $head->recommended_filename ) { print "Attachment name: $filename\n"; } my $body = $part->bodyhandle; if (my $path = $body->path) { print $path, "\n"; } } } |