ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/example-decoder
(Generate patch)

Comparing Convert-UUlib/example-decoder (file contents):
Revision 1.2 by root, Tue Jun 12 03:20:44 2001 UTC vs.
Revision 1.3 by root, Sun Mar 31 21:42:36 2002 UTC

28 28
29SetMsgCallback (sub { 29SetMsgCallback (sub {
30 my($msg,$level)=@_; 30 my($msg,$level)=@_;
31 print uc(strmsglevel($_[1])),": $msg\n"; 31 print uc(strmsglevel($_[1])),": $msg\n";
32}); 32});
33
34SetFileNameCallback sub {
35 return unless $_[1]; # skip "Re:"-plies et al.
36 my ($subject, $filename) = @_;
37 ## if we find some *.rar, take it
38 return $1 if $subject =~ /(\S+\.(?:[rstuvwxyz]\d\d|rar))\s/i;
39 # otherwise just pass what we have
40 return ();
41};
42
33 43
34for(<uusrc/*>) { 44for(<uusrc/*>) {
35 my($retval,$count)=LoadFile ($_,$_,1); 45 my($retval,$count)=LoadFile ($_,$_,1);
36 print "file($_), status(",strerror($retval),") parts($count)\n"; 46 print "file($_), status(",strerror($retval),") parts($count)\n";
37} 47}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines