Commit 131761b44bc46789bd4707114a2691a139aab9ab:
don't complain if there is no mbox to be found
Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>
------------------------------------------------------------
www/secmail/models/mailbox.rb | +
------------------------------------------------------------
1 changes: 1 additions, 0 deletions.
------------------------------------------------------------
diff --git a/www/secmail/models/mailbox.rb b/www/secmail/models/mailbox.rb
index 095767c..afae959 100644
--- a/www/secmail/models/mailbox.rb
+++ b/www/secmail/models/mailbox.rb
@@ -185,6 +185,7 @@ def self.headers(part)
# parse a mailbox, updating YAML
#
def parse
+ return unless @mbox
mbox = YAML.load_file(yaml_file) || {} rescue {}
return if mbox[:mtime] == File.mtime(@mbox)