Thread Check ob MIME korrekt aufgebaut ist. (20 answers)
Opened by leo11 at 2009-10-07 14:44

leo11
 2009-10-10 19:12
#126869 #126869
User since
2008-08-14
250 Artikel
BenutzerIn
[default_avatar]
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";
                }
            }
        }

View full thread Check ob MIME korrekt aufgebaut ist.