… | |
… | |
44 | local $_ = $_[0]; |
44 | local $_ = $_[0]; |
45 | |
45 | |
46 | # the following rules are rather effective on some newsgroups, |
46 | # the following rules are rather effective on some newsgroups, |
47 | # like alt.binaries.games.anime, where non-mime, uuencoded data |
47 | # like alt.binaries.games.anime, where non-mime, uuencoded data |
48 | # is very common |
48 | # is very common |
|
|
49 | |
|
|
50 | # File 06 of 33 - Kendo - Final - 0001.jpg (2/3) |
|
|
51 | return $1 if /File \d+ of \d+ - (.*) \(\d+\/\d+\)/i; |
49 | |
52 | |
50 | # if we find some *.rar, take it as the filename |
53 | # if we find some *.rar, take it as the filename |
51 | return $1 if /(\S{3,}\.(?:[rstuvwxyz]\d\d|rar))\s/i; |
54 | return $1 if /(\S{3,}\.(?:[rstuvwxyz]\d\d|rar))\s/i; |
52 | |
55 | |
53 | # one common subject format |
56 | # one common subject format |
… | |
… | |
96 | print "$k > $v, "; |
99 | print "$k > $v, "; |
97 | } |
100 | } |
98 | print "\n"; |
101 | print "\n"; |
99 | } |
102 | } |
100 | |
103 | |
101 | $uu->decode_temp; |
104 | print $uu->filename; |
102 | print " temporarily decoded to ", $uu->binfile, "\n"; |
105 | |
103 | $uu->remove_temp; |
106 | $uu->remove_temp; |
104 | |
107 | |
105 | print strerror $uu->decode; |
108 | if (my $err = $uu->decode) { |
|
|
109 | print ", ", strerror $err, "\n"; |
|
|
110 | } else { |
106 | print " saved as uudst/", $uu->filename, "\n"; |
111 | print ", saved as uudst/", $uu->filename, "\n"; |
|
|
112 | } |
107 | } |
113 | } |
108 | |
114 | |
109 | print "cleanup...\n"; |
115 | print "cleanup...\n"; |
110 | |
116 | |
111 | CleanUp(); |
117 | CleanUp; |