Diff for /loncom/lonnet/perl/lonnet.pm between versions 1.683.2.1 and 1.683.2.2

version 1.683.2.1, 2005/12/06 04:00:56 version 1.683.2.2, 2005/12/09 23:20:26
Line 40  qw(%perlvar %hostname %badServerCache %i Line 40  qw(%perlvar %hostname %badServerCache %i
    %courselogs %accesshash %userrolehash %domainrolehash $processmarker $dumpcount      %courselogs %accesshash %userrolehash %domainrolehash $processmarker $dumpcount 
    %coursedombuf %coursenumbuf %coursehombuf %coursedescrbuf %courseinstcodebuf %courseownerbuf     %coursedombuf %coursenumbuf %coursehombuf %coursedescrbuf %courseinstcodebuf %courseownerbuf
    %domaindescription %domain_auth_def %domain_auth_arg_def      %domaindescription %domain_auth_def %domain_auth_arg_def 
    %domain_lang_def %domain_city %domain_longi %domain_lati $tmpdir $_64bit     %domain_lang_def %domain_city %domain_longi %domain_lati %domain_primary
    %env);     $tmpdir $_64bit %env);
   
 use IO::Socket;  use IO::Socket;
 use GDBM_File;  use GDBM_File;
Line 1853  sub courseiddump { Line 1853  sub courseiddump {
 # ---------------------------------------------------------- DC e-mail  # ---------------------------------------------------------- DC e-mail
   
 sub dcmailput {  sub dcmailput {
     my ($domain,$msgid,$contents,$server)=@_;      my ($domain,$msgid,$message,$server)=@_;
     my $status = &Apache::lonnet::critical(      my $status = &Apache::lonnet::critical(
        'dcmailput:'.$domain.':'.&Apache::lonnet::escape($msgid).'='.         'dcmailput:'.$domain.':'.&Apache::lonnet::escape($msgid).'='.
        &Apache::lonnet::escape($$contents{$server}),$server);         &Apache::lonnet::escape($message),$server);
     return $status;      return $status;
 }  }
   
 sub dcmaildump {  sub dcmaildump {
     my ($dom,$startdate,$enddate,$senders) = @_;      my ($dom,$startdate,$enddate,$senders) = @_;
     my %returnhash=();       my %returnhash=();
     foreach my $tryserver (keys(%libserv)) {      if (exists($domain_primary{$dom})) {
         if ($hostdom{$tryserver} eq $dom) {          my $cmd='dcmaildump:'.$dom.':'.&escape($startdate).':'.
             %{$returnhash{$tryserver}}=();                                                           &escape($enddate).':';
     my $cmd='dcmaildump:'.$dom.':'.   my @esc_senders=map { &escape($_)} @$senders;
  &escape($startdate).':'.&escape($enddate).':';   $cmd.=&escape(join('&',@esc_senders));
     my @esc_senders=map { &escape($_)} @$senders;   foreach (split(/\&/,&reply($cmd,$domain_primary{$dom}))) {
     $cmd.=&escape(join('&',@esc_senders));              my ($key,$value) = split(/\=/,$_);
     foreach (split(/\&/,&reply($cmd,$tryserver))) {              if (($key) && ($value)) {
                 my ($key,$value) = split(/\=/,$_);                  $returnhash{&unescape($key)} = &unescape($value);
                 if (($key) && ($value)) {  
                     $returnhash{$tryserver}{&unescape($key)} = &unescape($value);  
                 }  
             }              }
         }          }
     }      }
Line 6185  BEGIN { Line 6182  BEGIN {
 #           next if /^\#/;  #           next if /^\#/;
            chomp;             chomp;
            my ($domain, $domain_description, $def_auth, $def_auth_arg,             my ($domain, $domain_description, $def_auth, $def_auth_arg,
        $def_lang, $city, $longi, $lati) = split(/:/,$_);         $def_lang, $city, $longi, $lati, $primary) = split(/:/,$_);
    $domain_auth_def{$domain}=$def_auth;     $domain_auth_def{$domain}=$def_auth;
            $domain_auth_arg_def{$domain}=$def_auth_arg;             $domain_auth_arg_def{$domain}=$def_auth_arg;
    $domaindescription{$domain}=$domain_description;     $domaindescription{$domain}=$domain_description;
Line 6193  BEGIN { Line 6190  BEGIN {
    $domain_city{$domain}=$city;     $domain_city{$domain}=$city;
    $domain_longi{$domain}=$longi;     $domain_longi{$domain}=$longi;
    $domain_lati{$domain}=$lati;     $domain_lati{$domain}=$lati;
              $domain_primary{$domain}=$primary;
   
  #         &logthis("Domain.tab: $domain, $domain_auth_def{$domain}, $domain_auth_arg_def{$domain},$domaindescription{$domain}");   #         &logthis("Domain.tab: $domain, $domain_auth_def{$domain}, $domain_auth_arg_def{$domain},$domaindescription{$domain}");
 #          &logthis("Domain.tab: $domain ".$domaindescription{$domain} );  #          &logthis("Domain.tab: $domain ".$domaindescription{$domain} );

Removed from v.1.683.2.1  
changed lines
  Added in v.1.683.2.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>