Patch to make resend use munge_domain. In use here for a few months,
but we have only a few moderated lists.
Note that munge_domain will allow many nonsubscriber addresses to
post, especially non-US addresses, where its matching of last two
elements is really generous (like "ac.uk" !). It still may be useful.
Joseph Brennan Academic Information Systems
Columbia University in the City of New York
brennan@columbia.edu
I used opt_g for this because it wasn't used yet. But look out.
resend
# updated to
# Revision: 1.19
# Date: 1993/11/11 02:23:37
#
***************
*** 102,107 ****
--- 102,109 ----
if &cf_ck_bool($opt_l,"administrivia");
$opt_d = &cf_ck_bool($opt_l,"debug")
if &cf_ck_bool($opt_l,"debug");
+ $opt_g = &cf_ck_bool($opt_l,"mungedomain")
+ if &cf_ck_bool($opt_l,"mungedomain");
if (defined($opt_f)) {
$sendmail_sender = $opt_f;
***************
*** 327,333 ****
$file = "$listdir/$file";
}
if ( open (LISTFD, "<${file}") != 0 ) {
! @output = grep (&addr_match($from, $_), <LISTFD>);
close (LISTFD);
if ( $#output != -1 ) {
--- 329,339 ----
$file = "$listdir/$file";
}
if ( open (LISTFD, "<${file}") != 0 ) {
! if (defined($opt_g)) {
! @output = grep (&addr_match($from, $_, 2), <LISTFD>);
! } else {
! @output = grep (&addr_match($from, $_), <LISTFD>);
! }
close (LISTFD);
if ( $#output != -1 ) {
|
|