+ # first check the 'to' addresses for 'badness'
+ my $t;
+ my @to;
+ foreach $t (@f[ $i..$#f ]) {
+ $t = uc $t;
+ if (grep $_ eq $t, @DXMsg::badmsg) {
+ push @out, "Sorry, $t is an unacceptable TO address";
+ } else {
+ push @to, $t;
+ }
+ }
+ if (@to) {
+ $loc->{to} = \@to;
+ } else {
+ return (1, @out);
+ }