ce5c985272
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 lines
462 B
Swift
10 lines
462 B
Swift
public protocol IMAPClientProtocol: Sendable {
|
|
func connect() async throws
|
|
func disconnect() async throws
|
|
func listMailboxes() async throws -> [IMAPMailboxInfo]
|
|
func selectMailbox(_ name: String) async throws -> IMAPMailboxStatus
|
|
func fetchEnvelopes(uidsGreaterThan uid: Int) async throws -> [FetchedEnvelope]
|
|
func fetchFlags(uids: ClosedRange<Int>) async throws -> [UIDFlagsPair]
|
|
func fetchBody(uid: Int) async throws -> (text: String?, html: String?)
|
|
}
|