You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/01/11 22:25:16 UTC
[whimsy.git] [1/1] Commit 131761b: don't complain if there is no mbox to be found
Commit 131761b44bc46789bd4707114a2691a139aab9ab:
don't complain if there is no mbox to be found
Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>
------------------------------------------------------------
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)