lib/luggage/mailbox.rb in luggage-1.1.1 vs lib/luggage/mailbox.rb in luggage-1.1.2

- old
+ new

@@ -26,10 +26,12 @@ end # Returns true if this mailbox exists on the remote server, false otherwise # def exists? - @exists ||= connection.list("", name).present? + return @exists if instance_variable_defined?(:@exists) + + @exists = !connection.list("", name).empty? end # Deletes this mailbox on the remote server # def delete!