@class NSMutableData, NSString, MFInvocationQueue, MFIMAPCommandPipeline, NSMutableSet, NSObject, MFIMAPDownloadCache; @protocol OS_os_log, MFIMAPMailboxListFilter, MFIMAPConnectionDelegate, EFCancelable; @interface MFIMAPConnection : MFConnection { id _mailboxListFilter; unsigned int _capabilityFlags : 24; BOOL _verifiedESearchResponse; unsigned char _connectionState : 3; NSString *_separatorChar; NSString *_serverNamespace; NSString *_selectedMailbox; NSMutableSet *_capabilities; NSString *_lastRequiredHeaders; unsigned int _commandNumber; NSMutableData *_data; unsigned int _readBufferSize; double _expirationTime; MFInvocationQueue *_streamEventQueue; unsigned char _noModSequence : 1; struct { unsigned char shouldHandleUntaggedResponse : 1; unsigned char didReceiveResponse : 1; unsigned char didFinishSelect : 1; unsigned char didDisconnect : 1; unsigned char setServerMessageCount : 1; unsigned char setHighestModSequence : 1; unsigned char willRemoveDelegation : 1; unsigned char shouldStartIdle : 1; } _delegateState; } @property (class, readonly) NSObject *log; @property (nonatomic) unsigned long long idleCommandSequenceNumber; @property (retain, nonatomic) id idleSubscriptionCancelable; @property (nonatomic) unsigned int permanentFlags; @property (readonly, retain, nonatomic) MFIMAPCommandPipeline *fetchPipeline; @property (readonly, retain, nonatomic) MFIMAPDownloadCache *downloadCache; @property (weak, nonatomic) id delegate; @property (nonatomic) int tag; @property (readonly, nonatomic) double connectTime; @property (readonly, nonatomic) BOOL gotBadResponse; @property (readonly, nonatomic) BOOL hasValidConnection; @property (readonly, nonatomic, getter=isIdle) BOOL idle; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly, copy, nonatomic) NSString *ef_publicDescription; + (void)initialize; + (void)setReadSizeParameters; - (void)close; - (id)capabilities; - (void)disconnect; - (id)init; - (id)copyDiagnosticInformation; - (int)connectionState; - (void)dealloc; - (void)lock; - (void).cxx_destruct; - (BOOL)supportsCapability:(int)a0; - (BOOL)logout; - (BOOL)deleteMailbox:(id)a0; - (BOOL)loginDisabled; - (id)copyWithZone:(struct _NSZone { } *)a0; - (void)unselect; - (BOOL)expunge; - (id)_headersToFetchIncludingThoseRequiredForRouting:(BOOL)a0 withRecipients:(BOOL)a1; - (id)_messageIDsFromFetchResultData:(id)a0; - (id)selectedMailbox; - (BOOL)storeFlags:(id)a0 state:(BOOL)a1 forMessageSet:(id)a2; - (BOOL)_doBasicConnectionUsingAccount:(id)a0; - (BOOL)examineMailbox:(id)a0; - (id)parenthesizedStringWithObjects:(id)a0; - (BOOL)storeGmailLabels:(id)a0 state:(BOOL)a1 forUIDs:(id)a2; - (void)_addCapabilities:(id)a0; - (void)_clearCapabilities; - (BOOL)_connectSocketUsingAccount:(id)a0; - (id)_connectionLogPrefix; - (id)_connectionStateDescription; - (id)_copyNextServerResponseForCommand:(id)a0; - (id)_copyNextTaggedOrContinuationResponseForCommand:(id)a0; - (id)_dictionaryFromSourceUIDs:(id)a0 destinationUIDs:(id)a1; - (int)_doIMAPLoginForAccount:(id)a0 quotedUsername:(id)a1 password:(id)a2; - (id)_doListCommand:(int)a0 withReference:(id)a1 mailboxName:(id)a2 options:(int)a3 getSpecialUse:(BOOL)a4 statusDataItems:(id)a5 statusEntriesByMailbox:(id *)a6; - (id)_doNamespaceCommand; - (void)_enableCompressionIfSupported; - (id)_errorForResponse:(id)a0 commandParams:(id)a1; - (id)_fetchArgumentForMessageSkeletonsWithAllHeaders; - (id)_fetchArgumentForMessageUidsAndFlags; - (void)_fetchCapabilities; - (id)_getFirstLevelMessageIDsForReference:(id)a0; - (id)_getReferencesForMessageSet:(id)a0; - (void)_handleBytesAvailableInternal; - (id)_indexSetForIMAPInlineSet:(id)a0; - (BOOL)_isFetchResponseValid:(id)a0; - (id)_listingForMailbox:(id)a0 options:(int)a1 getSpecialUse:(BOOL)a2 statusDataItems:(id)a3 statusEntriesByMailbox:(id *)a4 withCommand:(int)a5; - (id)_logStringForCommand:(id)a0; - (id)_logStringForIDs:(id)a0; - (id)_publicDescriptionForSearchString:(id)a0; - (id)_readDataOfLength:(long long)a0; - (id)_responseFromSendingCommand:(id)a0 andPossiblyCreateMailbox:(id)a1; - (id)_responseFromSendingCommands:(id)a0; - (id)_searchUidsForMessageIDs:(id)a0 excludeDeleted:(BOOL)a1; - (void)_sendApplePushForAccountIfSupported:(id)a0; - (void)_sendClientInfoIfSupported; - (unsigned long long)_sendCommands:(id)a0 response:(id *)a1; - (BOOL)_sendMailboxCommand:(int)a0 withArguments:(id)a1; - (id)_serverErrorForAccount:(id)a0 response:(id)a1 command:(id)a2; - (BOOL)_tryConnectionUsingAccount:(id)a0; - (id)_uidsForMessageIDs:(id)a0 excludeDeleted:(BOOL)a1; - (void)_updateCapabilitiesForAccount:(id)a0 withAuthenticationResponse:(id)a1; - (void)_updateSearchCapabilityWithAccount:(id)a0; - (BOOL)appendData:(id)a0 toMailboxNamed:(id)a1 flags:(id)a2 dateReceived:(id)a3 appendInfo:(id *)a4 error:(id *)a5; - (BOOL)appendData:(id)a0 toMailboxNamed:(id)a1 flags:(id)a2 dateReceived:(id)a3 newMessageInfo:(id *)a4; - (BOOL)authenticateUsingAccount:(id)a0; - (BOOL)authenticateUsingAccount:(id)a0 authenticator:(id)a1; - (BOOL)closeAndLogout; - (BOOL)connectUsingAccount:(id)a0; - (id)copyArgumentForSearchTerm:(id)a0; - (id)copyInfoForMessageInfo:(id)a0; - (BOOL)copyUIDs:(id)a0 toMailboxNamed:(id)a1 copyInfo:(id *)a2 error:(id *)a3; - (unsigned long long)countForSearchOfIDSet:(id)a0 forTerms:(id)a1 success:(BOOL *)a2; - (unsigned long long)countForSearchOfUidSet:(id)a0 forTerms:(id)a1 success:(BOOL *)a2; - (BOOL)createMailbox:(id)a0; - (BOOL)deleteMessagesOlderThanNumberOfDays:(int)a0; - (void)didFinishCommands:(id)a0; - (void)disconnectAndNotifyDelegate:(BOOL)a0; - (id)eSearchIDSet:(id)a0 areMessageSequenceNumbers:(BOOL)a1 arguments:(id)a2 success:(BOOL *)a3 returning:(int)a4; - (id)eSearchIDSet:(id)a0 areMessageSequenceNumbers:(BOOL)a1 forTerms:(id)a2 success:(BOOL *)a3 returning:(int)a4; - (BOOL)expungeUIDs:(id)a0; - (id)fetchMessageIdsForUids:(id)a0; - (void)fetchStatusForMailboxes:(id)a0 args:(id)a1; - (int)fillLiteralBuffer:(char *)a0 count:(unsigned long long)a1 dataLength:(unsigned long long)a2 nonSynchronizingLiteral:(BOOL *)a3; - (void)finishIdle; - (unsigned int)getMailboxIDForUID:(unsigned int)a0; - (void)handleBytesAvailable; - (id)listingForMailbox:(id)a0 options:(int)a1 getSpecialUse:(BOOL)a2 statusDataItems:(id)a3 statusEntriesByMailbox:(id *)a4; - (unsigned int)literalChunkSize; - (void)locked_finishIdle; - (void)locked_scheduleIdle; - (void)locked_scheduleIdleResetAfterDelay:(double)a0; - (void)locked_startIdle; - (BOOL)loginWithAccount:(id)a0 password:(id)a1; - (id)mailboxListFilter; - (id)messageSetForNumbers:(id)a0; - (id)messageSetForRange:(struct { unsigned int x0; unsigned int x1; })a0; - (id)messageSetForRange:(struct { unsigned int x0; unsigned int x1; })a0 butNotNumbers:(id)a1; - (id)messageSetForUIDs:(id)a0; - (id)messageSetForUIDs:(id)a0 maxTokens:(unsigned long long)a1 remainder:(id *)a2; - (BOOL)moveUIDs:(id)a0 toMailboxNamed:(id)a1 copyInfo:(id *)a2 error:(id *)a3; - (void)noop; - (void)parseESearchResponseWithContext:(id)a0; - (id)parseIndexSetFromSequenceSet:(id)a0; - (void)parseSearchReturn:(id)a0; - (BOOL)performCustomCommand:(id)a0 withArguments:(id)a1; - (id)quotaPercentagesForMailbox:(id)a0; - (unsigned int)readBufferSize; - (BOOL)renameMailbox:(id)a0 toMailbox:(id)a1; - (void)scheduleIdleReset; - (id)searchIDSet:(id)a0 forTerms:(id)a1 success:(BOOL *)a2; - (id)searchUIDs:(id)a0 withFlagRequests:(id)a1; - (id)searchUidSet:(id)a0 forTerms:(id)a1 success:(BOOL *)a2; - (BOOL)selectMailbox:(id)a0 withAccount:(id)a1; - (BOOL)sendResponsesForCommand:(id)a0 toQueue:(id)a1; - (BOOL)sendResponsesForCondStoreFlagFetchForUIDs:(id)a0 withSequenceIdentifier:(id *)a1 toQueue:(id)a2; - (BOOL)sendResponsesForUIDFetchForUIDs:(id)a0 fields:(id)a1 toQueue:(id)a2; - (BOOL)sendResponsesForUIDs:(id)a0 fields:(id)a1 flagSearchResults:(id)a2 toQueue:(id)a3; - (BOOL)sendSkeletonResponsesForUIDs:(id)a0 includeTo:(BOOL)a1 toQueue:(id)a2; - (BOOL)sendUidAndFlagResponsesForUIDs:(id)a0 sequenceIdentifierProvider:(id)a1 flagSearchResults:(id)a2 toQueue:(id)a3; - (BOOL)sendUidResponsesForSearchArguments:(id)a0 toQueue:(id)a1; - (id)separatorChar; - (id)serverPathPrefix; - (void)setMailboxListFilter:(id)a0; - (void)setReadBufferSize:(unsigned int)a0; - (void)setReadBufferSizeFromElapsedTime:(double)a0 bytesRead:(unsigned long long)a1; - (BOOL)startTLSForAccount:(id)a0; - (BOOL)storeFlagChange:(id)a0 forUIDs:(id)a1; - (BOOL)storeFlags:(id)a0 state:(BOOL)a1 forRange:(struct { unsigned int x0; unsigned int x1; })a2; - (BOOL)storeFlags:(id)a0 state:(BOOL)a1 forUIDs:(id)a2; - (BOOL)subscribeMailbox:(id)a0; - (id)subscribedListingForMailbox:(id)a0 options:(int)a1; - (id)uidsReferencedBy:(id)a0; - (BOOL)unsubscribeMailbox:(id)a0; @end