clean a bit more

This commit is contained in:
Ward Wouts 2003-04-19 12:42:12 +00:00
parent 9f8bae179c
commit c318fb3022

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w #!/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$ # $Source$
require 'date' require 'date'
@ -312,7 +312,6 @@ def output_data(subject, mode, filename="", body="")
end end
def check_ext(group, filename, mode) def check_ext(group, filename, mode)
print " filename: #{filename}\n";
case mode case mode
when "s" when "s"
return @config[group].has_key?("-S") ? ( filename =~ /\.(#{@config[group]["-S"]})$/ ) : true 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) elsif @articles.group_is_multipart(i)
mode, filename, body = get_multi(i, group) mode, filename, body = get_multi(i, group)
end 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 rescue Article::TempError, Article::PermError
print "#{$!}\n" print "#{$!}\n"
print "Skipping article...\n" print "Skipping article...\n"