clean a bit more
This commit is contained in:
parent
9f8bae179c
commit
c318fb3022
1 changed files with 6 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/local/bin/ruby -w
|
||||
|
||||
# $Dwarf: ripnews.rb,v 1.43 2003/04/18 22:27:58 ward Exp $
|
||||
# $Dwarf: ripnews.rb,v 1.44 2003/04/19 11:10:32 ward Exp $
|
||||
# $Source$
|
||||
|
||||
require 'date'
|
||||
|
|
@ -312,7 +312,6 @@ def output_data(subject, mode, filename="", body="")
|
|||
end
|
||||
|
||||
def check_ext(group, filename, mode)
|
||||
print " filename: #{filename}\n";
|
||||
case mode
|
||||
when "s"
|
||||
return @config[group].has_key?("-S") ? ( filename =~ /\.(#{@config[group]["-S"]})$/ ) : true
|
||||
|
|
@ -388,7 +387,11 @@ for group in @config.keys.sort
|
|||
elsif @articles.group_is_multipart(i)
|
||||
mode, filename, body = get_multi(i, group)
|
||||
end
|
||||
output_data(i, mode, filename, body) if mode != false
|
||||
if mode == false
|
||||
print "Skipping article...\n"
|
||||
else
|
||||
output_data(i, mode, filename, body)
|
||||
end
|
||||
rescue Article::TempError, Article::PermError
|
||||
print "#{$!}\n"
|
||||
print "Skipping article...\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue