Allow sending NOOP commands from Imap.FolderSession
This provides API users a means of poking the server to get pending notifications out.
This commit is contained in:
parent
d7006f3b5e
commit
ee11d0d8ec
1 changed files with 11 additions and 0 deletions
|
|
@ -161,6 +161,17 @@ private class Geary.Imap.FolderSession : Geary.Imap.SessionObject {
|
||||||
return old_session;
|
return old_session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Sends a NOOP command. */
|
||||||
|
public async void send_noop(GLib.Cancellable? cancellable)
|
||||||
|
throws GLib.Error {
|
||||||
|
yield exec_commands_async(
|
||||||
|
Collection.single(new NoopCommand()),
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
cancellable
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
private void on_exists(int total) {
|
private void on_exists(int total) {
|
||||||
debug("%s EXISTS %d", to_string(), total);
|
debug("%s EXISTS %d", to_string(), total);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue