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:
Michael Gratton 2019-08-08 22:58:04 +10:00 committed by Michael James Gratton
parent d7006f3b5e
commit ee11d0d8ec

View file

@ -161,6 +161,17 @@ private class Geary.Imap.FolderSession : Geary.Imap.SessionObject {
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) {
debug("%s EXISTS %d", to_string(), total);