whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 131761b: don't complain if there is no mbox to be found
Date Mon, 11 Jan 2016 21:25:16 GMT
Commit 131761b44bc46789bd4707114a2691a139aab9ab:
    don't complain if there is no mbox to be found


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@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)
 

Mime
View raw message