æ¸ãã¨ããªãã¨å¿ããããªã®ã§ã¡ã¢ã¡ã¢
.forward ãã¡ã¤ã«ã«ã³ãã³ããæ¸ãã¦ãã
"| exec /Users/amachang/hoge.pl"
ã§ããã®ã¡ã¼ã«ã®ãã¼ã¿ããªãã¸ã§ã¯ãã«ãã
use MIME::Parser; my $parser = MIME::Parser->new; $parser->output_to_core; my $entity = $parser->parse(\*STDIN);
ãªãã¸ã§ã¯ãããããããã®ãã¼ã¿ãåãåºã
use Encode; # Subject my $subject = decode('MIME-Header', $entity->head->get('Subject')); # From my $from = do { $entity->head->get('From') =~ /([^<]+\@(?:[-a-z0-9]+\.)*[a-z]+)/; $1 }; # Body my $body = decode('ISO-2022-JP', $entity->bodyhandle->as_string);
ç°¡åã ãã«å¿ããã