Email-LocalDelivery

 view release on metacpan or  search on metacpan

lib/Email/LocalDelivery/Mbox.pm  view on Meta::CPAN

  my @files = @_;

  my @rv;

  for my $file (@files) {
    my $fh = $class->_open_fh($file) or next;
    print $fh "\n" if tell($fh) > 0;
    print $fh $class->_from_line($email);
    print $fh $class->_escape_from_body($email);

    # This will make streaming a bit more annoying. -- rjbs, 2007-05-25
    print $fh "\n" unless $email->as_string =~ /\n$/;

    $class->_close_fh($fh) || next;
    push @rv, $file;
  }
  return @rv;
}

sub _open_fh {
  my ($class, $file) = @_;



( run in 0.255 second using v1.01-cache-2.11-cpan-4d50c553e7e )