in reply to Re^3: Filehandle with DKIM::Verifier
in thread Filehandle with DKIM::Verifier
This is the code from my "email parse script". I need to extend this script with a DKIM check.
$ARGV is the filename form perl script.pl filename and $raw_email contains the text file.#! /usr/bin/perl use strict; use warnings; use Email::Simple; use DBI; use File::Copy; use Date::Parse; use DateTime; use Path::Tiny qw(path); [..] open (MESSAGE, "< $ARGV[0]") || die "Couldn't open email $ARGV[0]\n"; undef $/; $raw_email = <>; close MESSAGE; my $mail = Email::Simple->new($raw_email); my $from_header = $mail->header("From"); my $to_header = $mail->header("To"); my $date_header = $mail->header("Date"); my $aol_header = $mail->header("Authentication-Results"); [...]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Filehandle with DKIM::Verifier
by hippo (Archbishop) on Oct 16, 2017 at 10:23 UTC |