mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 12:27:52 +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:
parent
1849db04e1
commit
c5fcc5c6f1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user