diff options
author | x-yl <kylepereira@mail.com> | 2021-06-02 18:53:08 +0400 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-06-11 23:58:28 +0430 |
commit | 9174fabf05b60abd5435992842db0aff8f615ab9 (patch) | |
tree | a5b26378cd9f3d2b6ae72f57c0e59f1280eba74a /Userland/Libraries/LibIMAP/Client.h | |
parent | 16995dc3d98e9d3036baae6535a0c7f2fb970d24 (diff) | |
download | serenity-9174fabf05b60abd5435992842db0aff8f615ab9.zip |
LibIMAP: Support for remaining IMAP commands
These include APPEND, AUTHENTICATE, CHECK, CLOSE, EXAMINE, EXPUNGE,
LSUB, SUBSCRIBE, UNSUBSCRIBE
Diffstat (limited to 'Userland/Libraries/LibIMAP/Client.h')
-rw-r--r-- | Userland/Libraries/LibIMAP/Client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibIMAP/Client.h b/Userland/Libraries/LibIMAP/Client.h index a1b2f46c1b..b61ad1d609 100644 --- a/Userland/Libraries/LibIMAP/Client.h +++ b/Userland/Libraries/LibIMAP/Client.h @@ -23,14 +23,19 @@ public: void send_raw(StringView data); RefPtr<Promise<Optional<SolidResponse>>> login(StringView username, StringView password); RefPtr<Promise<Optional<SolidResponse>>> list(StringView reference_name, StringView mailbox_name); + RefPtr<Promise<Optional<SolidResponse>>> lsub(StringView reference_name, StringView mailbox_name); RefPtr<Promise<Optional<SolidResponse>>> select(StringView string); + RefPtr<Promise<Optional<SolidResponse>>> examine(StringView string); RefPtr<Promise<Optional<SolidResponse>>> search(Optional<String> charset, Vector<SearchKey>&& search_keys, bool uid); RefPtr<Promise<Optional<SolidResponse>>> fetch(FetchCommand request, bool uid); RefPtr<Promise<Optional<SolidResponse>>> store(StoreMethod, Sequence, bool silent, Vector<String> const& flags, bool uid); RefPtr<Promise<Optional<SolidResponse>>> copy(Sequence sequence_set, StringView name, bool uid); RefPtr<Promise<Optional<SolidResponse>>> create_mailbox(StringView name); RefPtr<Promise<Optional<SolidResponse>>> delete_mailbox(StringView name); + RefPtr<Promise<Optional<SolidResponse>>> subscribe(StringView mailbox); + RefPtr<Promise<Optional<SolidResponse>>> unsubscribe(StringView mailbox); RefPtr<Promise<Optional<SolidResponse>>> rename(StringView from, StringView to); + RefPtr<Promise<Optional<Response>>> authenticate(StringView method); RefPtr<Promise<Optional<ContinueRequest>>> idle(); RefPtr<Promise<Optional<SolidResponse>>> finish_idle(); RefPtr<Promise<Optional<SolidResponse>>> status(StringView mailbox, Vector<StatusItemType> const& types); |