Skip to content

MailKit macOS xcode13.0 beta5

TJ Lambert edited this page Aug 12, 2021 · 3 revisions

#MailKit.framework https://github.com/xamarin/xamarin-macios/pull/12405

diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEExtensionManager.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEExtensionManager.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEExtensionManager.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEExtensionManager.h	2021-08-07 05:22:32.000000000 -0400
@@ -0,0 +1,22 @@
+//
+//  MEExtensionManager.h
+//  MailKit
+//
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// @brief Methods in this class allow the host app to interact with their Mail extension.
+API_AVAILABLE(macos(12.0)) API_UNAVAILABLE(ios, watchos, tvos, macCatalyst)
+@interface MEExtensionManager : NSObject
++ (instancetype)new NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+/// @brief This will call on Mail to reload the content rule list associated with the given identifier. Mail May throttle reloading the content blocker to once every few minutes.
++ (void)reloadContentBlockerWithIdentifier:(NSString *)identifier completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEMessageActionDecision.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEMessageActionDecision.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEMessageActionDecision.h	2021-07-22 14:33:55.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEMessageActionDecision.h	2021-08-07 05:22:33.000000000 -0400
@@ -12,7 +12,9 @@
 API_AVAILABLE(macos(12.0)) API_UNAVAILABLE(ios, watchos, tvos, macCatalyst)
 @interface MEMessageActionDecision : NSObject <NSSecureCoding>
 @property (class, readonly) MEMessageActionDecision *invokeAgainWithBody;
-+ (MEMessageActionDecision *)applyAction:(MEMessageAction *)action NS_SWIFT_NAME(action(_:));
++ (instancetype)decisionApplyingAction:(MEMessageAction *)action NS_SWIFT_NAME(action(_:));
+/// @brief Creates an @c MEMessageActionDecision with multiple actions. Conflicting actions will be ignored.
++ (instancetype)decisionApplyingActions:(NSArray<MEMessageAction *> *)actions NS_SWIFT_NAME(actions(_:));
 - (instancetype)new NS_UNAVAILABLE;
 - (instancetype)init NS_UNAVAILABLE;
 @end
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEMessageSecurityInformation.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEMessageSecurityInformation.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEMessageSecurityInformation.h	2021-07-22 14:33:54.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MEMessageSecurityInformation.h	2021-08-07 05:22:32.000000000 -0400
@@ -27,9 +27,16 @@
 /// @brief Any encryption error that occured when decoding the message.
 @property (nonatomic, nullable, readonly, strong) NSError *encryptionError;
 
+/// @brief Whether or not Mail should block loading remote content for the message by default. The user will have the option to load remote content manually.
+@property (nonatomic, readonly, assign) BOOL shouldBlockRemoteContent;
+
+/// @brief A localized string containing the reason for blocking remote content.
+@property (nonatomic, nullable, readonly, strong) NSString * localizedRemoteContentBlockingReason;
+
 + (instancetype)new NS_UNAVAILABLE;
 - (instancetype)init NS_UNAVAILABLE;
 - (instancetype)initWithSigners:(NSArray<MEMessageSigner *> *)signers isEncrypted:(BOOL)isEncrypted signingError:(nullable NSError *)signingError encryptionError:(nullable NSError *)encryptionError;
+- (instancetype)initWithSigners:(NSArray<MEMessageSigner *> *)signers isEncrypted:(BOOL)isEncrypted signingError:(nullable NSError *)signingError encryptionError:(nullable NSError *)encryptionError shouldBlockRemoteContent:(BOOL)shouldBlockRemoteContent localizedRemoteContentBlockingReason:(nullable NSString *)localizedRemoteContentBlockingReason;
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MailKit.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MailKit.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MailKit.h	2021-07-18 20:25:58.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MailKit.framework/Headers/MailKit.h	2021-08-02 05:03:34.000000000 -0400
@@ -21,6 +21,7 @@
 
 // Content Blocking
 #import <MailKit/MEContentBlocker.h>
+#import <MailKit/MEExtensionManager.h>
 
 // Message Security
 #import <MailKit/MEEncodedOutgoingMessage.h>
Clone this wiki locally