IOS-1480 Move ProviderSpecificInformationProtocol. IOS-1480
authorDirk Zimmermann <dz@pep.security>
Mon, 18 Feb 2019 13:21:12 +0100
branchIOS-1480
changeset 767619c45c54396e
parent 7675 3c07acc734ef
child 7677 24c21e0edc4e
IOS-1480 Move ProviderSpecificInformationProtocol.
pEpForiOS.xcodeproj/project.pbxproj
pEpForiOS/Util/IMAP/VirtualMailbox/ProviderSpecific/ProviderSpecificInformationProtocol.swift
     1.1 --- a/pEpForiOS.xcodeproj/project.pbxproj	Mon Feb 18 13:21:12 2019 +0100
     1.2 +++ b/pEpForiOS.xcodeproj/project.pbxproj	Mon Feb 18 13:21:12 2019 +0100
     1.3 @@ -177,7 +177,6 @@
     1.4  		15874BD421274BD400A3A4A6 /* TrustedServerSettingCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15874BD321274BD400A3A4A6 /* TrustedServerSettingCell.swift */; };
     1.5  		1594C1D021281FCD00CB06E2 /* Server+Fetching.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1594C1CF21281FCD00CB06E2 /* Server+Fetching.swift */; };
     1.6  		15A536902155136800CF6204 /* PEPUtilTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15A5368F2155136800CF6204 /* PEPUtilTest.swift */; };
     1.7 -		15A75CEA202DE6B300C0DA28 /* ProviderSpecificInformationProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15A75CE9202DE6B300C0DA28 /* ProviderSpecificInformationProtocol.swift */; };
     1.8  		15A75CEC202DED2300C0DA28 /* GmailSpecificInformation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15A75CEB202DED2300C0DA28 /* GmailSpecificInformation.swift */; };
     1.9  		15A763D11F72D68000670313 /* KeyChainTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15A763D01F72D68000670313 /* KeyChainTest.swift */; };
    1.10  		15A8B8FC20908D2300D2B0B6 /* Keychain+TestUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15A8B8FB20908D2300D2B0B6 /* Keychain+TestUtils.swift */; };
    1.11 @@ -731,7 +730,6 @@
    1.12  		15874BD321274BD400A3A4A6 /* TrustedServerSettingCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TrustedServerSettingCell.swift; sourceTree = "<group>"; };
    1.13  		1594C1CF21281FCD00CB06E2 /* Server+Fetching.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Server+Fetching.swift"; sourceTree = "<group>"; };
    1.14  		15A5368F2155136800CF6204 /* PEPUtilTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PEPUtilTest.swift; sourceTree = "<group>"; };
    1.15 -		15A75CE9202DE6B300C0DA28 /* ProviderSpecificInformationProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProviderSpecificInformationProtocol.swift; sourceTree = "<group>"; };
    1.16  		15A75CEB202DED2300C0DA28 /* GmailSpecificInformation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GmailSpecificInformation.swift; sourceTree = "<group>"; };
    1.17  		15A763D01F72D68000670313 /* KeyChainTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyChainTest.swift; sourceTree = "<group>"; };
    1.18  		15A8B8FB20908D2300D2B0B6 /* Keychain+TestUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Keychain+TestUtils.swift"; sourceTree = "<group>"; };
    1.19 @@ -1656,7 +1654,6 @@
    1.20  			isa = PBXGroup;
    1.21  			children = (
    1.22  				15A75CEB202DED2300C0DA28 /* GmailSpecificInformation.swift */,
    1.23 -				15A75CE9202DE6B300C0DA28 /* ProviderSpecificInformationProtocol.swift */,
    1.24  			);
    1.25  			path = ProviderSpecific;
    1.26  			sourceTree = "<group>";
    1.27 @@ -3304,7 +3301,6 @@
    1.28  				152A39DB21905C3E00D9F8E4 /* CellViewModel.swift in Sources */,
    1.29  				432AC3061ECB0C44007DC418 /* CWIMAPMessage+pEp.swift in Sources */,
    1.30  				431B047A1DE5772000E40CD3 /* CdMessage+pEp.swift in Sources */,
    1.31 -				15A75CEA202DE6B300C0DA28 /* ProviderSpecificInformationProtocol.swift in Sources */,
    1.32  				155050F01FE82356009CEAD2 /* UserNotificationTool.swift in Sources */,
    1.33  				430D73671E9CC54000EA6FA9 /* AttachmentToLocalURLOperation.swift in Sources */,
    1.34  				4351C2D21F4441190053381F /* html.c in Sources */,
     2.1 --- a/pEpForiOS/Util/IMAP/VirtualMailbox/ProviderSpecific/ProviderSpecificInformationProtocol.swift	Mon Feb 18 13:21:12 2019 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,48 +0,0 @@
     2.4 -//
     2.5 -//  ProviderSpecificInformationProtocol.swift
     2.6 -//  pEp
     2.7 -//
     2.8 -//  Created by Andreas Buff on 09.02.18.
     2.9 -//  Copyright © 2018 p≡p Security S.A. All rights reserved.
    2.10 -//
    2.11 -
    2.12 -import MessageModel
    2.13 -
    2.14 -protocol ProviderSpecificInformationProtocol {
    2.15 -
    2.16 -    /// Whether or not the given folder belongs to the provider.
    2.17 -    ///
    2.18 -    /// - Parameter folder: folder to figure out if it belongs to the provider
    2.19 -    /// - Returns: true if the given folder belongs to the provider, false otherwize
    2.20 -    func belongsToProvider(_ folder: Folder) -> Bool
    2.21 -
    2.22 -    /// You might be able to append messages to virtual mailboxes. Due to weak specification in
    2.23 -    /// RFC6154 we have to use provider specific rules for certain providers.
    2.24 -    /// Examples:
    2.25 -    /// 1) Gmail Sent
    2.26 -    /// You MUST NOT append send messages to the "[Gmail]/Sent" folder, as Gmail does handle that
    2.27 -    /// automatically and thus appending it results in a duplicated sent message.
    2.28 -    /// 2) Gmail Drafts
    2.29 -    /// You MIGHT (and we do) append drafted mails to the [Gmail]/Drafts folder.
    2.30 -    /// Technically the message will show up in the virtual [Gmail]/Darfts folder if:
    2.31 -    /// - the message is contained in *any* folder
    2.32 -    /// - the message has imapFlag ".draft" set
    2.33 -    /// - the message has not the imaFlag ".deleted" set
    2.34 -    /// 3) Gmail Trash
    2.35 -    /// You MUST append drafted mails to the [Gmail]/Trash folder to make them show up there.
    2.36 -    /// The "Trash" folder is the only "non-virtual mailbox" on Gmail.
    2.37 -    ///
    2.38 -    /// - Parameter folder: folder to check appendability for
    2.39 -    /// - Returns: true if it is OK to append messages to this folder, false otherwize
    2.40 -    func isOkToAppendMessages(toFolder folder: Folder) -> Bool
    2.41 -
    2.42 -    /// - Returns:  Whether or not the given folder represents a virtual mailbox of the provider.
    2.43 -    func isVirtualMailbox(_ folder: Folder) -> Bool
    2.44 -
    2.45 -    /// - Returns:  Whether or not deleted messages should be moved to trash using the UID MOVE
    2.46 -    ///             extension instead of copying it locally and then appending it.
    2.47 -    func shouldUidMoveMailsToTrashWhenDeleted(inFolder folder: Folder) -> Bool
    2.48 -
    2.49 -    /// Whether or not the default destructive action is "archive" instead of "delete".
    2.50 -    func defaultDestructiveActionIsArchive(forFolder folder: Folder) -> Bool
    2.51 -}