add fetchFullMessage, fetchSection to IMAPClient for MIME attachment retrieval
This commit is contained in:
@@ -9,6 +9,10 @@ public protocol IMAPClientProtocol: Sendable {
|
||||
func fetchFlags(uids: ClosedRange<Int>) async throws -> [UIDFlagsPair]
|
||||
func fetchBody(uid: Int) async throws -> (text: String?, html: String?)
|
||||
|
||||
// v0.5 attachment/MIME operations
|
||||
func fetchFullMessage(uid: Int) async throws -> String
|
||||
func fetchSection(uid: Int, mailbox: String, section: String) async throws -> Data
|
||||
|
||||
// v0.3 write operations
|
||||
func storeFlags(uid: Int, mailbox: String, add: [String], remove: [String]) async throws
|
||||
func moveMessage(uid: Int, from: String, to: String) async throws
|
||||
|
||||
Reference in New Issue
Block a user