/[mws]/trunk/MWS.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/MWS.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 22 by dpavlin, Sat May 8 01:13:33 2004 UTC revision 23 by dpavlin, Sat May 8 02:21:50 2004 UTC
# Line 66  sub normalize_string { Line 66  sub normalize_string {
66          $v = join('',sort split(/\s+/,$v));          $v = join('',sort split(/\s+/,$v));
67          $v =~ s/\W+//g;          $v =~ s/\W+//g;
68    
69          return $v;          return lc($v);
70  }  }
71    
72  # reset tables for search results  # reset tables for search results
# Line 222  sub search { Line 222  sub search {
222    
223          $self->{'curr_result'} = 0;          $self->{'curr_result'} = 0;
224    
225            $self->reset_counters;
226    
227          print STDERR "$results results\n" if ($debug == 2);          print STDERR "$results results\n" if ($debug == 2);
228    
229          return $results || 'error';          return $results || 'error';
# Line 375  sub fetch_result_by_id { Line 377  sub fetch_result_by_id {
377                  print STDERR "$id stored in cache\n" if ($debug == 2);                  print STDERR "$id stored in cache\n" if ($debug == 2);
378          } else {          } else {
379                  print STDERR "fetch_result_by_id($id) in cache\n" if ($debug == 2);                  print STDERR "fetch_result_by_id($id) in cache\n" if ($debug == 2);
380                    foreach my $p (qw(from to cc bcc)) {
381                            foreach my $v (@{$row->{$p}}) {
382                                    $self->add_counter($p,$v);
383                            }
384                    }
385    
386                    $self->add_counter_calendar($row->{date_utime});
387          }          }
388    
389          return $row;          return $row;

Legend:
Removed from v.22  
changed lines
  Added in v.23

  ViewVC Help
Powered by ViewVC 1.1.26