add some time info
This commit is contained in:
parent
00fb830be6
commit
21f71ff711
1 changed files with 9 additions and 1 deletions
|
|
@ -1,9 +1,10 @@
|
|||
#!/usr/local/bin/ruby -w
|
||||
|
||||
# $Dwarf: ripnews.rb,v 1.53 2003/04/27 22:28:59 ward Exp $
|
||||
# $Dwarf: ripnews.rb,v 1.54 2003/04/28 09:07:17 ward Exp $
|
||||
# $Source$
|
||||
|
||||
require 'date'
|
||||
require 'time'
|
||||
require 'getoptlong'
|
||||
require 'news/article'
|
||||
require 'news/newsrc'
|
||||
|
|
@ -392,6 +393,7 @@ end
|
|||
#############################################################################################
|
||||
|
||||
$stdout.sync=true # line buffered output
|
||||
print "\nStarting: #{Time.now}\n\n"
|
||||
defaults = {'-c' => "#{ENV['HOME']}/.ripnewsrc"}
|
||||
defaults = parse_options(defaults)
|
||||
parse_config(defaults)
|
||||
|
|
@ -428,6 +430,11 @@ for group in @config.keys.sort
|
|||
end
|
||||
for i in @articles.get_group_subjects
|
||||
print "#{i}\n" if Debuglevel > 2
|
||||
if @config[group].has_key?("-MR") and i =~ /#{@config[group]["-MR"]}/
|
||||
print " Marking '#{subject}' matches as read\n"
|
||||
@articles.group_update_newsrc(i)
|
||||
next
|
||||
end
|
||||
if !(@config[group].has_key?("-X") and i =~ /#{@config[group]["-X"]}/) and
|
||||
i =~ /#{@config[group]["-I"]}/
|
||||
print "Match: #{i}\n" if Debuglevel > 0
|
||||
|
|
@ -455,3 +462,4 @@ for group in @config.keys.sort
|
|||
end
|
||||
@articles.quit
|
||||
end
|
||||
print "\nFinished: #{Time.now}\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue