diff options
author | Brian Cully <bjc@kublai.com> | 2022-06-19 19:55:38 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2022-06-19 19:56:37 -0400 |
commit | f2820a509d91061b65fa32ec4e647cbd29760195 (patch) | |
tree | 7685f169b96a6b279c910e0021ca38538a124f9b /t/delivert | |
parent | e8235e7264e467f6dd64587fbd26faad2f74cbbc (diff) | |
download | spamcat-f2820a509d91061b65fa32ec4e647cbd29760195.tar.gz spamcat-f2820a509d91061b65fa32ec4e647cbd29760195.zip |
Change to filter style from pipe.
Diffstat (limited to 't/delivert')
-rwxr-xr-x | t/delivert | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/t/delivert b/t/delivert deleted file mode 100755 index 794e0a1..0000000 --- a/t/delivert +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env perl - -use Email::Simple; -use IO::File; - -use strict; -use warnings; - -die usage() unless $#ARGV == 0; -my $path = shift; - -local $/; -my $email = Email::Simple->new(<>); - -my $msgid = $email->header('Message-ID'); -$msgid =~ s/<(.*)@.*>/$1/; - -my $fh = IO::File->new(">$path/$msgid") || - die "Couldn't write to $path/$msgid: $!\n"; -print $fh $email->as_string; -$fh->close; - -sub usage { - "Usage: $0 path\n"; -} |