X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXMsg.pm;h=168a978280e56337e8b17db7de48e894b92347c1;hb=refs%2Ftags%2FR_1_39;hp=7cef3adb4f8f5bb7a8415e8a3cf196d8c20e53a4;hpb=866bd5c7cd0fd6c8167d6e6a0c9acfe5feb0ba65;p=spider.git diff --git a/perl/DXMsg.pm b/perl/DXMsg.pm index 7cef3adb..168a9782 100644 --- a/perl/DXMsg.pm +++ b/perl/DXMsg.pm @@ -846,13 +846,14 @@ sub do_send_stuff my $mycall = $main::mycall; $ref = DXMsg->alloc(DXMsg::next_transno('Msgno'), uc $to, - $self->call, + exists $loc->{from} ? $loc->{from} : $self->call, $systime, $loc->{private}, $loc->{subject}, - $mycall, + exists $loc->{origin} ? $loc->{origin} : $mycall, '0', $loc->{rrreq}); + $ref->swop_it($self->call); $ref->store($loc->{lines}); $ref->add_dir(); push @out, $self->msg('m11', $ref->{msgno}, $to); @@ -1109,12 +1110,14 @@ sub import_one $rr = '1'; } elsif ($f eq '@' && @f) { # this is bbs syntax, for origin $origin = uc shift @f; + } elsif ($f eq '<' && @f) { # this is bbs syntax for from call + $from = uc shift @f; } elsif ($f =~ /^\$/) { # this is bbs syntax for a bid next; - } elsif ($f =~ /^swop_it($main::mycall); $mref->store($ref); $mref->add_dir(); push @out, $dxchan->msg('m11', $mref->{msgno}, $to);