mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-14 03:23:29 +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;
|
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);
|
imap_unseen_command(mail, old_unseen, old_messages);
|
||||||
fail = 0;
|
fail = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user