equal
deleted
inserted
replaced
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 |