diff --git a/trunk/ripnews/news/article.rb b/trunk/ripnews/news/article.rb index dd7cd47..bd2f974 100644 --- a/trunk/ripnews/news/article.rb +++ b/trunk/ripnews/news/article.rb @@ -10,7 +10,7 @@ require 'tempfile' class Article -Debuglevel = 1 +Debuglevel = 0 def initialize(nntpservers, groupname, newsrc="~/.newsrc") @messids = [] @@ -449,7 +449,10 @@ def _uudecode_file(file, outfile) 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 " UUdecoding...\n" @@ -511,7 +514,8 @@ def _uudecode_array(data) end unless (i < data.length) - print "not uuencoded!\n" + print "Not UUencoded!\n" + return false end print "UUdecoding...\n" @@ -622,7 +626,10 @@ def _ydecode_file(file, outfile) end end - print "not yencoded!\n" if file.eof + if file.eof + print "Not yencoded!\n" + return false + end print " ydecoding...\n" @@ -731,7 +738,8 @@ def _ydecode_array(data) end unless (i < data.length) - print "not yencoded!\n" + print "Not yencoded!\n" + return false end print "ydecoding...\n"