mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-19 18:18:12 +00:00
(fix) avoid truncating the MIME content when fetching the whole message
This commit is contained in:
1 parent
d75479f835
commit
be7ee69f0f
2 files changed
+10
No files matched your search
@@ -590,6 +590,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
serverId = [[(id)[theDocumentElement getElementsByTagName: @"ServerId"] lastObject] textValue];
|
serverId = [[(id)[theDocumentElement getElementsByTagName: @"ServerId"] lastObject] textValue];
|
||||||
|
|
||||||
|
// https://msdn.microsoft.com/en-us/library/gg675490%28v=exchg.80%29.aspx
|
||||||
|
// The fetch element is used to request the application data of an item that was truncated in a synchronization response from the server.
|
||||||
|
// The complete item is then returned to the client in a server response.
|
||||||
|
[context setObject: @"8" forKey: @"MIMETruncation"];
|
||||||
|
|
||||||
o = [theCollection lookupName: [serverId sanitizedServerIdWithType: theFolderType]
|
o = [theCollection lookupName: [serverId sanitizedServerIdWithType: theFolderType]
|
||||||
inContext: context
|
inContext: context
|
||||||
acquire: NO];
|
acquire: NO];
|
||||||
|
|||||||
@@ -1425,6 +1425,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
mimeSupport = [[(id)[theDocumentElement getElementsByTagName: @"MIMESupport"] lastObject] textValue];
|
mimeSupport = [[(id)[theDocumentElement getElementsByTagName: @"MIMESupport"] lastObject] textValue];
|
||||||
[context setObject: mimeSupport forKey: @"MIMESupport"];
|
[context setObject: mimeSupport forKey: @"MIMESupport"];
|
||||||
|
|
||||||
|
// https://msdn.microsoft.com/en-us/library/gg675490%28v=exchg.80%29.aspx
|
||||||
|
// The fetch element is used to request the application data of an item that was truncated in a synchronization response from the server.
|
||||||
|
// The complete item is then returned to the client in a server response.
|
||||||
|
[context setObject: @"8" forKey: @"MIMETruncation"];
|
||||||
|
|
||||||
currentCollection = [self collectionFromId: realCollectionId type: folderType];
|
currentCollection = [self collectionFromId: realCollectionId type: folderType];
|
||||||
|
|
||||||
mailObject = [currentCollection lookupName: serverId inContext: context acquire: NO];
|
mailObject = [currentCollection lookupName: serverId inContext: context acquire: NO];
|
||||||
|
|||||||
Reference in new issue
Block a user