Mail-Audit
view release on metacpan or search on metacpan
lib/Mail/Audit.pm view on Meta::CPAN
return $default_mbox if $default_mbox;
my $default_maildir = File::Spec->catdir(
File::HomeDir->my_home,
'Maildir'
);
$default_mbox =
(-d File::Spec->catdir($default_maildir, 'new') ? $default_maildir : ())
|| ((grep { -d $_ } qw(/var/spool/mail/ /var/mail/))[0] . getpwuid($>));
return $self->{_default_mbox} = $default_mbox;
}
# XXX: This is a test case until I have a better interface. This will make
# testing simpler! -- rjbs, 2006-06-04
sub _exit {
my ($self, $exit) = @_;
return $self->{_audit_opts}->{_exit}->(@_)
( run in 0.449 second using v1.01-cache-2.11-cpan-8d75d55dd25 )