);
-# FIXME: modularized unification with 'lacemail-accept'
-# BEGIN lacemail-accept
+# FIXME: modularized unification with 'perlmail-accept'
+# BEGIN perlmail-accept
our %muttrc_pending=();
sub muttrc
{
}
return wantarray() ? %r : $r{$r[0]};
}
-# END lacemail-accept
+# END perlmail-accept
sub sendmail_show { return "\"$sendmail_orig\" ".join(",",map("\"$_\"",@ARGV)); }
my $opt_t;
our $opt_f;
#my $opt_F; # declared before &FromAddress already
-my $opt_lacemail_dry_run;
+my $opt_perlmail_dry_run;
my @ARGV_save=@ARGV; # for non-bm mode
die if !Getopt::Long::GetOptions(
"b=s" ,\$opt_b,
"t" ,\$opt_t,
"f=s" ,\$opt_f,
"F=s" ,\$opt_F,
- "lacemail-dry-run+",\$opt_lacemail_dry_run,
+ "perlmail-dry-run+",\$opt_perlmail_dry_run,
);
if (0
# RedHat sendmail-8.12.5-7/sendmail/main.c/\QDo a quick prescan of the argument list.\E
local $SIG{"PIPE"}=sub { die "Got SIGPIPE from ".sendmail_show(); };
local *SENDMAIL;
- if ($opt_lacemail_dry_run) {
+ if ($opt_perlmail_dry_run) {
print sendmail_show()."\n";
*SENDMAIL=\*STDOUT;
}
}
}
- next if $opt_lacemail_dry_run; # don't close our STDOUT as it is aliased to *SENDMAIL
+ next if $opt_perlmail_dry_run; # don't close our STDOUT as it is aliased to *SENDMAIL
close SENDMAIL or warn "close(".sendmail_show()."): $?=".join(",",
(!WIFEXITED($?) ? () : ("EXITSTATUS(".WEXITSTATUS($?).")")),
(!WIFSIGNALED($?) ? () : ("TERMSIG(" .WTERMSIG($?) .")")),