GetWeb
view release on metacpan or search on metacpan
MailBot/Sendable.pm view on Meta::CPAN
# only dups the headers, alas
$mail = $src->dup;
$mail->delete('From '); # Just in case :-)
# Ensure the mail has the following headers
# From, Reply-To
my($from,$name,$tag);
$name = (getpwuid($>))[6] || $ENV{NAME} || "";
while($name =~ s/\([^\(]*\)//) { 1; }
$from = sprintf "%s <%s>", $name, mailaddress();
$from =~ s/\s{2,}/ /g;
foreach $tag (qw(From Reply-To))
{
$mail->add($tag,$from) unless($mail->get($tag));
}
MailBot/UI/OneMsg.pm view on Meta::CPAN
MailBot::Util::debug @_;
}
sub vInit
{
my $self = shift;
my $config = MailBot::Config::current;
# fix Mail::Util bug
defined $ENV{LOGNAME} or
$ENV{LOGNAME} = (getpwuid($>))[0];
$$self{BOUNCE_ADDR} = $config -> getBounceAddr;
$$self{NEVER_SEND} = $config -> neverSend;
}
sub vQuotaMultiplier
{
1;
}
( run in 0.472 second using v1.01-cache-2.11-cpan-8d75d55dd25 )