1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

handle BYE from server when idling (IMAP stuff)

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1261 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2008-09-26 21:29:02 +00:00
parent 1849db04e1
commit c5fcc5c6f1

View File

@ -1921,6 +1921,14 @@ void *imap_thread(void *arg)
break;
}
}
/*
* check if we got a BYE from server
*/
buf = recvbuf;
if (buf && strstr(buf, "* BYE")) {
// need to re-connect
break;
}
}
imap_unseen_command(mail, old_unseen, old_messages);
fail = 0;