lib/ezmlm/list.rb
changeset 24 f8873b391f3d
parent 20 9d59d30685cb
child 25 81cc7d47f68f
equal deleted inserted replaced
23:eedb2586dea4 24:f8873b391f3d
   659 	### could also be an email address.
   659 	### could also be an email address.
   660 	###
   660 	###
   661 	def author( author_id )
   661 	def author( author_id )
   662 		author_id = Ezmlm::Hash.address(author_id) if author_id.index( '@' )
   662 		author_id = Ezmlm::Hash.address(author_id) if author_id.index( '@' )
   663 		return Ezmlm::List::Author.new( self, author_id ) rescue nil
   663 		return Ezmlm::List::Author.new( self, author_id ) rescue nil
       
   664 	end
       
   665 
       
   666 
       
   667 	### Return a Time object for the last activity on the list, or nil
       
   668 	### if archiving is disabled or there are no posts.
       
   669 	###
       
   670 	def last_activity
       
   671 		file = self.listdir + 'archnum'
       
   672 		return unless file.exist?
       
   673 		return file.stat.mtime
   664 	end
   674 	end
   665 
   675 
   666 
   676 
   667 	### Parse all thread indexes into a single array that can be used
   677 	### Parse all thread indexes into a single array that can be used
   668 	### as a lookup table.
   678 	### as a lookup table.