Bass-Fighter has asked for the wisdom of the Perl Monks concerning the following question:
If you know what I do wrong, pleace tell me#!usr/bin/perl + use v5.8.0; use strict; use warnings; use Mail::Internet; use Mail::Field; use MIME::Head; my $mail = Mail::Field ->new([ <STDIN> ]); my $header = $mail->head()->header_hashref(); my $field = 'Content-Type'; my ($Type, $subtype) = split('/', $field->mime_type); if ($Type eq 'multipart') { print $field->{'Content-Disposition'}->filename; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: filename of an attachment
by rminner (Chaplain) on Dec 08, 2008 at 13:54 UTC | |
by Bass-Fighter (Beadle) on Dec 08, 2008 at 14:00 UTC | |
by Bass-Fighter (Beadle) on Dec 08, 2008 at 14:31 UTC | |
|
Re: filename of an attachment
by webfiend (Vicar) on Dec 08, 2008 at 17:56 UTC | |
by Bass-Fighter (Beadle) on Dec 18, 2008 at 08:34 UTC | |
|
Re: filename of an attachment
by Anonymous Monk on Dec 08, 2008 at 13:24 UTC | |
by Anonymous Monk on Dec 08, 2008 at 13:30 UTC | |
by Anonymous Monk on Dec 08, 2008 at 13:32 UTC | |
by Bass-Fighter (Beadle) on Dec 08, 2008 at 13:43 UTC | |
by Corion (Patriarch) on Dec 08, 2008 at 13:45 UTC | |
|