commit 89ae317d6316170d05af99d5862a86cfb2cdff62
parent 2e06f1ebe80e26ef83170a35fa30248065ff58c0
Author: Grant Hollingworth <grant@antiflux.org>
Date: Mon, 26 May 2008 09:07:09 -0400
added default maildir mtimes for earlier sources.yaml files
Fixes a bug introduced by 2e06f1eb. The YAML loading was explicitly passing
nil, overriding the {} default in initialize.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
@@ -30,7 +30,7 @@ class Maildir < Source
#the mtime from the subdirs in the maildir with the unix epoch as default.
#these are used to determine whether scanning the directory for new mail
#is a worthwhile effort
- @mtimes = { 'cur' => Time.at(0), 'new' => Time.at(0) }.merge(mtimes)
+ @mtimes = { 'cur' => Time.at(0), 'new' => Time.at(0) }.merge(mtimes || {})
@dir_ids = { 'cur' => [], 'new' => [] }
end