patch 459541a83671f7510008f6add9eed8e5502ea6d3
Author: Enrique D. Bosch <presidev@AT@gmail.com>
Date: Thu Sep 6 01:00:58 CEST 2018
* Move reset idle to exit_idle
diff -rN -u old-idlebiff/idlebiff new-idlebiff/idlebiff
--- old-idlebiff/idlebiff 2024-11-22 16:20:29.452884814 +0100
+++ new-idlebiff/idlebiff 2024-11-22 16:20:29.452884814 +0100
@@ -353,11 +353,7 @@
update_img $img_chk
after cancel $ka
- if { $idle } \
- {
- set idle 0
- exit_idle $con
- }
+ if { $idle } { exit_idle $con }
logout $con
}
@@ -375,6 +371,9 @@
proc exit_idle con \
{
+ variable ::shared::idle
+
+ set idle 0
imap_command $con DONE
}
@@ -421,12 +420,10 @@
proc idle_cycle { con check } \
{
- variable ::shared::idle
variable ::shared::conf
variable ::shared::ka
after cancel $ka
- set idle 0
exit_idle $con
if { $check } { do_search $con } \
else { enter_idle $con }