quit if you're in the wrong encoding loop dammit
This commit is contained in:
parent
3035250ab1
commit
e99c488703
1 changed files with 13 additions and 5 deletions
|
|
@ -10,7 +10,7 @@ require 'tempfile'
|
||||||
|
|
||||||
class Article
|
class Article
|
||||||
|
|
||||||
Debuglevel = 1
|
Debuglevel = 0
|
||||||
|
|
||||||
def initialize(nntpservers, groupname, newsrc="~/.newsrc")
|
def initialize(nntpservers, groupname, newsrc="~/.newsrc")
|
||||||
@messids = []
|
@messids = []
|
||||||
|
|
@ -449,7 +449,10 @@ def _uudecode_file(file, outfile)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
print "not uuencoded!\n" if file.eof
|
if file.eof
|
||||||
|
print "Not UUencoded!\n"
|
||||||
|
return false
|
||||||
|
end
|
||||||
print "c: #{c} mark: #{mark} lines: #{lines}\n" if Debuglevel > 1
|
print "c: #{c} mark: #{mark} lines: #{lines}\n" if Debuglevel > 1
|
||||||
|
|
||||||
print " UUdecoding...\n"
|
print " UUdecoding...\n"
|
||||||
|
|
@ -511,7 +514,8 @@ def _uudecode_array(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
unless (i < data.length)
|
unless (i < data.length)
|
||||||
print "not uuencoded!\n"
|
print "Not UUencoded!\n"
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
print "UUdecoding...\n"
|
print "UUdecoding...\n"
|
||||||
|
|
@ -622,7 +626,10 @@ def _ydecode_file(file, outfile)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
print "not yencoded!\n" if file.eof
|
if file.eof
|
||||||
|
print "Not yencoded!\n"
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
print " ydecoding...\n"
|
print " ydecoding...\n"
|
||||||
|
|
||||||
|
|
@ -731,7 +738,8 @@ def _ydecode_array(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
unless (i < data.length)
|
unless (i < data.length)
|
||||||
print "not yencoded!\n"
|
print "Not yencoded!\n"
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
print "ydecoding...\n"
|
print "ydecoding...\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue