/[mws]/trunk/httpd.pl
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/httpd.pl

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

revision 43 by dpavlin, Tue May 11 15:36:51 2004 UTC revision 44 by dpavlin, Tue May 11 16:05:31 2004 UTC
# Line 271  sub body5_filter { Line 271  sub body5_filter {
271          $text =~ s/(\s*--+\s*Forwarded\s+message.+\s*--+.*)$//si;          $text =~ s/(\s*--+\s*Forwarded\s+message.+\s*--+.*)$//si;
272    
273          # remove signature          # remove signature
274          $text =~ s/[\n\r]+--\s*[\n\r]+.*$//s;          $text =~ s/(?:^|[\n\r]+)*--\s*[\n\r]+.*$//s;
275            $text =~ s/(?:^|[\n\r]+)*_____+[\n\r]+.*$//s;
276    
277          # compress cr/lf          # compress cr/lf
278          $text =~ s/[\n\r]+/\n/gs;          $text =~ s/[\n\r]+/\n/gs;
# Line 303  sub body_filter { Line 304  sub body_filter {
304          # remove signature          # remove signature
305          if ($text =~ s/([\n\r]+)(--\s*[\n\r]+.*)$//s) {          if ($text =~ s/([\n\r]+)(--\s*[\n\r]+.*)$//s) {
306                  $sig = "$1#-#signature##$2##signature#-#";                  $sig = "$1#-#signature##$2##signature#-#";
307            } elsif ($text =~s/(^|[\n\r]+)*(_____+[\n\r]+.*)$//s) {
308                    $sig = "$1#-#signature##$2##signature#-#";
309          }          }
310    
311          # find quoted text          # find quoted text

Legend:
Removed from v.43  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.26