nilclass-maildir 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/maildir/subdirs.rb +2 -1
- data/test/test_subdirs.rb +4 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/lib/maildir/subdirs.rb
CHANGED
@@ -14,9 +14,10 @@ module Maildir::Subdirs
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def subdir_by_path(sd_path)
|
17
|
+
return self if sd_path == ROOT_NAME
|
17
18
|
if(File.directory?(p = File.join(path, ".#{sd_path}")))
|
18
19
|
Maildir.new(p, false)
|
19
|
-
elsif(File.directory?(p = File.join(path, "
|
20
|
+
elsif(File.directory?(p = File.join(path, ".#{ROOT_NAME}.#{sd_path}")))
|
20
21
|
Maildir.new(p, false)
|
21
22
|
else
|
22
23
|
raise MaildirNotFound
|
data/test/test_subdirs.rb
CHANGED