lib/ezmlm/list.rb
changeset 25 81cc7d47f68f
parent 24 f8873b391f3d
child 26 a89d91d4b157
equal deleted inserted replaced
24:f8873b391f3d 25:81cc7d47f68f
    23 	### Create a new Ezmlm::List object for the specified +listdir+, which should be
    23 	### Create a new Ezmlm::List object for the specified +listdir+, which should be
    24 	### an ezmlm-idx mailing list directory.
    24 	### an ezmlm-idx mailing list directory.
    25 	###
    25 	###
    26 	def initialize( listdir )
    26 	def initialize( listdir )
    27 		listdir = Pathname.new( listdir ) unless listdir.is_a?( Pathname )
    27 		listdir = Pathname.new( listdir ) unless listdir.is_a?( Pathname )
    28 		unless listdir.directory? && ( listdir + 'mailinglist' ).exist?
    28 		unless listdir.directory? && ( listdir + 'ezmlmrc' ).exist?
    29 			raise ArgumentError, "%p doesn't appear to be an ezmlm-idx list." % [ listdir.to_s ]
    29 			raise ArgumentError, "%p doesn't appear to be an ezmlm-idx list." % [ listdir.to_s ]
    30 		end
    30 		end
    31 		@listdir = listdir
    31 		@listdir = listdir
    32 	end
    32 	end
    33 
    33