#
# Copyright (c) Dirk Koopman G1TLH
#
-# $Id$
+#
#
my ($self, $line) = @_;
my @out;
# now deal with real message inputs
# parse out send line for various possibilities
- $loc = $self->{loc} = {};
+ $loc = {};
my $i = 0;
my @extra = ();
# $DB::single = 1;
$oref = DXMsg::get($msgno) if $msgno;
- unless ($oref) {
- delete $self->{loc};
- return (1, $self->msg('m4', $i));
- }
+ return (1, $self->msg('m4', $i)) unless $oref;
# now save all the 'to' callsigns for later
my $to;
$to = $oref->to;
@extra = ();
}
+
+ return (1, $self->msg('e28')) unless $self->isregistered || $to eq $main::myalias;
+
$loc->{to} = [ $to, @extra ]; # to is an array
$loc->{subject} = $oref->subject;
$loc->{subject} = "Re: " . $loc->{subject} if !($loc->{subject} =~ /^Re:\s/io);
# keep calling me for every line until I relinquish control
$self->func("DXMsg::do_send_stuff");
$self->state('sendbody');
+ $self->loc($loc);
push @out, $self->msg('m6', join(',', $to, @extra));
push @out, $self->msg('m7', $loc->{subject});
push @out, $self->msg('m8');