__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/perl -w
require Mail::Internet;
require Mail::Alias;
use Getopt::Long;
sub expand_aliases
{
my $mail = shift;
my $aliasfile = $ENV{HOME} . "/.mailrc";
my($tag,$id);
if( -f $aliasfile )
{
my $alias = Mail::Alias::Binmail->new($aliasfile);
# Expand aliases
foreach $tag (qw(To Cc Bcc))
{
@ids = ();
foreach $id (Mail::Address->parse($mail->get($tag)))
{
my $addr = $id->address;
my @expn = $alias->expand($addr);
if(scalar(@expn) == 1)
{
$id->address($expn[0]);
push(@ids,$id->format);
}
else
{
push(@ids,@expn);
}
}
$mail->combine($tag,',');
$mail->replace($tag, join(", ", @ids));
}
}
}
###
### Main program
###
GetOptions(qw(post nosig v));
$opt_post = 1 if $0 =~ m#(\A|/)post\Z#;
$verbose = defined $opt_v && $opt_v ? 1 : 0;
$posting = defined $opt_post && $opt_post ? 1 : 0;
$sign = defined $opt_nosig && $opt_nosig ? 0 : 1;
$mail = Mail::Internet->new([ <> ]);
expand_aliases($mail);
$mail->add_signature if($sign);
if($posting)
{
my @groups = $mail->nntppost();
if($verbose && @groups)
{
$groups = "Newsgroups: " . join(", ", @groups);
$groups =~ s/(.{10,78}),/$1\n/g if(length($groups) > 78);
print $groups,"\n";
}
}
else
{
$mail->delete('Newsgroups');
}
@recp = $mail->smtpsend();
if($verbose && @recp)
{
$recp = "Recipients: " . join(", ", @recp);
$recp =~ s/(.{10,78}),/$1\n/g if(length($recp) > 78);
print $recp,"\n";
}
exit;
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| forwd_demo | File | 797 B | 0755 |
|
| forwd_demo.PL | File | 1.14 KB | 0644 |
|
| mail-mailer.pl | File | 3.16 KB | 0644 |
|
| rplyto_demo | File | 415 B | 0755 |
|
| rplyto_demo.PL | File | 791 B | 0644 |
|
| send_demo | File | 1.51 KB | 0755 |
|
| send_demo.PL | File | 1.88 KB | 0644 |
|