vmail 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vmail/imap_client.rb +3 -3
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/lib/vmail/imap_client.rb
CHANGED
|
@@ -563,13 +563,13 @@ EOF
|
|
|
563
563
|
end
|
|
564
564
|
end
|
|
565
565
|
|
|
566
|
-
def spawn_thread_if_tty
|
|
566
|
+
def spawn_thread_if_tty(&block)
|
|
567
567
|
if STDIN.tty?
|
|
568
568
|
Thread.new do
|
|
569
|
-
|
|
569
|
+
reconnect_if_necessary(10, &block)
|
|
570
570
|
end
|
|
571
571
|
else
|
|
572
|
-
|
|
572
|
+
block.call
|
|
573
573
|
end
|
|
574
574
|
end
|
|
575
575
|
|
data/lib/vmail/version.rb
CHANGED