├── .github
└── ISSUE_TEMPLATE
│ └── bug-report-template.md
├── .gitignore
├── .gitmodules
├── .travis.yml
├── CMakeLists.txt
├── LICENSE
├── Package.swift
├── README.md
├── TODO.md
├── bin
├── MailCore2-2020-09-17.xcframework.zip
└── MailCore2-2020-09-24.xcframework.zip
├── build-android
├── .gitignore
├── AndroidManifest.xml
├── README.md
├── build.sh
└── jni
│ └── Android.mk
├── build-linux
└── README.md
├── build-mac
├── Default-568h@2x.png
├── MCOFramework.h
├── MCOFramework.mm
├── README.md
├── framework-Info.plist
├── mailcore2.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ ├── mailcore ios.xcscheme
│ │ ├── mailcore osx.xcscheme
│ │ ├── static mailcore2 ios.xcscheme
│ │ ├── static mailcore2 osx.xcscheme
│ │ ├── test-ios.xcscheme
│ │ ├── tests.xcscheme
│ │ └── unittest.xcscheme
└── mailcore2.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ └── IDEWorkspaceChecks.plist
├── build-windows
├── README.md
├── build_headers.bat
├── build_headers.list
├── gen-public-headers.sh
└── mailcore2
│ ├── mailcore2.sln
│ ├── mailcore2
│ ├── mailcore2.vcxproj
│ └── mailcore2.vcxproj.filters
│ └── test
│ ├── test.vcxproj
│ ├── test.vcxproj.filters
│ └── test.vcxproj.user
├── cocoapods
├── mailcore2-ios.podspec
└── mailcore2-osx.podspec
├── example
├── android
│ └── AndroidExample
│ │ ├── .gitignore
│ │ ├── AndroidExample.iml
│ │ ├── app
│ │ ├── .gitignore
│ │ ├── app.iml
│ │ ├── build.gradle
│ │ ├── proguard-rules.pro
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── libmailcore
│ │ │ │ └── androidexample
│ │ │ │ ├── MessageAdapter.java
│ │ │ │ ├── MessageViewDetailActivity.java
│ │ │ │ ├── MessageViewDetailFragment.java
│ │ │ │ ├── MessageViewListActivity.java
│ │ │ │ ├── MessageViewListFragment.java
│ │ │ │ └── MessagesSyncManager.java
│ │ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── layout-sw600dp
│ │ │ └── activity_messageview_list.xml
│ │ │ ├── layout
│ │ │ ├── activity_messageview_detail.xml
│ │ │ ├── activity_messageview_list.xml
│ │ │ └── fragment_messageview_detail.xml
│ │ │ ├── values-v21
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ ├── strings_activity_login.xml
│ │ │ └── styles.xml
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ │ ├── gradlew
│ │ ├── gradlew.bat
│ │ └── settings.gradle
├── common
│ ├── FXKeychain.h
│ ├── FXKeychain.m
│ └── FXKeychain_LICENCE.md
├── ios
│ └── iOS UI Test
│ │ ├── iOS UI Test.xcodeproj
│ │ ├── project.pbxproj
│ │ └── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ │ └── iOS UI Test
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Default-568h@2x.png
│ │ ├── Default.png
│ │ ├── Default@2x.png
│ │ ├── MCTMsgViewController.h
│ │ ├── MCTMsgViewController.mm
│ │ ├── MCTTableViewCell.h
│ │ ├── MCTTableViewCell.m
│ │ ├── MasterViewController.h
│ │ ├── MasterViewController.m
│ │ ├── SettingsViewController.h
│ │ ├── SettingsViewController.m
│ │ ├── SettingsViewController.xib
│ │ ├── en.lproj
│ │ ├── InfoPlist.strings
│ │ └── MainStoryboard.storyboard
│ │ ├── iOS UI Test-Info.plist
│ │ ├── iOS UI Test-Prefix.pch
│ │ └── main.mm
└── mac
│ └── macExample
│ ├── macExample.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ │ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
│ └── macExample
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── MCTMsgListViewController.h
│ ├── MCTMsgListViewController.m
│ ├── MCTMsgViewController.h
│ ├── MCTMsgViewController.m
│ ├── en.lproj
│ └── MainMenu.xib
│ ├── macExample-Info.plist
│ ├── macExampleDebug.entitlements
│ └── main.mm
├── mailcore-schema.svg
├── mailcore2-ios.podspec
├── mailcore2-osx.podspec
├── resources
└── providers.json
├── scripts
├── build-ctemplate-ios.sh
├── build-ctemplate-osx.sh
├── build-libetpan-ios.sh
├── build-libetpan-osx.sh
├── build-mailcore2-framework-ios.sh
├── build-mailcore2-framework-osx.sh
├── build-mailcore2-ios-cocoapod.sh
├── build-mailcore2-ios.sh
├── build-mailcore2-osx-cocoapod.sh
├── build-mailcore2-osx.sh
├── build-mailcore2-xcframework-spm.sh
├── build-mailcore2-xcframework.sh
├── build-tidy-ios.sh
├── deps-versions.plist
├── gen-docs.sh
├── get-ios.sh
├── get-mac.sh
├── include.sh
│ ├── build-dep-cocoapod.sh
│ └── build-dep.sh
└── travis
│ ├── before-script.sh
│ └── script.sh
├── src
├── CMakeLists.txt
├── MailCore.h
├── async
│ ├── MCAsync.h
│ ├── imap
│ │ ├── MCAsyncIMAP.h
│ │ ├── MCIMAPAppendMessageOperation.cpp
│ │ ├── MCIMAPAppendMessageOperation.h
│ │ ├── MCIMAPAsyncConnection.cpp
│ │ ├── MCIMAPAsyncConnection.h
│ │ ├── MCIMAPAsyncSession.cpp
│ │ ├── MCIMAPAsyncSession.h
│ │ ├── MCIMAPCapabilityOperation.cpp
│ │ ├── MCIMAPCapabilityOperation.h
│ │ ├── MCIMAPCheckAccountOperation.cpp
│ │ ├── MCIMAPCheckAccountOperation.h
│ │ ├── MCIMAPConnectOperation.cpp
│ │ ├── MCIMAPConnectOperation.h
│ │ ├── MCIMAPCopyMessagesOperation.cpp
│ │ ├── MCIMAPCopyMessagesOperation.h
│ │ ├── MCIMAPCreateFolderOperation.cpp
│ │ ├── MCIMAPCreateFolderOperation.h
│ │ ├── MCIMAPCustomCommandOperation.cpp
│ │ ├── MCIMAPCustomCommandOperation.h
│ │ ├── MCIMAPDeleteFolderOperation.cpp
│ │ ├── MCIMAPDeleteFolderOperation.h
│ │ ├── MCIMAPDisconnectOperation.cpp
│ │ ├── MCIMAPDisconnectOperation.h
│ │ ├── MCIMAPExpungeOperation.cpp
│ │ ├── MCIMAPExpungeOperation.h
│ │ ├── MCIMAPFetchContentOperation.cpp
│ │ ├── MCIMAPFetchContentOperation.h
│ │ ├── MCIMAPFetchContentToFileOperation.cpp
│ │ ├── MCIMAPFetchContentToFileOperation.h
│ │ ├── MCIMAPFetchFoldersOperation.cpp
│ │ ├── MCIMAPFetchFoldersOperation.h
│ │ ├── MCIMAPFetchMessagesOperation.cpp
│ │ ├── MCIMAPFetchMessagesOperation.h
│ │ ├── MCIMAPFetchNamespaceOperation.cpp
│ │ ├── MCIMAPFetchNamespaceOperation.h
│ │ ├── MCIMAPFetchParsedContentOperation.cpp
│ │ ├── MCIMAPFetchParsedContentOperation.h
│ │ ├── MCIMAPFolderInfo.cpp
│ │ ├── MCIMAPFolderInfo.h
│ │ ├── MCIMAPFolderInfoOperation.cpp
│ │ ├── MCIMAPFolderInfoOperation.h
│ │ ├── MCIMAPFolderStatusOperation.cpp
│ │ ├── MCIMAPFolderStatusOperation.h
│ │ ├── MCIMAPIdentityOperation.cpp
│ │ ├── MCIMAPIdentityOperation.h
│ │ ├── MCIMAPIdleOperation.cpp
│ │ ├── MCIMAPIdleOperation.h
│ │ ├── MCIMAPMessageRenderingOperation.cpp
│ │ ├── MCIMAPMessageRenderingOperation.h
│ │ ├── MCIMAPMoveMessagesOperation.cpp
│ │ ├── MCIMAPMoveMessagesOperation.h
│ │ ├── MCIMAPMultiDisconnectOperation.cpp
│ │ ├── MCIMAPMultiDisconnectOperation.h
│ │ ├── MCIMAPNoopOperation.cpp
│ │ ├── MCIMAPNoopOperation.h
│ │ ├── MCIMAPOperation.cpp
│ │ ├── MCIMAPOperation.h
│ │ ├── MCIMAPOperationCallback.h
│ │ ├── MCIMAPQuotaOperation.cpp
│ │ ├── MCIMAPQuotaOperation.h
│ │ ├── MCIMAPRenameFolderOperation.cpp
│ │ ├── MCIMAPRenameFolderOperation.h
│ │ ├── MCIMAPSearchOperation.cpp
│ │ ├── MCIMAPSearchOperation.h
│ │ ├── MCIMAPStoreFlagsOperation.cpp
│ │ ├── MCIMAPStoreFlagsOperation.h
│ │ ├── MCIMAPStoreLabelsOperation.cpp
│ │ ├── MCIMAPStoreLabelsOperation.h
│ │ ├── MCIMAPSubscribeFolderOperation.cpp
│ │ └── MCIMAPSubscribeFolderOperation.h
│ ├── nntp
│ │ ├── MCAsyncNNTP.h
│ │ ├── MCNNTPAsyncSession.cpp
│ │ ├── MCNNTPAsyncSession.h
│ │ ├── MCNNTPCheckAccountOperation.cpp
│ │ ├── MCNNTPCheckAccountOperation.h
│ │ ├── MCNNTPDisconnectOperation.cpp
│ │ ├── MCNNTPDisconnectOperation.h
│ │ ├── MCNNTPFetchAllArticlesOperation.cpp
│ │ ├── MCNNTPFetchAllArticlesOperation.h
│ │ ├── MCNNTPFetchArticleOperation.cpp
│ │ ├── MCNNTPFetchArticleOperation.h
│ │ ├── MCNNTPFetchHeaderOperation.cpp
│ │ ├── MCNNTPFetchHeaderOperation.h
│ │ ├── MCNNTPFetchOverviewOperation.cpp
│ │ ├── MCNNTPFetchOverviewOperation.h
│ │ ├── MCNNTPFetchServerTimeOperation.cpp
│ │ ├── MCNNTPFetchServerTimeOperation.h
│ │ ├── MCNNTPListNewsgroupsOperation.cpp
│ │ ├── MCNNTPListNewsgroupsOperation.h
│ │ ├── MCNNTPOperation.cpp
│ │ ├── MCNNTPOperation.h
│ │ ├── MCNNTPOperationCallback.h
│ │ ├── MCNNTPPostOperation.cpp
│ │ └── MCNNTPPostOperation.h
│ ├── pop
│ │ ├── MCAsyncPOP.h
│ │ ├── MCPOPAsyncSession.cpp
│ │ ├── MCPOPAsyncSession.h
│ │ ├── MCPOPCheckAccountOperation.cpp
│ │ ├── MCPOPCheckAccountOperation.h
│ │ ├── MCPOPDeleteMessagesOperation.cpp
│ │ ├── MCPOPDeleteMessagesOperation.h
│ │ ├── MCPOPFetchHeaderOperation.cpp
│ │ ├── MCPOPFetchHeaderOperation.h
│ │ ├── MCPOPFetchMessageOperation.cpp
│ │ ├── MCPOPFetchMessageOperation.h
│ │ ├── MCPOPFetchMessagesOperation.cpp
│ │ ├── MCPOPFetchMessagesOperation.h
│ │ ├── MCPOPNoopOperation.cpp
│ │ ├── MCPOPNoopOperation.h
│ │ ├── MCPOPOperation.cpp
│ │ ├── MCPOPOperation.h
│ │ └── MCPOPOperationCallback.h
│ └── smtp
│ │ ├── MCAsyncSMTP.h
│ │ ├── MCSMTPAsyncSession.cpp
│ │ ├── MCSMTPAsyncSession.h
│ │ ├── MCSMTPCheckAccountOperation.cpp
│ │ ├── MCSMTPCheckAccountOperation.h
│ │ ├── MCSMTPDisconnectOperation.cpp
│ │ ├── MCSMTPDisconnectOperation.h
│ │ ├── MCSMTPLoginOperation.cpp
│ │ ├── MCSMTPLoginOperation.h
│ │ ├── MCSMTPNoopOperation.cpp
│ │ ├── MCSMTPNoopOperation.h
│ │ ├── MCSMTPOperation.cpp
│ │ ├── MCSMTPOperation.h
│ │ ├── MCSMTPOperationCallback.h
│ │ ├── MCSMTPSendWithDataOperation.cpp
│ │ └── MCSMTPSendWithDataOperation.h
├── cmake
│ ├── LibFindMacros.cmake
│ ├── async.cmake
│ ├── core.cmake
│ ├── gen-public-headers.sh
│ ├── objc.cmake
│ └── public-headers.cmake
├── core
│ ├── MCCore.h
│ ├── abstract
│ │ ├── MCAbstract.h
│ │ ├── MCAbstractMessage.cpp
│ │ ├── MCAbstractMessage.h
│ │ ├── MCAbstractMessagePart.cpp
│ │ ├── MCAbstractMessagePart.h
│ │ ├── MCAbstractMultipart.cpp
│ │ ├── MCAbstractMultipart.h
│ │ ├── MCAbstractPart.cpp
│ │ ├── MCAbstractPart.h
│ │ ├── MCAddress.cpp
│ │ ├── MCAddress.h
│ │ ├── MCErrorMessage.cpp
│ │ ├── MCErrorMessage.h
│ │ ├── MCMessageConstants.h
│ │ ├── MCMessageHeader.cpp
│ │ └── MCMessageHeader.h
│ ├── basetypes
│ │ ├── ConvertUTF.c
│ │ ├── ConvertUTF.h
│ │ ├── MCAndroid.cpp
│ │ ├── MCAndroid.h
│ │ ├── MCArray.cpp
│ │ ├── MCArray.h
│ │ ├── MCAssert.c
│ │ ├── MCAssert.h
│ │ ├── MCAutoreleasePool.cpp
│ │ ├── MCAutoreleasePool.h
│ │ ├── MCAutoreleasePoolMac.mm
│ │ ├── MCBase64.c
│ │ ├── MCBase64.h
│ │ ├── MCBaseTypes.h
│ │ ├── MCConnectionLogger.h
│ │ ├── MCConnectionLoggerUtils.cpp
│ │ ├── MCConnectionLoggerUtils.h
│ │ ├── MCData.cpp
│ │ ├── MCData.h
│ │ ├── MCDataDecoderUtils.cpp
│ │ ├── MCDataDecoderUtils.h
│ │ ├── MCDataMac.mm
│ │ ├── MCDataStreamDecoder.cpp
│ │ ├── MCDataStreamDecoder.h
│ │ ├── MCDefines.h
│ │ ├── MCHTMLCleaner.cpp
│ │ ├── MCHTMLCleaner.h
│ │ ├── MCHash.cpp
│ │ ├── MCHash.h
│ │ ├── MCHashMap.cpp
│ │ ├── MCHashMap.h
│ │ ├── MCICUTypes.h
│ │ ├── MCIndexSet.cpp
│ │ ├── MCIndexSet.h
│ │ ├── MCIterator.h
│ │ ├── MCJSON.cpp
│ │ ├── MCJSON.h
│ │ ├── MCJSONParser.cpp
│ │ ├── MCJSONParser.h
│ │ ├── MCLibetpan.cpp
│ │ ├── MCLibetpan.h
│ │ ├── MCLibetpanTypes.h
│ │ ├── MCLock.h
│ │ ├── MCLog.cpp
│ │ ├── MCLog.h
│ │ ├── MCMD5.cpp
│ │ ├── MCMD5.h
│ │ ├── MCMainThread.h
│ │ ├── MCMainThreadAndroid.cpp
│ │ ├── MCMainThreadAndroid.h
│ │ ├── MCMainThreadGTK.cpp
│ │ ├── MCMainThreadMac.mm
│ │ ├── MCMainThreadWin32.cpp
│ │ ├── MCNull.cpp
│ │ ├── MCNull.h
│ │ ├── MCObject.cpp
│ │ ├── MCObject.h
│ │ ├── MCObjectMac.mm
│ │ ├── MCOperation.cpp
│ │ ├── MCOperation.h
│ │ ├── MCOperationCallback.h
│ │ ├── MCOperationQueue.cpp
│ │ ├── MCOperationQueue.h
│ │ ├── MCOperationQueueCallback.h
│ │ ├── MCRange.cpp
│ │ ├── MCRange.h
│ │ ├── MCSet.cpp
│ │ ├── MCSet.h
│ │ ├── MCString.cpp
│ │ ├── MCString.h
│ │ ├── MCStringWin32.cpp
│ │ ├── MCUtils.h
│ │ ├── MCValue.cpp
│ │ ├── MCValue.h
│ │ ├── MCValuePrivate.h
│ │ ├── MCWin32.cpp
│ │ ├── MCWin32.h
│ │ └── icu-ucsdet
│ │ │ ├── cmemory.c
│ │ │ ├── csdetect.cpp
│ │ │ ├── csmatch.cpp
│ │ │ ├── csr2022.cpp
│ │ │ ├── csrecog.cpp
│ │ │ ├── csrmbcs.cpp
│ │ │ ├── csrsbcs.cpp
│ │ │ ├── csrucode.cpp
│ │ │ ├── csrutf8.cpp
│ │ │ ├── cstring.c
│ │ │ ├── include
│ │ │ ├── charstr.h
│ │ │ ├── cmemory.h
│ │ │ ├── csdetect.h
│ │ │ ├── csmatch.h
│ │ │ ├── csr2022.h
│ │ │ ├── csrecog.h
│ │ │ ├── csrmbcs.h
│ │ │ ├── csrsbcs.h
│ │ │ ├── csrucode.h
│ │ │ ├── csrutf8.h
│ │ │ ├── cstring.h
│ │ │ ├── cwchar.h
│ │ │ ├── inputext.h
│ │ │ ├── locmap.h
│ │ │ ├── mutex.h
│ │ │ ├── putilimp.h
│ │ │ ├── uarrsort.h
│ │ │ ├── uassert.h
│ │ │ ├── ucase.h
│ │ │ ├── ucln.h
│ │ │ ├── ucln_cmn.h
│ │ │ ├── ucln_imp.h
│ │ │ ├── ucln_in.h
│ │ │ ├── ucmndata.h
│ │ │ ├── udataswp.h
│ │ │ ├── uelement.h
│ │ │ ├── uenumimp.h
│ │ │ ├── uinvchar.h
│ │ │ ├── umapfile.h
│ │ │ ├── umutex.h
│ │ │ ├── unicode
│ │ │ │ ├── appendable.h
│ │ │ │ ├── bytestream.h
│ │ │ │ ├── localpointer.h
│ │ │ │ ├── platform.h
│ │ │ │ ├── ptypes.h
│ │ │ │ ├── putil.h
│ │ │ │ ├── rep.h
│ │ │ │ ├── std_string.h
│ │ │ │ ├── strenum.h
│ │ │ │ ├── stringpiece.h
│ │ │ │ ├── ucasemap.h
│ │ │ │ ├── uchar.h
│ │ │ │ ├── uclean.h
│ │ │ │ ├── ucnv.h
│ │ │ │ ├── ucnv_err.h
│ │ │ │ ├── uconfig.h
│ │ │ │ ├── ucsdet.h
│ │ │ │ ├── udata.h
│ │ │ │ ├── uenum.h
│ │ │ │ ├── uiter.h
│ │ │ │ ├── umachine.h
│ │ │ │ ├── unistr.h
│ │ │ │ ├── uobject.h
│ │ │ │ ├── urename.h
│ │ │ │ ├── uset.h
│ │ │ │ ├── ustring.h
│ │ │ │ ├── utf.h
│ │ │ │ ├── utf16.h
│ │ │ │ ├── utf8.h
│ │ │ │ ├── utf_old.h
│ │ │ │ ├── utrace.h
│ │ │ │ ├── utypes.h
│ │ │ │ ├── uvernum.h
│ │ │ │ └── uversion.h
│ │ │ ├── uposixdefs.h
│ │ │ ├── uset_imp.h
│ │ │ ├── ustr_imp.h
│ │ │ └── utracimp.h
│ │ │ ├── inputext.cpp
│ │ │ ├── uarrsort.c
│ │ │ ├── ucln_cmn.cpp
│ │ │ ├── ucln_in.cpp
│ │ │ ├── ucsdet.cpp
│ │ │ ├── udataswp.c
│ │ │ ├── uenum.c
│ │ │ ├── uinvchar.c
│ │ │ ├── umutex.cpp
│ │ │ ├── uobject.cpp
│ │ │ ├── ustring.cpp
│ │ │ └── utrace.c
│ ├── imap
│ │ ├── MCIMAP.h
│ │ ├── MCIMAPFolder.cpp
│ │ ├── MCIMAPFolder.h
│ │ ├── MCIMAPFolderStatus.cpp
│ │ ├── MCIMAPFolderStatus.h
│ │ ├── MCIMAPIdentity.cpp
│ │ ├── MCIMAPIdentity.h
│ │ ├── MCIMAPMessage.cpp
│ │ ├── MCIMAPMessage.h
│ │ ├── MCIMAPMessagePart.cpp
│ │ ├── MCIMAPMessagePart.h
│ │ ├── MCIMAPMultipart.cpp
│ │ ├── MCIMAPMultipart.h
│ │ ├── MCIMAPNamespace.cpp
│ │ ├── MCIMAPNamespace.h
│ │ ├── MCIMAPNamespaceItem.cpp
│ │ ├── MCIMAPNamespaceItem.h
│ │ ├── MCIMAPPart.cpp
│ │ ├── MCIMAPPart.h
│ │ ├── MCIMAPProgressCallback.h
│ │ ├── MCIMAPSearchExpression.cpp
│ │ ├── MCIMAPSearchExpression.h
│ │ ├── MCIMAPSession.cpp
│ │ ├── MCIMAPSession.h
│ │ ├── MCIMAPSyncResult.cpp
│ │ └── MCIMAPSyncResult.h
│ ├── nntp
│ │ ├── MCNNTP.h
│ │ ├── MCNNTPGroupInfo.cpp
│ │ ├── MCNNTPGroupInfo.h
│ │ ├── MCNNTPProgressCallback.h
│ │ ├── MCNNTPSession.cpp
│ │ └── MCNNTPSession.h
│ ├── pop
│ │ ├── MCPOP.h
│ │ ├── MCPOPMessageInfo.cpp
│ │ ├── MCPOPMessageInfo.h
│ │ ├── MCPOPProgressCallback.h
│ │ ├── MCPOPSession.cpp
│ │ └── MCPOPSession.h
│ ├── provider
│ │ ├── MCAccountValidator.cpp
│ │ ├── MCAccountValidator.h
│ │ ├── MCMXRecordResolverOperation.cpp
│ │ ├── MCMXRecordResolverOperation.h
│ │ ├── MCMailProvider.cpp
│ │ ├── MCMailProvider.h
│ │ ├── MCMailProvidersManager.cpp
│ │ ├── MCMailProvidersManager.h
│ │ ├── MCNetService.cpp
│ │ ├── MCNetService.h
│ │ └── MCProvider.h
│ ├── renderer
│ │ ├── MCAddressDisplay.cpp
│ │ ├── MCAddressDisplay.h
│ │ ├── MCDateFormatter.cpp
│ │ ├── MCDateFormatter.h
│ │ ├── MCHTMLBodyRendererTemplateCallback.cpp
│ │ ├── MCHTMLBodyRendererTemplateCallback.h
│ │ ├── MCHTMLRenderer.cpp
│ │ ├── MCHTMLRenderer.h
│ │ ├── MCHTMLRendererCallback.cpp
│ │ ├── MCHTMLRendererCallback.h
│ │ ├── MCHTMLRendererIMAPDataCallback.cpp
│ │ ├── MCHTMLRendererIMAPDataCallback.h
│ │ ├── MCRenderer.h
│ │ ├── MCSizeFormatter.cpp
│ │ └── MCSizeFormatter.h
│ ├── rfc822
│ │ ├── MCAttachment.cpp
│ │ ├── MCAttachment.h
│ │ ├── MCMessageBuilder.cpp
│ │ ├── MCMessageBuilder.h
│ │ ├── MCMessageParser.cpp
│ │ ├── MCMessageParser.h
│ │ ├── MCMessageParserMac.mm
│ │ ├── MCMessagePart.cpp
│ │ ├── MCMessagePart.h
│ │ ├── MCMultipart.cpp
│ │ ├── MCMultipart.h
│ │ └── MCRFC822.h
│ ├── security
│ │ ├── MCCertificateUtils.cpp
│ │ └── MCCertificateUtils.h
│ ├── smtp
│ │ ├── MCSMTP.h
│ │ ├── MCSMTPProgressCallback.h
│ │ ├── MCSMTPSession.cpp
│ │ └── MCSMTPSession.h
│ └── zip
│ │ ├── MCZip.cpp
│ │ ├── MCZip.h
│ │ ├── MCZipMac.mm
│ │ ├── MCZipPrivate.h
│ │ └── MiniZip
│ │ ├── Makefile
│ │ ├── MiniZip64_Changes.txt
│ │ ├── MiniZip64_info.txt
│ │ ├── crypt.h
│ │ ├── ioapi.c
│ │ ├── ioapi.h
│ │ ├── iowin32.c
│ │ ├── iowin32.h
│ │ ├── make_vms.com
│ │ ├── miniunz.c
│ │ ├── minizip.c
│ │ ├── mztools.c
│ │ ├── mztools.h
│ │ ├── unzip.c
│ │ ├── unzip.h
│ │ ├── zip.c
│ │ └── zip.h
├── java
│ ├── JavaConnectionLogger.cpp
│ ├── JavaConnectionLogger.h
│ ├── JavaHTMLRendererIMAPCallback.cpp
│ ├── JavaHTMLRendererIMAPCallback.h
│ ├── JavaHTMLRendererTemplateCallback.cpp
│ ├── JavaHTMLRendererTemplateCallback.h
│ ├── JavaHandle.cpp
│ ├── JavaHandle.h
│ ├── JavaIMAPOperationCallback.cpp
│ ├── JavaIMAPOperationCallback.h
│ ├── JavaOperationQueueCallback.cpp
│ ├── JavaOperationQueueCallback.h
│ ├── TypesUtils.cpp
│ ├── TypesUtils.h
│ ├── com
│ │ └── libmailcore
│ │ │ ├── .gitignore
│ │ │ ├── AbstractMessage.java
│ │ │ ├── AbstractMessagePart.java
│ │ │ ├── AbstractMultipart.java
│ │ │ ├── AbstractPart.java
│ │ │ ├── Address.java
│ │ │ ├── Attachment.java
│ │ │ ├── AuthType.java
│ │ │ ├── ConnectionLogType.java
│ │ │ ├── ConnectionLogger.java
│ │ │ ├── ConnectionType.java
│ │ │ ├── Encoding.java
│ │ │ ├── ErrorCode.java
│ │ │ ├── HTMLRendererIMAPCallback.java
│ │ │ ├── HTMLRendererTemplateCallback.java
│ │ │ ├── HTMLRendererTemplateCallbackUtils.java
│ │ │ ├── IMAPAppendMessageOperation.java
│ │ │ ├── IMAPCapability.java
│ │ │ ├── IMAPCapabilityOperation.java
│ │ │ ├── IMAPCheckAccountOperation.java
│ │ │ ├── IMAPConnectOperation.java
│ │ │ ├── IMAPCopyMessagesOperation.java
│ │ │ ├── IMAPCreateFolderOperation.java
│ │ │ ├── IMAPDeleteFolderOperation.java
│ │ │ ├── IMAPExpungeOperation.java
│ │ │ ├── IMAPFetchContentOperation.java
│ │ │ ├── IMAPFetchFoldersOperation.java
│ │ │ ├── IMAPFetchMessagesOperation.java
│ │ │ ├── IMAPFetchNamespaceOperation.java
│ │ │ ├── IMAPFetchParsedContentOperation.java
│ │ │ ├── IMAPFolder.java
│ │ │ ├── IMAPFolderFlags.java
│ │ │ ├── IMAPFolderInfo.java
│ │ │ ├── IMAPFolderInfoOperation.java
│ │ │ ├── IMAPFolderStatus.java
│ │ │ ├── IMAPFolderStatusOperation.java
│ │ │ ├── IMAPIdentity.java
│ │ │ ├── IMAPIdentityOperation.java
│ │ │ ├── IMAPIdleOperation.java
│ │ │ ├── IMAPMessage.java
│ │ │ ├── IMAPMessagePart.java
│ │ │ ├── IMAPMessageRenderingOperation.java
│ │ │ ├── IMAPMessagesRequestKind.java
│ │ │ ├── IMAPMoveMessagesOperation.java
│ │ │ ├── IMAPMultipart.java
│ │ │ ├── IMAPNamespace.java
│ │ │ ├── IMAPNamespaceItem.java
│ │ │ ├── IMAPNoopOperation.java
│ │ │ ├── IMAPOperation.java
│ │ │ ├── IMAPOperationItemProgressListener.java
│ │ │ ├── IMAPOperationProgressListener.java
│ │ │ ├── IMAPPart.java
│ │ │ ├── IMAPQuotaOperation.java
│ │ │ ├── IMAPRenameFolderOperation.java
│ │ │ ├── IMAPSearchExpression.java
│ │ │ ├── IMAPSearchKind.java
│ │ │ ├── IMAPSearchOperation.java
│ │ │ ├── IMAPSession.java
│ │ │ ├── IMAPStoreFlagsOperation.java
│ │ │ ├── IMAPStoreFlagsRequestKind.java
│ │ │ ├── IMAPStoreLabelsOperation.java
│ │ │ ├── IMAPSubscribeFolderOperation.java
│ │ │ ├── IndexSet.java
│ │ │ ├── Log.java
│ │ │ ├── MailException.java
│ │ │ ├── MainThreadUtils.java
│ │ │ ├── MessageBuilder.java
│ │ │ ├── MessageFlag.java
│ │ │ ├── MessageHeader.java
│ │ │ ├── MessageParser.java
│ │ │ ├── MessagePart.java
│ │ │ ├── Multipart.java
│ │ │ ├── NNTPCheckAccountOperation.java
│ │ │ ├── NNTPDisconnectOperation.java
│ │ │ ├── NNTPFetchAllArticlesOperation.java
│ │ │ ├── NNTPFetchArticleOperation.java
│ │ │ ├── NNTPFetchHeaderOperation.java
│ │ │ ├── NNTPFetchOverviewOperation.java
│ │ │ ├── NNTPFetchServerTimeOperation.java
│ │ │ ├── NNTPGroupInfo.java
│ │ │ ├── NNTPListNewsgroupsOperation.java
│ │ │ ├── NNTPOperation.java
│ │ │ ├── NNTPSession.java
│ │ │ ├── NativeObject.java
│ │ │ ├── Operation.java
│ │ │ ├── OperationCallback.java
│ │ │ ├── OperationQueueListener.java
│ │ │ ├── POPCheckAccountOperation.java
│ │ │ ├── POPDeleteMessagesOperation.java
│ │ │ ├── POPFetchHeaderOperation.java
│ │ │ ├── POPFetchMessageOperation.java
│ │ │ ├── POPFetchMessagesOperation.java
│ │ │ ├── POPMessageInfo.java
│ │ │ ├── POPNoopOperation.java
│ │ │ ├── POPOperation.java
│ │ │ ├── POPSession.java
│ │ │ ├── PartType.java
│ │ │ ├── Range.java
│ │ │ ├── SMTPCheckAccountOperation.java
│ │ │ ├── SMTPLoginOperation.java
│ │ │ ├── SMTPNoopOperation.java
│ │ │ ├── SMTPOperation.java
│ │ │ ├── SMTPSendWithDataOperation.java
│ │ │ └── SMTPSession.java
│ ├── generate-headers.sh
│ └── native
│ │ ├── com_libmailcore_AbstractMessage.cpp
│ │ ├── com_libmailcore_AbstractMessage.h
│ │ ├── com_libmailcore_AbstractMessagePart.cpp
│ │ ├── com_libmailcore_AbstractMessagePart.h
│ │ ├── com_libmailcore_AbstractMultipart.cpp
│ │ ├── com_libmailcore_AbstractMultipart.h
│ │ ├── com_libmailcore_AbstractPart.cpp
│ │ ├── com_libmailcore_AbstractPart.h
│ │ ├── com_libmailcore_Address.cpp
│ │ ├── com_libmailcore_Address.h
│ │ ├── com_libmailcore_Attachment.cpp
│ │ ├── com_libmailcore_Attachment.h
│ │ ├── com_libmailcore_AuthType.h
│ │ ├── com_libmailcore_ConnectionLogType.h
│ │ ├── com_libmailcore_ConnectionLogger.h
│ │ ├── com_libmailcore_ConnectionType.h
│ │ ├── com_libmailcore_Encoding.h
│ │ ├── com_libmailcore_ErrorCode.h
│ │ ├── com_libmailcore_HTMLRendererIMAPCallback.h
│ │ ├── com_libmailcore_HTMLRendererTemplateCallback.h
│ │ ├── com_libmailcore_HTMLRendererTemplateCallbackUtils.cpp
│ │ ├── com_libmailcore_HTMLRendererTemplateCallbackUtils.h
│ │ ├── com_libmailcore_IMAPAppendMessageOperation.cpp
│ │ ├── com_libmailcore_IMAPAppendMessageOperation.h
│ │ ├── com_libmailcore_IMAPCapability.h
│ │ ├── com_libmailcore_IMAPCapabilityOperation.cpp
│ │ ├── com_libmailcore_IMAPCapabilityOperation.h
│ │ ├── com_libmailcore_IMAPCheckAccountOperation.cpp
│ │ ├── com_libmailcore_IMAPCheckAccountOperation.h
│ │ ├── com_libmailcore_IMAPConnectOperation.cpp
│ │ ├── com_libmailcore_IMAPConnectOperation.h
│ │ ├── com_libmailcore_IMAPCopyMessagesOperation.cpp
│ │ ├── com_libmailcore_IMAPCopyMessagesOperation.h
│ │ ├── com_libmailcore_IMAPCreateFolderOperation.cpp
│ │ ├── com_libmailcore_IMAPCreateFolderOperation.h
│ │ ├── com_libmailcore_IMAPDeleteFolderOperation.cpp
│ │ ├── com_libmailcore_IMAPDeleteFolderOperation.h
│ │ ├── com_libmailcore_IMAPExpungeOperation.cpp
│ │ ├── com_libmailcore_IMAPExpungeOperation.h
│ │ ├── com_libmailcore_IMAPFetchContentOperation.cpp
│ │ ├── com_libmailcore_IMAPFetchContentOperation.h
│ │ ├── com_libmailcore_IMAPFetchFoldersOperation.cpp
│ │ ├── com_libmailcore_IMAPFetchFoldersOperation.h
│ │ ├── com_libmailcore_IMAPFetchMessagesOperation.cpp
│ │ ├── com_libmailcore_IMAPFetchMessagesOperation.h
│ │ ├── com_libmailcore_IMAPFetchNamespaceOperation.cpp
│ │ ├── com_libmailcore_IMAPFetchNamespaceOperation.h
│ │ ├── com_libmailcore_IMAPFetchParsedContentOperation.cpp
│ │ ├── com_libmailcore_IMAPFetchParsedContentOperation.h
│ │ ├── com_libmailcore_IMAPFolder.cpp
│ │ ├── com_libmailcore_IMAPFolder.h
│ │ ├── com_libmailcore_IMAPFolderFlags.h
│ │ ├── com_libmailcore_IMAPFolderInfo.cpp
│ │ ├── com_libmailcore_IMAPFolderInfo.h
│ │ ├── com_libmailcore_IMAPFolderInfoOperation.cpp
│ │ ├── com_libmailcore_IMAPFolderInfoOperation.h
│ │ ├── com_libmailcore_IMAPFolderStatus.cpp
│ │ ├── com_libmailcore_IMAPFolderStatus.h
│ │ ├── com_libmailcore_IMAPFolderStatusOperation.cpp
│ │ ├── com_libmailcore_IMAPFolderStatusOperation.h
│ │ ├── com_libmailcore_IMAPIdentity.cpp
│ │ ├── com_libmailcore_IMAPIdentity.h
│ │ ├── com_libmailcore_IMAPIdentityOperation.cpp
│ │ ├── com_libmailcore_IMAPIdentityOperation.h
│ │ ├── com_libmailcore_IMAPIdleOperation.cpp
│ │ ├── com_libmailcore_IMAPIdleOperation.h
│ │ ├── com_libmailcore_IMAPMessage.cpp
│ │ ├── com_libmailcore_IMAPMessage.h
│ │ ├── com_libmailcore_IMAPMessagePart.cpp
│ │ ├── com_libmailcore_IMAPMessagePart.h
│ │ ├── com_libmailcore_IMAPMessageRenderingOperation.cpp
│ │ ├── com_libmailcore_IMAPMessageRenderingOperation.h
│ │ ├── com_libmailcore_IMAPMessagesRequestKind.h
│ │ ├── com_libmailcore_IMAPMoveMessagesOperation.cpp
│ │ ├── com_libmailcore_IMAPMoveMessagesOperation.h
│ │ ├── com_libmailcore_IMAPMultipart.cpp
│ │ ├── com_libmailcore_IMAPMultipart.h
│ │ ├── com_libmailcore_IMAPNamespace.cpp
│ │ ├── com_libmailcore_IMAPNamespace.h
│ │ ├── com_libmailcore_IMAPNamespaceItem.cpp
│ │ ├── com_libmailcore_IMAPNamespaceItem.h
│ │ ├── com_libmailcore_IMAPNoopOperation.cpp
│ │ ├── com_libmailcore_IMAPNoopOperation.h
│ │ ├── com_libmailcore_IMAPOperation.cpp
│ │ ├── com_libmailcore_IMAPOperation.h
│ │ ├── com_libmailcore_IMAPOperationItemProgressListener.h
│ │ ├── com_libmailcore_IMAPOperationProgressListener.h
│ │ ├── com_libmailcore_IMAPPart.cpp
│ │ ├── com_libmailcore_IMAPPart.h
│ │ ├── com_libmailcore_IMAPQuotaOperation.cpp
│ │ ├── com_libmailcore_IMAPQuotaOperation.h
│ │ ├── com_libmailcore_IMAPRenameFolderOperation.cpp
│ │ ├── com_libmailcore_IMAPRenameFolderOperation.h
│ │ ├── com_libmailcore_IMAPSearchExpression.cpp
│ │ ├── com_libmailcore_IMAPSearchExpression.h
│ │ ├── com_libmailcore_IMAPSearchKind.h
│ │ ├── com_libmailcore_IMAPSearchOperation.cpp
│ │ ├── com_libmailcore_IMAPSearchOperation.h
│ │ ├── com_libmailcore_IMAPSession.cpp
│ │ ├── com_libmailcore_IMAPSession.h
│ │ ├── com_libmailcore_IMAPStoreFlagsOperation.cpp
│ │ ├── com_libmailcore_IMAPStoreFlagsOperation.h
│ │ ├── com_libmailcore_IMAPStoreFlagsRequestKind.h
│ │ ├── com_libmailcore_IMAPStoreLabelsOperation.cpp
│ │ ├── com_libmailcore_IMAPStoreLabelsOperation.h
│ │ ├── com_libmailcore_IMAPSubscribeFolderOperation.cpp
│ │ ├── com_libmailcore_IMAPSubscribeFolderOperation.h
│ │ ├── com_libmailcore_IndexSet.cpp
│ │ ├── com_libmailcore_IndexSet.h
│ │ ├── com_libmailcore_Log.cpp
│ │ ├── com_libmailcore_Log.h
│ │ ├── com_libmailcore_MailException.cpp
│ │ ├── com_libmailcore_MailException.h
│ │ ├── com_libmailcore_MainThreadUtils.h
│ │ ├── com_libmailcore_MessageBuilder.cpp
│ │ ├── com_libmailcore_MessageBuilder.h
│ │ ├── com_libmailcore_MessageFlag.h
│ │ ├── com_libmailcore_MessageHeader.cpp
│ │ ├── com_libmailcore_MessageHeader.h
│ │ ├── com_libmailcore_MessageParser.cpp
│ │ ├── com_libmailcore_MessageParser.h
│ │ ├── com_libmailcore_MessagePart.cpp
│ │ ├── com_libmailcore_MessagePart.h
│ │ ├── com_libmailcore_Multipart.cpp
│ │ ├── com_libmailcore_Multipart.h
│ │ ├── com_libmailcore_NNTPCheckAccountOperation.cpp
│ │ ├── com_libmailcore_NNTPCheckAccountOperation.h
│ │ ├── com_libmailcore_NNTPDisconnectOperation.cpp
│ │ ├── com_libmailcore_NNTPDisconnectOperation.h
│ │ ├── com_libmailcore_NNTPFetchAllArticlesOperation.cpp
│ │ ├── com_libmailcore_NNTPFetchAllArticlesOperation.h
│ │ ├── com_libmailcore_NNTPFetchArticleOperation.cpp
│ │ ├── com_libmailcore_NNTPFetchArticleOperation.h
│ │ ├── com_libmailcore_NNTPFetchHeaderOperation.cpp
│ │ ├── com_libmailcore_NNTPFetchHeaderOperation.h
│ │ ├── com_libmailcore_NNTPFetchOverviewOperation.cpp
│ │ ├── com_libmailcore_NNTPFetchOverviewOperation.h
│ │ ├── com_libmailcore_NNTPFetchServerTimeOperation.cpp
│ │ ├── com_libmailcore_NNTPFetchServerTimeOperation.h
│ │ ├── com_libmailcore_NNTPGroupInfo.cpp
│ │ ├── com_libmailcore_NNTPGroupInfo.h
│ │ ├── com_libmailcore_NNTPListNewsgroupsOperation.cpp
│ │ ├── com_libmailcore_NNTPListNewsgroupsOperation.h
│ │ ├── com_libmailcore_NNTPOperation.cpp
│ │ ├── com_libmailcore_NNTPOperation.h
│ │ ├── com_libmailcore_NNTPSession.cpp
│ │ ├── com_libmailcore_NNTPSession.h
│ │ ├── com_libmailcore_NativeObject.cpp
│ │ ├── com_libmailcore_NativeObject.h
│ │ ├── com_libmailcore_Operation.cpp
│ │ ├── com_libmailcore_Operation.h
│ │ ├── com_libmailcore_OperationCallback.h
│ │ ├── com_libmailcore_OperationQueueListener.h
│ │ ├── com_libmailcore_POPCheckAccountOperation.cpp
│ │ ├── com_libmailcore_POPCheckAccountOperation.h
│ │ ├── com_libmailcore_POPDeleteMessagesOperation.cpp
│ │ ├── com_libmailcore_POPDeleteMessagesOperation.h
│ │ ├── com_libmailcore_POPFetchHeaderOperation.cpp
│ │ ├── com_libmailcore_POPFetchHeaderOperation.h
│ │ ├── com_libmailcore_POPFetchMessageOperation.cpp
│ │ ├── com_libmailcore_POPFetchMessageOperation.h
│ │ ├── com_libmailcore_POPFetchMessagesOperation.cpp
│ │ ├── com_libmailcore_POPFetchMessagesOperation.h
│ │ ├── com_libmailcore_POPMessageInfo.cpp
│ │ ├── com_libmailcore_POPMessageInfo.h
│ │ ├── com_libmailcore_POPNoopOperation.cpp
│ │ ├── com_libmailcore_POPNoopOperation.h
│ │ ├── com_libmailcore_POPOperation.cpp
│ │ ├── com_libmailcore_POPOperation.h
│ │ ├── com_libmailcore_POPSession.cpp
│ │ ├── com_libmailcore_POPSession.h
│ │ ├── com_libmailcore_PartType.h
│ │ ├── com_libmailcore_Range.cpp
│ │ ├── com_libmailcore_Range.h
│ │ ├── com_libmailcore_SMTPCheckAccountOperation.cpp
│ │ ├── com_libmailcore_SMTPCheckAccountOperation.h
│ │ ├── com_libmailcore_SMTPLoginOperation.cpp
│ │ ├── com_libmailcore_SMTPLoginOperation.h
│ │ ├── com_libmailcore_SMTPNoopOperation.cpp
│ │ ├── com_libmailcore_SMTPNoopOperation.h
│ │ ├── com_libmailcore_SMTPOperation.cpp
│ │ ├── com_libmailcore_SMTPOperation.h
│ │ ├── com_libmailcore_SMTPSendWithDataOperation.cpp
│ │ ├── com_libmailcore_SMTPSendWithDataOperation.h
│ │ ├── com_libmailcore_SMTPSession.cpp
│ │ └── com_libmailcore_SMTPSession.h
├── objc
│ ├── MCObjC.h
│ ├── abstract
│ │ ├── MCOAbstract.h
│ │ ├── MCOAbstractMessage.h
│ │ ├── MCOAbstractMessage.mm
│ │ ├── MCOAbstractMessagePart.h
│ │ ├── MCOAbstractMessagePart.mm
│ │ ├── MCOAbstractMessageRendererCallback.h
│ │ ├── MCOAbstractMessageRendererCallback.mm
│ │ ├── MCOAbstractMultipart.h
│ │ ├── MCOAbstractMultipart.mm
│ │ ├── MCOAbstractPart.h
│ │ ├── MCOAbstractPart.mm
│ │ ├── MCOAddress+Private.h
│ │ ├── MCOAddress.h
│ │ ├── MCOAddress.mm
│ │ ├── MCOConstants.h
│ │ ├── MCOHTMLRendererDelegate.h
│ │ ├── MCOHTMLRendererIMAPDelegate.h
│ │ ├── MCOMessageHeader+Private.h
│ │ ├── MCOMessageHeader.h
│ │ └── MCOMessageHeader.mm
│ ├── imap
│ │ ├── MCOIMAP.h
│ │ ├── MCOIMAPAppendMessageOperation.h
│ │ ├── MCOIMAPAppendMessageOperation.mm
│ │ ├── MCOIMAPBaseOperation+Private.h
│ │ ├── MCOIMAPBaseOperation.h
│ │ ├── MCOIMAPBaseOperation.mm
│ │ ├── MCOIMAPCapabilityOperation.h
│ │ ├── MCOIMAPCapabilityOperation.mm
│ │ ├── MCOIMAPCheckAccountOperation.h
│ │ ├── MCOIMAPCheckAccountOperation.mm
│ │ ├── MCOIMAPCopyMessagesOperation.h
│ │ ├── MCOIMAPCopyMessagesOperation.mm
│ │ ├── MCOIMAPCustomCommandOperation.h
│ │ ├── MCOIMAPCustomCommandOperation.mm
│ │ ├── MCOIMAPFetchContentOperation.h
│ │ ├── MCOIMAPFetchContentOperation.mm
│ │ ├── MCOIMAPFetchContentToFileOperation.h
│ │ ├── MCOIMAPFetchContentToFileOperation.mm
│ │ ├── MCOIMAPFetchFoldersOperation.h
│ │ ├── MCOIMAPFetchFoldersOperation.mm
│ │ ├── MCOIMAPFetchMessagesOperation.h
│ │ ├── MCOIMAPFetchMessagesOperation.mm
│ │ ├── MCOIMAPFetchNamespaceOperation.h
│ │ ├── MCOIMAPFetchNamespaceOperation.mm
│ │ ├── MCOIMAPFetchParsedContentOperation.h
│ │ ├── MCOIMAPFetchParsedContentOperation.mm
│ │ ├── MCOIMAPFolder.h
│ │ ├── MCOIMAPFolder.mm
│ │ ├── MCOIMAPFolderInfo.h
│ │ ├── MCOIMAPFolderInfo.mm
│ │ ├── MCOIMAPFolderInfoOperation.h
│ │ ├── MCOIMAPFolderInfoOperation.mm
│ │ ├── MCOIMAPFolderStatus.h
│ │ ├── MCOIMAPFolderStatus.mm
│ │ ├── MCOIMAPFolderStatusOperation.h
│ │ ├── MCOIMAPFolderStatusOperation.mm
│ │ ├── MCOIMAPIdentity.h
│ │ ├── MCOIMAPIdentity.mm
│ │ ├── MCOIMAPIdentityOperation.h
│ │ ├── MCOIMAPIdentityOperation.mm
│ │ ├── MCOIMAPIdleOperation.h
│ │ ├── MCOIMAPIdleOperation.mm
│ │ ├── MCOIMAPMessage.h
│ │ ├── MCOIMAPMessage.mm
│ │ ├── MCOIMAPMessagePart.h
│ │ ├── MCOIMAPMessagePart.mm
│ │ ├── MCOIMAPMessageRenderingOperation.h
│ │ ├── MCOIMAPMessageRenderingOperation.mm
│ │ ├── MCOIMAPMoveMessagesOperation.h
│ │ ├── MCOIMAPMoveMessagesOperation.mm
│ │ ├── MCOIMAPMultiDisconnectOperation.h
│ │ ├── MCOIMAPMultiDisconnectOperation.mm
│ │ ├── MCOIMAPMultipart.h
│ │ ├── MCOIMAPMultipart.mm
│ │ ├── MCOIMAPNamespace.h
│ │ ├── MCOIMAPNamespace.mm
│ │ ├── MCOIMAPNamespaceItem.h
│ │ ├── MCOIMAPNamespaceItem.mm
│ │ ├── MCOIMAPNoopOperation.h
│ │ ├── MCOIMAPNoopOperation.mm
│ │ ├── MCOIMAPOperation.h
│ │ ├── MCOIMAPOperation.mm
│ │ ├── MCOIMAPPart.h
│ │ ├── MCOIMAPPart.mm
│ │ ├── MCOIMAPQuotaOperation.h
│ │ ├── MCOIMAPQuotaOperation.mm
│ │ ├── MCOIMAPSearchExpression.h
│ │ ├── MCOIMAPSearchExpression.mm
│ │ ├── MCOIMAPSearchOperation.h
│ │ ├── MCOIMAPSearchOperation.mm
│ │ ├── MCOIMAPSession.h
│ │ └── MCOIMAPSession.mm
│ ├── nntp
│ │ ├── MCONNTP.h
│ │ ├── MCONNTPDisconnectOperation.h
│ │ ├── MCONNTPDisconnectOperation.mm
│ │ ├── MCONNTPFetchAllArticlesOperation.h
│ │ ├── MCONNTPFetchAllArticlesOperation.mm
│ │ ├── MCONNTPFetchArticleOperation.h
│ │ ├── MCONNTPFetchArticleOperation.mm
│ │ ├── MCONNTPFetchHeaderOperation.h
│ │ ├── MCONNTPFetchHeaderOperation.mm
│ │ ├── MCONNTPFetchOverviewOperation.h
│ │ ├── MCONNTPFetchOverviewOperation.mm
│ │ ├── MCONNTPFetchServerTimeOperation.h
│ │ ├── MCONNTPFetchServerTimeOperation.mm
│ │ ├── MCONNTPGroupInfo.h
│ │ ├── MCONNTPGroupInfo.mm
│ │ ├── MCONNTPListNewsgroupsOperation.h
│ │ ├── MCONNTPListNewsgroupsOperation.mm
│ │ ├── MCONNTPOperation+Private.h
│ │ ├── MCONNTPOperation.h
│ │ ├── MCONNTPOperation.mm
│ │ ├── MCONNTPPostOperation.h
│ │ ├── MCONNTPPostOperation.mm
│ │ ├── MCONNTPSession.h
│ │ └── MCONNTPSession.mm
│ ├── pop
│ │ ├── MCOPOP.h
│ │ ├── MCOPOPFetchHeaderOperation.h
│ │ ├── MCOPOPFetchHeaderOperation.mm
│ │ ├── MCOPOPFetchMessageOperation.h
│ │ ├── MCOPOPFetchMessageOperation.mm
│ │ ├── MCOPOPFetchMessagesOperation.h
│ │ ├── MCOPOPFetchMessagesOperation.mm
│ │ ├── MCOPOPMessageInfo.h
│ │ ├── MCOPOPMessageInfo.mm
│ │ ├── MCOPOPNoopOperation.h
│ │ ├── MCOPOPNoopOperation.mm
│ │ ├── MCOPOPOperation+Private.h
│ │ ├── MCOPOPOperation.h
│ │ ├── MCOPOPOperation.mm
│ │ ├── MCOPOPSession.h
│ │ └── MCOPOPSession.mm
│ ├── provider
│ │ ├── MCOAccountValidator.h
│ │ ├── MCOAccountValidator.mm
│ │ ├── MCOMailProvider.h
│ │ ├── MCOMailProvider.mm
│ │ ├── MCOMailProvidersManager.h
│ │ ├── MCOMailProvidersManager.mm
│ │ ├── MCONetService.h
│ │ ├── MCONetService.mm
│ │ └── MCOProvider.h
│ ├── rfc822
│ │ ├── MCOAttachment.h
│ │ ├── MCOAttachment.mm
│ │ ├── MCOMessageBuilder.h
│ │ ├── MCOMessageBuilder.mm
│ │ ├── MCOMessageParser.h
│ │ ├── MCOMessageParser.mm
│ │ ├── MCOMessagePart.h
│ │ ├── MCOMessagePart.mm
│ │ ├── MCOMultipart.h
│ │ ├── MCOMultipart.mm
│ │ └── MCORFC822.h
│ ├── smtp
│ │ ├── MCOSMTP.h
│ │ ├── MCOSMTPLoginOperation.h
│ │ ├── MCOSMTPLoginOperation.mm
│ │ ├── MCOSMTPNoopOperation.h
│ │ ├── MCOSMTPNoopOperation.mm
│ │ ├── MCOSMTPOperation+Private.h
│ │ ├── MCOSMTPOperation.h
│ │ ├── MCOSMTPOperation.mm
│ │ ├── MCOSMTPSendOperation.h
│ │ ├── MCOSMTPSendOperation.mm
│ │ ├── MCOSMTPSession.h
│ │ └── MCOSMTPSession.mm
│ └── utils
│ │ ├── MCOIndexSet+Private.h
│ │ ├── MCOIndexSet.h
│ │ ├── MCOIndexSet.mm
│ │ ├── MCOObjectWrapper.h
│ │ ├── MCOObjectWrapper.mm
│ │ ├── MCOOperation+Private.h
│ │ ├── MCOOperation.h
│ │ ├── MCOOperation.mm
│ │ ├── MCORange.h
│ │ ├── MCORange.mm
│ │ ├── MCOUtils.h
│ │ ├── NSArray+MCO.h
│ │ ├── NSArray+MCO.mm
│ │ ├── NSData+MCO.h
│ │ ├── NSData+MCO.mm
│ │ ├── NSDictionary+MCO.h
│ │ ├── NSDictionary+MCO.mm
│ │ ├── NSError+MCO.h
│ │ ├── NSError+MCO.mm
│ │ ├── NSIndexSet+MCO.h
│ │ ├── NSIndexSet+MCO.m
│ │ ├── NSObject+MCO.h
│ │ ├── NSObject+MCO.mm
│ │ ├── NSSet+MCO.h
│ │ ├── NSSet+MCO.mm
│ │ ├── NSString+MCO.h
│ │ ├── NSString+MCO.mm
│ │ ├── NSValue+MCO.h
│ │ └── NSValue+MCO.mm
└── ui
│ ├── common
│ ├── MCOCIDURLProtocol.h
│ └── MCOCIDURLProtocol.mm
│ ├── ios
│ ├── MCOMessageView.h
│ ├── MCOMessageView.mm
│ ├── MCOMessageViewWebDelegate.h
│ ├── MCOMessageViewWebDelegate.mm
│ └── inject.js
│ └── mac
│ ├── MCOMessageView.h
│ ├── MCOMessageView.mm
│ ├── MCOMessageViewWebDelegate.h
│ ├── MCOMessageViewWebDelegate.mm
│ └── inject.js
├── tests-ios
├── AppDelegate.h
├── AppDelegate.mm
├── main.m
└── tests-ios-Info.plist
├── tests
├── CMakeLists.txt
├── main.cpp
├── test-all-mac.h
├── test-all-mac.mm
├── test-all.cpp
└── test-all.h
└── unittest
├── CMakeLists.txt
├── Info.plist
├── data
├── builder
│ ├── input
│ │ ├── photo.jpg
│ │ └── photo2.jpg
│ └── output
│ │ ├── builder1.eml
│ │ ├── builder2.eml
│ │ └── builder3.eml
├── charset-detection
│ └── input
│ │ ├── big5.txt
│ │ ├── gb18030.txt
│ │ ├── shift_jis.txt
│ │ └── utf-8.txt
├── parser
│ ├── input
│ │ ├── mbox
│ │ │ ├── jwz
│ │ │ │ ├── 1
│ │ │ │ ├── 2
│ │ │ │ ├── 3
│ │ │ │ ├── 4
│ │ │ │ ├── 5
│ │ │ │ ├── 6
│ │ │ │ ├── 7
│ │ │ │ ├── 8
│ │ │ │ ├── 9
│ │ │ │ ├── 10
│ │ │ │ ├── 11
│ │ │ │ ├── 12
│ │ │ │ ├── 13
│ │ │ │ ├── 14
│ │ │ │ ├── 15
│ │ │ │ ├── 16
│ │ │ │ ├── 17
│ │ │ │ ├── 18
│ │ │ │ ├── 19
│ │ │ │ ├── 20
│ │ │ │ ├── 21
│ │ │ │ ├── 22
│ │ │ │ ├── 23
│ │ │ │ ├── 24
│ │ │ │ ├── 25
│ │ │ │ ├── 26
│ │ │ │ ├── 27
│ │ │ │ ├── 28
│ │ │ │ ├── 29
│ │ │ │ ├── 30
│ │ │ │ ├── 31
│ │ │ │ ├── 32
│ │ │ │ ├── 33
│ │ │ │ ├── 34
│ │ │ │ ├── 35
│ │ │ │ ├── 36
│ │ │ │ ├── 37
│ │ │ │ ├── 38
│ │ │ │ ├── 39
│ │ │ │ ├── 40
│ │ │ │ ├── 41
│ │ │ │ ├── 42
│ │ │ │ ├── 43
│ │ │ │ ├── 44
│ │ │ │ ├── 45
│ │ │ │ ├── 46
│ │ │ │ ├── 47
│ │ │ │ ├── 48
│ │ │ │ ├── 49
│ │ │ │ ├── 50
│ │ │ │ ├── 51
│ │ │ │ ├── 52
│ │ │ │ ├── 53
│ │ │ │ ├── 54
│ │ │ │ ├── 55
│ │ │ │ ├── 56
│ │ │ │ ├── 57
│ │ │ │ ├── 58
│ │ │ │ ├── 59
│ │ │ │ ├── 60
│ │ │ │ ├── 61
│ │ │ │ ├── 62
│ │ │ │ ├── 63
│ │ │ │ ├── 64
│ │ │ │ ├── 65
│ │ │ │ ├── 66
│ │ │ │ ├── 67
│ │ │ │ ├── 68
│ │ │ │ ├── 69
│ │ │ │ ├── 70
│ │ │ │ ├── 71
│ │ │ │ ├── 72
│ │ │ │ ├── 73
│ │ │ │ ├── 74
│ │ │ │ ├── 75
│ │ │ │ ├── 76
│ │ │ │ ├── 77
│ │ │ │ ├── 78
│ │ │ │ ├── 79
│ │ │ │ ├── 80
│ │ │ │ ├── 81
│ │ │ │ ├── 82
│ │ │ │ ├── 83
│ │ │ │ ├── 84
│ │ │ │ ├── 85
│ │ │ │ ├── 86
│ │ │ │ ├── 87
│ │ │ │ ├── 88
│ │ │ │ ├── 89
│ │ │ │ ├── 90
│ │ │ │ ├── 91
│ │ │ │ ├── 92
│ │ │ │ ├── 93
│ │ │ │ ├── 94
│ │ │ │ ├── 95
│ │ │ │ ├── 96
│ │ │ │ ├── 97
│ │ │ │ ├── 98
│ │ │ │ ├── 99
│ │ │ │ ├── 100
│ │ │ │ ├── 101
│ │ │ │ ├── 102
│ │ │ │ ├── 103
│ │ │ │ ├── 104
│ │ │ │ ├── 105
│ │ │ │ ├── 106
│ │ │ │ ├── 107
│ │ │ │ ├── 108
│ │ │ │ ├── 109
│ │ │ │ ├── 110
│ │ │ │ ├── 111
│ │ │ │ ├── 112
│ │ │ │ ├── 113
│ │ │ │ ├── 114
│ │ │ │ ├── 115
│ │ │ │ ├── 116
│ │ │ │ ├── 117
│ │ │ │ ├── 118
│ │ │ │ ├── 119
│ │ │ │ ├── 120
│ │ │ │ ├── 121
│ │ │ │ ├── 122
│ │ │ │ ├── 123
│ │ │ │ ├── 124
│ │ │ │ ├── 125
│ │ │ │ ├── 126
│ │ │ │ ├── 127
│ │ │ │ ├── 128
│ │ │ │ ├── 129
│ │ │ │ ├── 130
│ │ │ │ ├── 131
│ │ │ │ ├── 132
│ │ │ │ ├── 133
│ │ │ │ ├── 134
│ │ │ │ ├── 135
│ │ │ │ ├── 136
│ │ │ │ ├── 137
│ │ │ │ ├── 138
│ │ │ │ ├── 139
│ │ │ │ ├── 140
│ │ │ │ ├── 141
│ │ │ │ ├── 142
│ │ │ │ ├── 143
│ │ │ │ ├── 144
│ │ │ │ ├── 145
│ │ │ │ ├── 146
│ │ │ │ ├── 147
│ │ │ │ ├── 148
│ │ │ │ ├── 149
│ │ │ │ ├── 150
│ │ │ │ ├── 151
│ │ │ │ └── 152
│ │ │ └── simple
│ │ │ │ ├── 1
│ │ │ │ ├── 2
│ │ │ │ └── 3
│ │ ├── messages
│ │ │ ├── empty-multipart.txt
│ │ │ ├── headers.txt
│ │ │ ├── multipart-digest.txt
│ │ │ └── rfc2060.txt
│ │ └── partial
│ │ │ ├── message-partial.1.msg.txt
│ │ │ └── message-partial.2.msg.txt
│ └── output
│ │ ├── mbox
│ │ ├── jwz
│ │ │ ├── 1
│ │ │ ├── 2
│ │ │ ├── 3
│ │ │ ├── 4
│ │ │ ├── 5
│ │ │ ├── 6
│ │ │ ├── 7
│ │ │ ├── 8
│ │ │ ├── 9
│ │ │ ├── 10
│ │ │ ├── 11
│ │ │ ├── 12
│ │ │ ├── 13
│ │ │ ├── 14
│ │ │ ├── 15
│ │ │ ├── 16
│ │ │ ├── 17
│ │ │ ├── 18
│ │ │ ├── 19
│ │ │ ├── 20
│ │ │ ├── 21
│ │ │ ├── 22
│ │ │ ├── 23
│ │ │ ├── 24
│ │ │ ├── 25
│ │ │ ├── 26
│ │ │ ├── 27
│ │ │ ├── 28
│ │ │ ├── 29
│ │ │ ├── 30
│ │ │ ├── 31
│ │ │ ├── 32
│ │ │ ├── 33
│ │ │ ├── 34
│ │ │ ├── 35
│ │ │ ├── 36
│ │ │ ├── 37
│ │ │ ├── 38
│ │ │ ├── 39
│ │ │ ├── 40
│ │ │ ├── 41
│ │ │ ├── 42
│ │ │ ├── 43
│ │ │ ├── 44
│ │ │ ├── 45
│ │ │ ├── 46
│ │ │ ├── 47
│ │ │ ├── 48
│ │ │ ├── 49
│ │ │ ├── 50
│ │ │ ├── 51
│ │ │ ├── 52
│ │ │ ├── 53
│ │ │ ├── 54
│ │ │ ├── 55
│ │ │ ├── 56
│ │ │ ├── 57
│ │ │ ├── 58
│ │ │ ├── 59
│ │ │ ├── 60
│ │ │ ├── 61
│ │ │ ├── 62
│ │ │ ├── 63
│ │ │ ├── 64
│ │ │ ├── 65
│ │ │ ├── 66
│ │ │ ├── 67
│ │ │ ├── 68
│ │ │ ├── 69
│ │ │ ├── 70
│ │ │ ├── 71
│ │ │ ├── 72
│ │ │ ├── 73
│ │ │ ├── 74
│ │ │ ├── 75
│ │ │ ├── 76
│ │ │ ├── 77
│ │ │ ├── 78
│ │ │ ├── 79
│ │ │ ├── 80
│ │ │ ├── 81
│ │ │ ├── 82
│ │ │ ├── 83
│ │ │ ├── 84
│ │ │ ├── 85
│ │ │ ├── 86
│ │ │ ├── 87
│ │ │ ├── 88
│ │ │ ├── 89
│ │ │ ├── 90
│ │ │ ├── 91
│ │ │ ├── 92
│ │ │ ├── 93
│ │ │ ├── 94
│ │ │ ├── 95
│ │ │ ├── 96
│ │ │ ├── 97
│ │ │ ├── 98
│ │ │ ├── 99
│ │ │ ├── 100
│ │ │ ├── 101
│ │ │ ├── 102
│ │ │ ├── 103
│ │ │ ├── 104
│ │ │ ├── 105
│ │ │ ├── 106
│ │ │ ├── 107
│ │ │ ├── 108
│ │ │ ├── 109
│ │ │ ├── 110
│ │ │ ├── 111
│ │ │ ├── 112
│ │ │ ├── 113
│ │ │ ├── 114
│ │ │ ├── 115
│ │ │ ├── 116
│ │ │ ├── 117
│ │ │ ├── 118
│ │ │ ├── 119
│ │ │ ├── 120
│ │ │ ├── 121
│ │ │ ├── 122
│ │ │ ├── 123
│ │ │ ├── 124
│ │ │ ├── 125
│ │ │ ├── 126
│ │ │ ├── 127
│ │ │ ├── 128
│ │ │ ├── 129
│ │ │ ├── 130
│ │ │ ├── 131
│ │ │ ├── 132
│ │ │ ├── 133
│ │ │ ├── 134
│ │ │ ├── 135
│ │ │ ├── 136
│ │ │ ├── 137
│ │ │ ├── 138
│ │ │ ├── 139
│ │ │ ├── 140
│ │ │ ├── 141
│ │ │ ├── 142
│ │ │ ├── 143
│ │ │ ├── 144
│ │ │ ├── 145
│ │ │ ├── 146
│ │ │ ├── 147
│ │ │ ├── 148
│ │ │ ├── 149
│ │ │ ├── 150
│ │ │ ├── 151
│ │ │ └── 152
│ │ └── simple
│ │ │ ├── 1
│ │ │ ├── 2
│ │ │ └── 3
│ │ ├── messages
│ │ ├── empty-multipart.txt
│ │ ├── headers.txt
│ │ ├── multipart-digest.txt
│ │ └── rfc2060.txt
│ │ └── partial
│ │ ├── message-partial.1.msg.txt
│ │ └── message-partial.2.msg.txt
└── summary
│ ├── input
│ ├── 1015-windows-1252.eml
│ ├── 1021-chinese.eml
│ ├── 1433-utf-8.eml
│ ├── 1460-no-charset.eml
│ ├── 1640-no-charset.eml
│ ├── 1641-no-charset.eml
│ ├── 1798-korean.eml
│ ├── 1808-winmail-dat.eml
│ ├── 1944-rendering.eml
│ ├── 1970-anchor.eml
│ ├── 2113-formatting.eml
│ ├── 2135-korean.eml
│ ├── 2195-greek.eml
│ ├── 2458-encoding.eml
│ ├── 2518-encoding.eml
│ ├── 2765-korean.eml
│ ├── 2977-chinese.eml
│ ├── 3424-encoding.eml
│ ├── 4489-to-field-chinese.eml
│ ├── 4850-russian.eml
│ ├── 4851-chinese.eml
│ ├── 4925-japanese.eml
│ ├── 5229-cyrillic-asian.eml
│ ├── 5230-thai-chinese.eml
│ ├── 5231-emoji.eml
│ ├── 6094-japanese-1.eml
│ ├── 6094-japanese-2.eml
│ ├── 6144-russian.eml
│ ├── 950-japanese-chinese-3.eml
│ ├── 965-email-rendering.eml
│ ├── 989-encoding-1.eml
│ ├── 989-encoding-2.eml
│ ├── 989-encoding-3.eml
│ ├── 989-encoding-4.eml
│ ├── 989-encoding-5.eml
│ ├── 989-encoding-6.eml
│ ├── 989-encoding-7.eml
│ ├── 989-encoding-8.eml
│ ├── broken-utf8.eml
│ ├── emoji1.eml
│ └── gh-965-utf8.eml
│ └── output
│ ├── 1015-windows-1252.txt
│ ├── 1021-chinese.txt
│ ├── 1433-utf-8.txt
│ ├── 1460-no-charset.txt
│ ├── 1640-no-charset.txt
│ ├── 1641-no-charset.txt
│ ├── 1798-korean.txt
│ ├── 1808-winmail-dat.txt
│ ├── 1944-rendering.txt
│ ├── 1970-anchor.txt
│ ├── 2113-formatting.txt
│ ├── 2135-korean.txt
│ ├── 2195-greek.txt
│ ├── 2458-encoding.txt
│ ├── 2518-encoding.txt
│ ├── 2765-korean.txt
│ ├── 2977-chinese.txt
│ ├── 3424-encoding.txt
│ ├── 4489-to-field-chinese.txt
│ ├── 4850-russian.txt
│ ├── 4851-chinese.txt
│ ├── 4925-japanese.txt
│ ├── 5229-cyrillic-asian.txt
│ ├── 5230-thai-chinese.txt
│ ├── 5231-emoji.txt
│ ├── 6094-japanese-1.txt
│ ├── 6094-japanese-2.txt
│ ├── 6144-russian.txt
│ ├── 950-japanese-chinese-1.txt
│ ├── 950-japanese-chinese-2.txt
│ ├── 950-japanese-chinese-3.txt
│ ├── 965-email-rendering.txt
│ ├── 989-encoding-1.txt
│ ├── 989-encoding-2.txt
│ ├── 989-encoding-3.txt
│ ├── 989-encoding-4.txt
│ ├── 989-encoding-5.txt
│ ├── 989-encoding-6.txt
│ ├── 989-encoding-7.txt
│ ├── 989-encoding-8.txt
│ ├── broken-utf8.txt
│ ├── emoji1.txt
│ └── gh-965-utf8.txt
├── unittest.cpp
└── unittest.mm
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "deps/ctemplate"]
2 | path = deps/ctemplate
3 | url = https://github.com/dinhviethoa/ctemplate
4 | [submodule "deps/libetpan"]
5 | path = deps/libetpan
6 | url = https://github.com/dinhviethoa/libetpan.git
7 | [submodule "deps/tidy-html5"]
8 | path = deps/tidy-html5
9 | url = https://github.com/dinhvh/tidy-html5.git
10 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | os:
2 | - osx
3 | - linux
4 | language: c++
5 | before_script: scripts/travis/before-script.sh
6 | script: scripts/travis/script.sh
7 |
--------------------------------------------------------------------------------
/Package.swift:
--------------------------------------------------------------------------------
1 | // swift-tools-version:5.3
2 | // The swift-tools-version declares the minimum version of Swift required to build this package.
3 |
4 | import PackageDescription
5 |
6 | let package = Package(
7 | name: "MailCore2",
8 | platforms: [
9 | .iOS(.v9), .macOS(.v10_10)
10 | ],
11 | products: [
12 | .library(
13 | name: "MailCore2",
14 | targets: ["MailCore2"]),
15 | ],
16 | targets: [
17 | .binaryTarget(name: "MailCore2",
18 | url: "https://github.com/mattmaddux/mailcore2/raw/master/bin/MailCore2-2020-09-24.xcframework.zip",
19 | checksum: "c3479968c758094165fb0b4de5ca7dd9f8aafac423388c51406c447f69a1b853")
20 | ]
21 | )
22 |
--------------------------------------------------------------------------------
/TODO.md:
--------------------------------------------------------------------------------
1 | - Linux build using cmake
2 | - Windows build using Visual studio (might be provided by cmake)
3 | - NodeJS plugin
4 |
--------------------------------------------------------------------------------
/bin/MailCore2-2020-09-17.xcframework.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/bin/MailCore2-2020-09-17.xcframework.zip
--------------------------------------------------------------------------------
/bin/MailCore2-2020-09-24.xcframework.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/bin/MailCore2-2020-09-24.xcframework.zip
--------------------------------------------------------------------------------
/build-android/.gitignore:
--------------------------------------------------------------------------------
1 | third-party
2 | include
3 | mailcore2-android-*.zip
4 | cmake-build
5 |
--------------------------------------------------------------------------------
/build-android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/build-linux/README.md:
--------------------------------------------------------------------------------
1 | ### Build on Linux ###
2 |
3 | - Install the following debian packages:
4 |
5 | ```
6 | sudo apt-get install libctemplate-dev libicu-dev libsasl2-dev libtidy-dev \
7 | uuid-dev libxml2-dev libglib2.0-dev autoconf automake libtool
8 | ```
9 |
10 | - Grab and compile the latest of libetpan: https://github.com/dinhviethoa/libetpan
11 |
12 | ```
13 | mkdir ~/libetpan
14 | cd ~/libetpan
15 | git clone --depth=1 https://github.com/dinhviethoa/libetpan
16 | cd libetpan
17 | ./autogen.sh
18 | make >/dev/null
19 | sudo make install prefix=/usr >/dev/null
20 | ```
21 |
22 | - Compile MailCore 2:
23 |
24 | ```
25 | cd ~/mailcore2
26 | mkdir build
27 | cd build
28 | cmake ..
29 | make
30 | ```
31 |
--------------------------------------------------------------------------------
/build-mac/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/build-mac/Default-568h@2x.png
--------------------------------------------------------------------------------
/build-mac/MCOFramework.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOFramework.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 4/2/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import
10 |
--------------------------------------------------------------------------------
/build-mac/MCOFramework.mm:
--------------------------------------------------------------------------------
1 | //
2 | // MCOFramework.m
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 4/2/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import "MCOFramework.h"
10 |
--------------------------------------------------------------------------------
/build-mac/mailcore2.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/build-mac/mailcore2.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
12 |
13 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/build-mac/mailcore2.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/build-windows/build_headers.bat:
--------------------------------------------------------------------------------
1 | @mkdir include
2 | @mkdir include\MailCore
3 | @for /F "delims=" %%a in (build_headers.list) do @copy "..\%%a" include\MailCore
4 | @echo "done" >_headers_depends
5 |
--------------------------------------------------------------------------------
/build-windows/gen-public-headers.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | files=""
4 |
5 | list_headers()
6 | {
7 | local filename="$1"
8 |
9 | if echo $files | grep "\[$filename\]" >/dev/null ; then
10 | return
11 | fi
12 |
13 | local path="`find . -name $filename`"
14 | echo $path | sed 's/^.\//src\//' | sed 's/\//\\/g'
15 | files="$files[$filename]"
16 | subfilenames="`grep '#include $/\1/'`"
17 | subfilenames+=" "
18 | subfilenames+="`grep '#import $/\1/'`"
19 | for include_dir in $subfilenames ; do
20 | list_headers $include_dir
21 | done
22 | }
23 |
24 | cd ../src
25 | list_headers MailCore.h
26 |
--------------------------------------------------------------------------------
/build-windows/mailcore2/test/test.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | false
5 |
6 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/java/com/libmailcore/androidexample/MessageAdapter.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore.androidexample;
2 |
3 | import com.libmailcore.IMAPMessage;
4 |
5 | /**
6 | * Created by hoa on 1/9/15.
7 | */
8 | public class MessageAdapter {
9 | IMAPMessage message;
10 |
11 | public MessageAdapter(IMAPMessage msg) {
12 | message = msg;
13 | }
14 |
15 | public String toString() {
16 | return message.header().from().displayName() + " " + message.header().extractedSubject();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/example/android/AndroidExample/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/example/android/AndroidExample/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/example/android/AndroidExample/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/example/android/AndroidExample/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/layout/activity_messageview_detail.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/layout/activity_messageview_list.xml:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/layout/fragment_messageview_detail.xml:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AndroidExample
5 | MessagesViews
6 | MessageView Detail
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.0.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/example/android/AndroidExample/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/example/android/AndroidExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 |
--------------------------------------------------------------------------------
/example/android/AndroidExample/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // iOS UI Test
4 | //
5 | // Created by Jonathan Willing on 4/8/13.
6 | // Copyright (c) 2013 AppJon. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/example/ios/iOS UI Test/iOS UI Test/Default-568h@2x.png
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/example/ios/iOS UI Test/iOS UI Test/Default.png
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/example/ios/iOS UI Test/iOS UI Test/Default@2x.png
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/MCTTableViewCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCTTableViewCell.h
3 | // iOS UI Test
4 | //
5 | // Created by Paul Young on 14/07/2013.
6 | // Copyright (c) 2013 AppJon. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface MCTTableViewCell : UITableViewCell
13 |
14 | @property (nonatomic, strong) MCOIMAPMessageRenderingOperation * messageRenderingOperation;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/MCTTableViewCell.m:
--------------------------------------------------------------------------------
1 | //
2 | // MCTTableViewCell.m
3 | // iOS UI Test
4 | //
5 | // Created by Paul Young on 14/07/2013.
6 | // Copyright (c) 2013 AppJon. All rights reserved.
7 | //
8 |
9 | #import "MCTTableViewCell.h"
10 |
11 | @implementation MCTTableViewCell
12 |
13 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
14 | {
15 | self = [super initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier];
16 | return self;
17 | }
18 |
19 | - (void)prepareForReuse
20 | {
21 | [self.messageRenderingOperation cancel];
22 | self.detailTextLabel.text = @" ";
23 | }
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/MasterViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // MasterViewController.h
3 | // iOS UI Test
4 | //
5 | // Created by Jonathan Willing on 4/8/13.
6 | // Copyright (c) 2013 AppJon. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "SettingsViewController.h"
11 |
12 | @interface MasterViewController : UITableViewController
13 |
14 | - (IBAction)showSettingsViewController:(id)sender;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/iOS UI Test-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'iOS UI Test' target in the 'iOS UI Test' project
3 | //
4 |
5 | #import
6 |
7 | #ifndef __IPHONE_5_0
8 | #warning "This project uses features only available in iOS SDK 5.0 and later."
9 | #endif
10 |
11 | #ifdef __OBJC__
12 | #import
13 | #import
14 | #endif
15 |
--------------------------------------------------------------------------------
/example/ios/iOS UI Test/iOS UI Test/main.mm:
--------------------------------------------------------------------------------
1 | //
2 | // main.mm
3 | // iOS UI Test
4 | //
5 | // Created by Jonathan Willing on 4/8/13.
6 | // Copyright (c) 2013 AppJon. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "AppDelegate.h"
12 | #import
13 |
14 | int main(int argc, char *argv[]) {
15 | MCLogEnabled = 1;
16 | return UIApplicationMain(argc, argv, nil, @"AppDelegate");
17 | }
18 |
--------------------------------------------------------------------------------
/example/mac/macExample/macExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/mac/macExample/macExample/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // testUI
4 | //
5 | // Created by DINH Viêt Hoà on 1/19/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class MCTMsgListViewController;
12 |
13 | @interface AppDelegate : NSObject {
14 | IBOutlet MCTMsgListViewController * _msgListViewController;
15 | IBOutlet NSWindow * _accountWindow;
16 | }
17 |
18 | - (IBAction) accountLogin:(id)sender;
19 | - (IBAction) accountCancel:(id)sender;
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/example/mac/macExample/macExample/macExampleDebug.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/example/mac/macExample/macExample/main.mm:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // testUI
4 | //
5 | // Created by DINH Viêt Hoà on 1/19/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import
10 | #include
11 |
12 | int main(int argc, char *argv[])
13 | {
14 | //mailcore::setICUDataDirectory(MCSTR("/usr/local/share/icu"));
15 | return NSApplicationMain(argc, (const char **)argv);
16 | }
17 |
--------------------------------------------------------------------------------
/scripts/build-ctemplate-ios.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep.sh"
8 |
9 | url="https://github.com/dinhviethoa/ctemplate"
10 | rev=2c6ff9ae7d0ae1b973e57dd19859b95282776194
11 | name="ctemplate-ios"
12 | xcode_target="ctemplate-ios"
13 | xcode_project="ctemplate.xcodeproj"
14 | library="libctemplate-ios.a"
15 | embedded_deps=""
16 |
17 | build_git_ios
18 |
--------------------------------------------------------------------------------
/scripts/build-ctemplate-osx.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep.sh"
8 |
9 | url="https://github.com/dinhviethoa/ctemplate"
10 | rev=b50f83f26ce3658889db1ae41b6a2d5874a3a10f
11 | name="ctemplate-osx"
12 | xcode_target="ctemplate"
13 | xcode_project="ctemplate.xcodeproj"
14 | library="libctemplate.a"
15 | embedded_deps=""
16 |
17 | build_git_osx
18 |
--------------------------------------------------------------------------------
/scripts/build-libetpan-ios.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep.sh"
8 |
9 | url="https://github.com/dinhviethoa/libetpan.git"
10 | rev=5164ba2ebd3c7cbc7a9230aad32bdf8e24e207de
11 | name="libetpan-ios"
12 | xcode_target="libetpan ios"
13 | xcode_project="libetpan.xcodeproj"
14 | library="libetpan-ios.a"
15 | embedded_deps="libsasl-ios"
16 |
17 | build_git_ios
18 |
--------------------------------------------------------------------------------
/scripts/build-libetpan-osx.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep.sh"
8 |
9 | url="https://github.com/dinhviethoa/libetpan.git"
10 | rev=5164ba2ebd3c7cbc7a9230aad32bdf8e24e207de
11 | name="libetpan-osx"
12 | xcode_target="static libetpan"
13 | xcode_project="libetpan.xcodeproj"
14 | library="libetpan.a"
15 | embedded_deps=""
16 |
17 | build_git_osx
18 |
--------------------------------------------------------------------------------
/scripts/build-mailcore2-framework-ios.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep.sh"
8 |
9 | url="https://github.com/mailcore/mailcore2.git"
10 | rev=897b4a23d27984b06dd2caf441268ef4b6ad9d67
11 | name="mailcore2-framework-ios"
12 | xcode_target="mailcore ios"
13 | xcode_project="mailcore2.xcodeproj"
14 | library="MailCore.framework"
15 | embedded_deps="ctemplate-ios libetpan-ios tidy-html5-ios"
16 |
17 | build_git_ios
18 |
--------------------------------------------------------------------------------
/scripts/build-mailcore2-framework-osx.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep.sh"
8 |
9 | url="https://github.com/mailcore/mailcore2.git"
10 | rev=897b4a23d27984b06dd2caf441268ef4b6ad9d67
11 | name="mailcore2-framework-osx"
12 | xcode_target="mailcore osx"
13 | xcode_project="mailcore2.xcodeproj"
14 | library="MailCore.framework"
15 | embedded_deps="ctemplate-osx libetpan-osx"
16 |
17 | build_git_osx
18 |
--------------------------------------------------------------------------------
/scripts/build-mailcore2-ios-cocoapod.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep-cocoapod.sh"
8 |
9 | name="mailcore2-ios"
10 | xcode_target="static mailcore2 ios"
11 | xcode_project="mailcore2.xcodeproj"
12 | library="libMailCore-ios.a"
13 | embedded_deps="ctemplate-ios libetpan-ios libsasl-ios tidy-html5-ios"
14 | build_mailcore=1
15 | TOPDIR="$scriptpath/.."
16 |
17 | build_git_ios
18 |
--------------------------------------------------------------------------------
/scripts/build-mailcore2-ios.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep.sh"
8 |
9 | url="https://github.com/mailcore/mailcore2.git"
10 | rev=897b4a23d27984b06dd2caf441268ef4b6ad9d67
11 | name="mailcore2-ios"
12 | xcode_target="static mailcore2 ios"
13 | xcode_project="mailcore2.xcodeproj"
14 | library="libMailCore-ios.a"
15 | embedded_deps="ctemplate-ios libetpan-ios libsasl-ios tidy-html5-ios"
16 | build_mailcore=1
17 |
18 | build_git_ios
--------------------------------------------------------------------------------
/scripts/build-mailcore2-osx-cocoapod.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep-cocoapod.sh"
8 |
9 | name="mailcore2-osx"
10 | xcode_target="static mailcore2 osx"
11 | xcode_project="mailcore2.xcodeproj"
12 | library="libMailCore.a"
13 | embedded_deps="ctemplate-osx libetpan-osx"
14 | build_mailcore=1
15 | TOPDIR="$scriptpath/.."
16 |
17 | build_git_osx
18 |
--------------------------------------------------------------------------------
/scripts/build-mailcore2-osx.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep.sh"
8 |
9 | url="https://github.com/mailcore/mailcore2.git"
10 | rev=897b4a23d27984b06dd2caf441268ef4b6ad9d67
11 | name="mailcore2-osx"
12 | xcode_target="static mailcore2 osx"
13 | xcode_project="mailcore2.xcodeproj"
14 | library="libMailCore.a"
15 | embedded_deps="ctemplate-osx libetpan-osx"
16 | build_mailcore=1
17 |
18 | build_git_osx
--------------------------------------------------------------------------------
/scripts/build-tidy-ios.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pushd "`dirname "$0"`" > /dev/null
4 | scriptpath="`pwd`"
5 | popd > /dev/null
6 |
7 | . "$scriptpath/include.sh/build-dep.sh"
8 |
9 | url="https://github.com/dinhviethoa/tidy-html5"
10 | rev=71aaa8669c664447743bba73e07d70c291548dca
11 | name="tidy-html5-ios"
12 | xcode_target="tidy"
13 | xcode_project="Tidy.xcodeproj"
14 | library="libtidy.a"
15 | embedded_deps=""
16 |
17 | build_git_ios
18 |
--------------------------------------------------------------------------------
/scripts/gen-docs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if test -f prepare.sh ; then
4 | cd ..
5 | fi
6 |
7 | appledoc \
8 | --no-create-docset \
9 | --no-install-docset \
10 | --project-name MailCore2 \
11 | --project-company "MailCore2" \
12 | --company-id com.mailcore2 \
13 | --logformat xcode \
14 | --ignore "*.m" \
15 | --no-warn-invalid-crossref \
16 | --no-repeat-first-par \
17 | --output appledoc \
18 | src
19 |
--------------------------------------------------------------------------------
/src/MailCore.h:
--------------------------------------------------------------------------------
1 | //
2 | // mailcore.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/10/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MAILCORE_H
10 |
11 | #define MAILCORE_MAILCORE_H
12 |
13 | #include
14 | #include
15 | #include
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/async/MCAsync.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCAsync.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/11/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCASYNC_H
10 |
11 | #define MAILCORE_MCASYNC_H
12 |
13 | #include
14 | #include
15 | #include
16 | #include
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/src/async/imap/MCIMAPConnectOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCIMAPConnectOperation.cc
3 | // mailcore2
4 | //
5 | // Created by Ryan Walklin on 6/09/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCIMAPConnectOperation.h"
10 |
11 | #include "MCIMAPAsyncConnection.h"
12 | #include "MCIMAPSession.h"
13 |
14 | using namespace mailcore;
15 |
16 | void IMAPConnectOperation::main()
17 | {
18 | ErrorCode error;
19 | session()->session()->connectIfNeeded(&error);
20 | setError(error);
21 | }
22 |
--------------------------------------------------------------------------------
/src/async/imap/MCIMAPConnectOperation.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCIMAPConnectOperation.h
3 | // mailcore2
4 | //
5 | // Created by Ryan Walklin on 6/09/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCIMAPCONNECTOPERATION_H
10 |
11 | #define MAILCORE_MCIMAPCONNECTOPERATION_H
12 |
13 | #include
14 |
15 | #ifdef __cplusplus
16 |
17 | namespace mailcore {
18 |
19 | class MAILCORE_EXPORT IMAPConnectOperation : public IMAPOperation {
20 | public: // subclass behavior
21 | virtual void main();
22 | };
23 |
24 | }
25 |
26 | #endif
27 |
28 | #endif /* defined(__MAILCORE_MCIMAPCONNECTOPERATION_H_) */
29 |
--------------------------------------------------------------------------------
/src/async/imap/MCIMAPCreateFolderOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCIMAPCreateFolderOperation.cpp
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/12/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCIMAPCreateFolderOperation.h"
10 |
11 | #include "MCIMAPSession.h"
12 | #include "MCIMAPAsyncConnection.h"
13 |
14 | using namespace mailcore;
15 |
16 | IMAPCreateFolderOperation::IMAPCreateFolderOperation()
17 | {
18 | }
19 |
20 | IMAPCreateFolderOperation::~IMAPCreateFolderOperation()
21 | {
22 | }
23 |
24 | void IMAPCreateFolderOperation::main()
25 | {
26 | ErrorCode error;
27 | session()->session()->createFolder(folder(), &error);
28 | setError(error);
29 | }
30 |
--------------------------------------------------------------------------------
/src/async/imap/MCIMAPDeleteFolderOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCIMAPDeleteFolderOperation.cc
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/12/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCIMAPDeleteFolderOperation.h"
10 |
11 | #include "MCIMAPSession.h"
12 | #include "MCIMAPAsyncConnection.h"
13 |
14 | using namespace mailcore;
15 |
16 | IMAPDeleteFolderOperation::IMAPDeleteFolderOperation()
17 | {
18 | }
19 |
20 | IMAPDeleteFolderOperation::~IMAPDeleteFolderOperation()
21 | {
22 | }
23 |
24 | void IMAPDeleteFolderOperation::main()
25 | {
26 | ErrorCode error;
27 | session()->session()->deleteFolder(folder(), &error);
28 | setError(error);
29 | }
30 |
--------------------------------------------------------------------------------
/src/async/imap/MCIMAPDisconnectOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCIMAPDisconnectOperation.cc
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 6/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCIMAPDisconnectOperation.h"
10 |
11 | #include "MCIMAPAsyncConnection.h"
12 | #include "MCIMAPSession.h"
13 |
14 | using namespace mailcore;
15 |
16 | IMAPDisconnectOperation::IMAPDisconnectOperation()
17 | {
18 | }
19 |
20 | IMAPDisconnectOperation::~IMAPDisconnectOperation()
21 | {
22 | }
23 |
24 | void IMAPDisconnectOperation::main()
25 | {
26 | session()->session()->disconnect();
27 | setError(ErrorNone);
28 | }
29 |
--------------------------------------------------------------------------------
/src/async/imap/MCIMAPExpungeOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCIMAPExpungeOperation.cc
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/12/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCIMAPExpungeOperation.h"
10 |
11 | #include "MCIMAPSession.h"
12 | #include "MCIMAPAsyncConnection.h"
13 |
14 | using namespace mailcore;
15 |
16 | IMAPExpungeOperation::IMAPExpungeOperation()
17 | {
18 | }
19 |
20 | IMAPExpungeOperation::~IMAPExpungeOperation()
21 | {
22 | }
23 |
24 | void IMAPExpungeOperation::main()
25 | {
26 | ErrorCode error;
27 | session()->session()->expunge(folder(), &error);
28 | setError(error);
29 | }
30 |
--------------------------------------------------------------------------------
/src/async/imap/MCIMAPNoopOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCIMAPNoopOperation.cpp
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 9/24/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCIMAPNoopOperation.h"
10 |
11 | #include "MCIMAPSession.h"
12 | #include "MCIMAPAsyncConnection.h"
13 |
14 | using namespace mailcore;
15 |
16 | IMAPNoopOperation::IMAPNoopOperation()
17 | {
18 | }
19 |
20 | IMAPNoopOperation::~IMAPNoopOperation()
21 | {
22 | }
23 |
24 | void IMAPNoopOperation::main()
25 | {
26 | ErrorCode error;
27 | session()->session()->noop(&error);
28 | setError(error);
29 | }
30 |
--------------------------------------------------------------------------------
/src/async/imap/MCIMAPNoopOperation.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCIMAPNoopOperation.h
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 9/24/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCIMAPNOOPOPERATION_H
10 |
11 | #define MAILCORE_MCIMAPNOOPOPERATION_H
12 |
13 | #include
14 |
15 | #ifdef __cplusplus
16 |
17 | namespace mailcore {
18 |
19 | class MAILCORE_EXPORT IMAPNoopOperation : public IMAPOperation {
20 | public:
21 | IMAPNoopOperation();
22 | virtual ~IMAPNoopOperation();
23 |
24 | public: // subclass behavior
25 | virtual void main();
26 | };
27 |
28 | }
29 |
30 | #endif
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/src/async/nntp/MCNNTPCheckAccountOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCNNTPCheckAccountOperation.cpp
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 8/13/14.
6 | // Copyright (c) 2014 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCNNTPCheckAccountOperation.h"
10 |
11 | #include "MCNNTPAsyncSession.h"
12 | #include "MCNNTPSession.h"
13 |
14 | using namespace mailcore;
15 |
16 | NNTPCheckAccountOperation::NNTPCheckAccountOperation()
17 | {
18 | }
19 |
20 | NNTPCheckAccountOperation::~NNTPCheckAccountOperation()
21 | {
22 | }
23 |
24 | void NNTPCheckAccountOperation::main()
25 | {
26 | ErrorCode error;
27 |
28 | session()->session()->checkAccount(&error);
29 | setError(error);
30 | }
31 |
--------------------------------------------------------------------------------
/src/async/nntp/MCNNTPDisconnectOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCNNTPDisconnectOperation.cpp
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 8/13/14.
6 | // Copyright (c) 2014 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCNNTPDisconnectOperation.h"
10 |
11 | #include "MCNNTPAsyncSession.h"
12 | #include "MCNNTPSession.h"
13 |
14 | using namespace mailcore;
15 |
16 | NNTPDisconnectOperation::NNTPDisconnectOperation()
17 | {
18 | }
19 |
20 | NNTPDisconnectOperation::~NNTPDisconnectOperation()
21 | {
22 | }
23 |
24 | void NNTPDisconnectOperation::main()
25 | {
26 | ErrorCode error;
27 |
28 | session()->session()->checkAccount(&error);
29 | setError(error);
30 | }
31 |
--------------------------------------------------------------------------------
/src/async/nntp/MCNNTPOperationCallback.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCNNTPOperationCallback.h
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 8/13/14.
6 | // Copyright (c) 2014 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCNNTPOPERATIONCALLBACK_H
10 |
11 | #define MAILCORE_MCNNTPOPERATIONCALLBACK_H
12 |
13 | #include
14 |
15 | #ifdef __cplusplus
16 |
17 | namespace mailcore {
18 |
19 | class NNTPOperation;
20 |
21 | class MAILCORE_EXPORT NNTPOperationCallback {
22 | public:
23 | virtual void bodyProgress(NNTPOperation * session, unsigned int current, unsigned int maximum) {};
24 | };
25 |
26 | }
27 |
28 | #endif
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/src/async/pop/MCAsyncPOP.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCAsyncPOP.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/16/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCASYNCPOP_H
10 |
11 | #define MAILCORE_MCASYNCPOP_H
12 |
13 | #include
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/src/async/pop/MCPOPCheckAccountOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCPOPCheckAccountOperation.cpp
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 4/6/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCPOPCheckAccountOperation.h"
10 |
11 | #include "MCPOPAsyncSession.h"
12 | #include "MCPOPSession.h"
13 |
14 | using namespace mailcore;
15 |
16 | POPCheckAccountOperation::POPCheckAccountOperation()
17 | {
18 | }
19 |
20 | POPCheckAccountOperation::~POPCheckAccountOperation()
21 | {
22 | }
23 |
24 | void POPCheckAccountOperation::main()
25 | {
26 | ErrorCode error;
27 |
28 | session()->session()->checkAccount(&error);
29 | setError(error);
30 | }
31 |
--------------------------------------------------------------------------------
/src/async/pop/MCPOPNoopOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCPOPNoopOperation.cpp
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 9/24/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCPOPNoopOperation.h"
10 |
11 | #include "MCPOPAsyncSession.h"
12 | #include "MCPOPSession.h"
13 |
14 | using namespace mailcore;
15 |
16 | POPNoopOperation::POPNoopOperation()
17 | {
18 | }
19 |
20 | POPNoopOperation::~POPNoopOperation()
21 | {
22 | }
23 |
24 | void POPNoopOperation::main()
25 | {
26 | ErrorCode error;
27 |
28 | session()->session()->noop(&error);
29 | setError(error);
30 | }
31 |
--------------------------------------------------------------------------------
/src/async/pop/MCPOPNoopOperation.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCPOPNoopOperation.h
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 9/24/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCPOPNOOPOPERATION_H
10 |
11 | #define MAILCORE_MCPOPNOOPOPERATION_H
12 |
13 | #include
14 |
15 | #ifdef __cplusplus
16 |
17 | namespace mailcore {
18 |
19 | class MAILCORE_EXPORT POPNoopOperation : public POPOperation {
20 | public:
21 | POPNoopOperation();
22 | virtual ~POPNoopOperation();
23 |
24 | public: // subclass behavior
25 | virtual void main();
26 | };
27 |
28 | }
29 |
30 | #endif
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/src/async/pop/MCPOPOperationCallback.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCPOPOperationCallback.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/16/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCPOPOPERATIONCALLBACK_H
10 |
11 | #define MAILCORE_MCPOPOPERATIONCALLBACK_H
12 |
13 | #include
14 |
15 | #ifdef __cplusplus
16 |
17 | namespace mailcore {
18 |
19 | class POPOperation;
20 |
21 | class MAILCORE_EXPORT POPOperationCallback {
22 | public:
23 | virtual void bodyProgress(POPOperation * session, unsigned int current, unsigned int maximum) {};
24 | };
25 |
26 | }
27 |
28 | #endif
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/src/async/smtp/MCAsyncSMTP.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCAsyncSMTP.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/11/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCASYNCSMTP_H
10 |
11 | #define MAILCORE_MCASYNCSMTP_H
12 |
13 | #include
14 | #include
15 | #include
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/async/smtp/MCSMTPDisconnectOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // SMTPDisconnectOperation.cpp
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 6/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCSMTPDisconnectOperation.h"
10 |
11 | #include "MCSMTPAsyncSession.h"
12 | #include "MCSMTPSession.h"
13 |
14 | using namespace mailcore;
15 |
16 | SMTPDisconnectOperation::SMTPDisconnectOperation()
17 | {
18 | }
19 |
20 | SMTPDisconnectOperation::~SMTPDisconnectOperation()
21 | {
22 | }
23 |
24 | void SMTPDisconnectOperation::main()
25 | {
26 | session()->session()->disconnect();
27 | setError(ErrorNone);
28 | }
29 |
--------------------------------------------------------------------------------
/src/async/smtp/MCSMTPLoginOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCSMTPLoginOperation.cc
3 | // mailcore2
4 | //
5 | // Created by Hironori Yoshida on 10/29/14.
6 | // Copyright (c) 2014 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCSMTPLoginOperation.h"
10 |
11 | #include "MCSMTPAsyncSession.h"
12 | #include "MCSMTPSession.h"
13 |
14 | using namespace mailcore;
15 |
16 | SMTPLoginOperation::SMTPLoginOperation()
17 | {
18 | }
19 |
20 | SMTPLoginOperation::~SMTPLoginOperation()
21 | {
22 | }
23 |
24 | void SMTPLoginOperation::main()
25 | {
26 | ErrorCode error;
27 | session()->session()->loginIfNeeded(&error);
28 | setError(error);
29 | }
30 |
--------------------------------------------------------------------------------
/src/async/smtp/MCSMTPNoopOperation.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCSMTPNoopOperation.cc
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 9/24/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCSMTPNoopOperation.h"
10 |
11 | #include "MCSMTPAsyncSession.h"
12 | #include "MCSMTPSession.h"
13 |
14 | using namespace mailcore;
15 |
16 | SMTPNoopOperation::SMTPNoopOperation()
17 | {
18 | }
19 |
20 | SMTPNoopOperation::~SMTPNoopOperation()
21 | {
22 | }
23 |
24 | void SMTPNoopOperation::main()
25 | {
26 | ErrorCode error;
27 | session()->session()->noop(&error);
28 | setError(error);
29 | }
30 |
--------------------------------------------------------------------------------
/src/async/smtp/MCSMTPOperationCallback.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCSMTPOperationCallback.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/11/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCSMTPOPERATIONCALLBACK_H
10 |
11 | #define MAILCORE_MCSMTPOPERATIONCALLBACK_H
12 |
13 | #include
14 |
15 | #ifdef __cplusplus
16 |
17 | namespace mailcore {
18 |
19 | class SMTPOperation;
20 |
21 | class MAILCORE_EXPORT SMTPOperationCallback {
22 | public:
23 | virtual void bodyProgress(SMTPOperation * session, unsigned int current, unsigned int maximum) {};
24 | };
25 |
26 | }
27 |
28 | #endif
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/src/cmake/gen-public-headers.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | files=""
4 |
5 | list_headers()
6 | {
7 | local filename="$1"
8 |
9 | if echo $files | grep "\[$filename\]" >/dev/null ; then
10 | return
11 | fi
12 |
13 | local path="`find . -name $filename`"
14 | echo $path | sed 's/^.\///'
15 | files="$files[$filename]"
16 | subfilenames="`grep '#include $/\1/'`"
17 | subfilenames+=" "
18 | subfilenames+="`grep '#import $/\1/'`"
19 | for include_dir in $subfilenames ; do
20 | list_headers $include_dir
21 | done
22 | }
23 |
24 | cd ..
25 | echo 'set(public_headers'
26 | list_headers MailCore.h
27 | echo ')'
28 |
--------------------------------------------------------------------------------
/src/core/MCCore.h:
--------------------------------------------------------------------------------
1 | //
2 | // Core.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/10/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCCORE_H
10 |
11 | #define MAILCORE_MCCORE_H
12 |
13 | #include
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/core/abstract/MCAbstract.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCABSTRACT_H
2 |
3 | #define MAILCORE_MCABSTRACT_H
4 |
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/src/core/abstract/MCErrorMessage.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCERRORMESSAGE_H
2 |
3 | #define MAILCORE_MCERRORMESSAGE_H
4 |
5 | #include
6 |
7 | namespace mailcore {
8 | String * errorMessageWithErrorCode(ErrorCode errorCode);
9 | }
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCAndroid.h:
--------------------------------------------------------------------------------
1 | #ifndef FREEBSD_QSORT_R_H
2 |
3 | #define FREEBSD_QSORT_R_H
4 |
5 | #if defined(ANDROID) || defined(__ANDROID__)
6 |
7 | #ifdef __cplusplus
8 |
9 | #include
10 |
11 | #define MIN(a,b) (((a)<(b))?(a):(b))
12 | #define MAX(a,b) (((a)>(b))?(a):(b))
13 |
14 | namespace mailcore {
15 | extern void
16 | android_qsort_r(void *a, size_t n, size_t es, void *thunk, int (* cmp)(void *, const void *, const void *));
17 | }
18 |
19 | #endif
20 |
21 | #endif
22 |
23 | #endif
24 |
25 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCAssert.c:
--------------------------------------------------------------------------------
1 | #include "MCAssert.h"
2 |
3 | #include
4 | #include
5 |
6 | void MCAssertInternal(const char * filename, unsigned int line, int cond, const char * condString)
7 | {
8 | if (cond) {
9 | return;
10 | }
11 |
12 | fprintf(stderr, "%s:%u: assert %s\n", filename, line, condString);
13 | abort();
14 | }
15 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCAssert.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCASSERT_H
2 |
3 | #define MAILCORE_MCASSERT_H
4 |
5 | #include
6 |
7 | #define MCAssert(cond) MCAssertInternal(__FILE__, __LINE__, cond, #cond)
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 | MAILCORE_EXPORT
13 | void MCAssertInternal(const char * filename, unsigned int line, int cond, const char * condString) CLANG_ANALYZER_NORETURN;
14 | #ifdef __cplusplus
15 | }
16 | #endif
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCAutoreleasePoolMac.mm:
--------------------------------------------------------------------------------
1 | //
2 | // MCAutoreleasePoolMac.mm
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 5/4/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCAutoreleasePool.h"
10 |
11 | #import
12 |
13 | using namespace mailcore;
14 |
15 | void * AutoreleasePool::createAppleAutoreleasePool()
16 | {
17 | return [[NSAutoreleasePool alloc] init];
18 | }
19 |
20 | void AutoreleasePool::releaseAppleAutoreleasePool(void * appleAutoreleasePool)
21 | {
22 | [(NSAutoreleasePool *) appleAutoreleasePool release];
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCBase64.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCBase64.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 7/30/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCBASE64_H
10 |
11 | #define MAILCORE_MCBASE64_H
12 |
13 | #ifdef __cplusplus
14 | extern "C" {
15 | #endif
16 |
17 | extern char * MCDecodeBase64(const char * in, int len, int * p_outlen);
18 | extern char * MCEncodeBase64(const char * in, int len);
19 |
20 | #ifdef __cplusplus
21 | }
22 | #endif
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCConnectionLoggerUtils.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCConnectionLoggerUtils.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 6/24/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCCONNECTIONLOGGERUTILS_H
10 |
11 | #define MAILCORE_MCCONNECTIONLOGGERUTILS_H
12 |
13 | #include
14 |
15 | namespace mailcore {
16 |
17 | ConnectionLogType getConnectionType(int log_type);
18 | bool isBufferFromLogType(int log_type);
19 |
20 | }
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCDataDecoderUtils.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCDataDecoderUtils.h
3 | // mailcore2
4 | //
5 | // Copyright © 2016 MailCore. All rights reserved.
6 | //
7 |
8 | #ifndef MAILCORE_MCDATADECODERUTILS_H
9 |
10 | #define MAILCORE_MCDATADECODERUTILS_H
11 |
12 | #include
13 | #include
14 |
15 | #ifdef __cplusplus
16 |
17 | namespace mailcore {
18 |
19 | Data * MCDecodeData(Data * encodedData, Encoding encoding, bool partialContent, Data ** pRemainingData);
20 |
21 | }
22 |
23 | #endif
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCDefines.h:
--------------------------------------------------------------------------------
1 | #ifndef MCDEFINES_H_
2 |
3 | #define MCDEFINES_H_
4 |
5 | #ifdef _MSC_VER
6 |
7 | #pragma section(".CRT$XCU",read)
8 | #define INITIALIZE(name) \
9 | static void __cdecl initialize_##name(void); \
10 | __declspec(allocate(".CRT$XCU")) void (__cdecl*initialize_##name##_)(void) = initialize_##name; \
11 | static void __cdecl initialize_##name(void)
12 |
13 | #else
14 |
15 | #define INITIALIZE(name) \
16 | static void initialize(void) __attribute__((constructor)); \
17 | static void initialize(void)
18 |
19 | #endif
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCHTMLCleaner.h:
--------------------------------------------------------------------------------
1 | //
2 | // HTMLCleaner.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 2/3/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_HTMLCLEANER_H
10 |
11 | #define MAILCORE_HTMLCLEANER_H
12 |
13 | #include
14 | #include
15 |
16 | #ifdef __cplusplus
17 |
18 | namespace mailcore {
19 |
20 | class MAILCORE_EXPORT HTMLCleaner {
21 | public:
22 | static String * cleanHTML(String * input);
23 | };
24 |
25 | }
26 |
27 | #endif
28 |
29 | #endif
30 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCHash.cpp:
--------------------------------------------------------------------------------
1 | #include "MCHash.h"
2 |
3 | unsigned int mailcore::hashCompute(const char * key, unsigned int len) {
4 | unsigned int c = 5381;
5 | const char * k = key;
6 |
7 | while (len--) {
8 | c = ((c << 5) + c) + *k++;
9 | }
10 |
11 | return c;
12 | }
13 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCHash.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCHASH_H
2 |
3 | #define MAILCORE_MCHASH_H
4 |
5 | #ifdef __cplusplus
6 |
7 | namespace mailcore {
8 |
9 | unsigned int hashCompute(const char * key, unsigned int len);
10 |
11 | }
12 |
13 | #endif
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCICUTypes.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCICUTypes.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 4/18/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCICUTYPES_H
10 |
11 | #define MAILCORE_MCICUTYPES_H
12 |
13 | #ifdef _MSC_VER
14 | typedef wchar_t UChar;
15 | #elif defined(__CHAR16_TYPE__)
16 | typedef __CHAR16_TYPE__ UChar;
17 | #else
18 | typedef uint16_t UChar;
19 | #endif
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCLibetpan.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCLibetpan.h
3 | // mailcore2
4 | //
5 | // Created by Hoa Dinh on 6/28/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCLIBETPAN_H
10 |
11 | #define MAILCORE_MCLIBETPAN_H
12 |
13 | #include
14 | #include
15 |
16 | namespace mailcore {
17 |
18 | time_t timestampFromDate(struct mailimf_date_time * date_time);
19 | time_t timestampFromIMAPDate(struct mailimap_date_time * date_time);
20 | struct mailimf_date_time * dateFromTimestamp(time_t timeval);
21 | struct mailimap_date_time * imapDateFromTimestamp(time_t timeval);
22 | time_t mkgmtime(struct tm * tmp);
23 |
24 | }
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCMD5.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCMD5.h
3 | // hermes
4 | //
5 | // Created by DINH Viêt Hoà on 4/11/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCMD5_H
10 |
11 | #define MAILCORE_MCMD5_H
12 |
13 | #include
14 | #include
15 |
16 | #ifdef __cplusplus
17 |
18 | namespace mailcore {
19 | MAILCORE_EXPORT
20 | Data * md5Data(Data * data);
21 |
22 | MAILCORE_EXPORT
23 | String * md5String(Data * data);
24 | }
25 |
26 | #endif
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCMainThread.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCMAINTHREAD_H
2 |
3 | #define MAILCORE_MCMAINTHREAD_H
4 |
5 | #ifdef __cplusplus
6 |
7 | namespace mailcore {
8 | void callOnMainThread(void (*)(void *), void * context);
9 | void callOnMainThreadAndWait(void (*)(void *), void * context);
10 |
11 | // Returns a "call" object.
12 | void * callAfterDelay(void (*)(void *), void * context, double time);
13 |
14 | // Pass the pointer returns by callAfterDelay() to cancel a delayed call.
15 | void cancelDelayedCall(void * call);
16 | }
17 |
18 | #endif
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCMainThreadAndroid.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCMAINTHREADANDROID_H
2 |
3 | #define MAILCORE_MCMAINTHREADANDROID_H
4 |
5 | #if defined(__ANDROID) || defined(ANDROID)
6 |
7 | #ifdef __cplusplus
8 |
9 | namespace mailcore {
10 | extern void androidSetupThread(void);
11 | extern void androidUnsetupThread(void);
12 | }
13 | #endif
14 |
15 | #endif
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCNull.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCNull.cpp
3 | // hermes
4 | //
5 | // Created by DINH Viêt Hoà on 4/9/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCNull.h"
10 |
11 | using namespace mailcore;
12 |
13 | static Null * s_null = NULL;
14 | static pthread_once_t s_once;
15 |
16 | static void init_null(void)
17 | {
18 | s_null = new Null();
19 | }
20 |
21 | Null * Null::null()
22 | {
23 | pthread_once(&s_once, init_null);
24 | return s_null;
25 | }
26 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCNull.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCNull.h
3 | // hermes
4 | //
5 | // Created by DINH Viêt Hoà on 4/9/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCNULL_H
10 |
11 | #define MAILCORE_MCNULL_H
12 |
13 | #include
14 |
15 | #ifdef __cplusplus
16 |
17 | namespace mailcore {
18 |
19 | class MAILCORE_EXPORT Null : public Object {
20 | public:
21 | static Null * null();
22 | };
23 |
24 | }
25 |
26 | #endif
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCObjectMac.mm:
--------------------------------------------------------------------------------
1 | //
2 | // MCObjectMac.mm
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 5/4/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCObject.h"
10 |
11 | #import
12 |
13 | #include "MCOObjectWrapper.h"
14 |
15 | using namespace mailcore;
16 |
17 | Object * Object::autorelease()
18 | {
19 | [MCOObjectWrapper objectWrapperWithObject:this];
20 | this->release();
21 | return this;
22 | }
23 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCOperationCallback.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCOPERATIONCALLBACK_H
2 |
3 | #define MAILCORE_MCOPERATIONCALLBACK_H
4 |
5 | #include
6 |
7 | #ifdef __cplusplus
8 |
9 | namespace mailcore {
10 |
11 | class Operation;
12 |
13 | class MAILCORE_EXPORT OperationCallback {
14 | public:
15 | virtual void operationFinished(Operation * op) {}
16 | };
17 |
18 | }
19 |
20 | #endif
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCOperationQueueCallback.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOperationQueueCallback.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 6/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_OPERATIONQUEUECALLBACK_H
10 | #define MAILCORE_OPERATIONQUEUECALLBACK_H
11 |
12 | #include
13 |
14 | #ifdef __cplusplus
15 |
16 | namespace mailcore {
17 |
18 | class OperationQueue;
19 |
20 | class MAILCORE_EXPORT OperationQueueCallback {
21 | public:
22 | virtual void queueStartRunning() {}
23 | virtual void queueStoppedRunning() {}
24 | };
25 |
26 | }
27 |
28 | #endif
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/src/core/basetypes/MCStringWin32.cpp:
--------------------------------------------------------------------------------
1 | #include "MCWin32.h" // Should be included first.
2 |
3 | #include "MCString.h"
4 |
5 | using namespace mailcore;
6 |
7 | #define UUID_STR_LEN 36
8 |
9 | String * String::uuidString()
10 | {
11 | GUID uuid;
12 | CoCreateGuid(&uuid);
13 | OLECHAR szGUID[39] = { 0 };
14 | char uuidString[37] = { 0 };
15 | StringFromGUID2(uuid, (LPOLESTR)szGUID, 39); // per documentation.
16 | for(int i = 0; i < UUID_STR_LEN; i++) {
17 | uuidString[i] = tolower(szGUID[i]);
18 | }
19 | return String::stringWithUTF8Characters(uuidString);
20 | }
21 |
--------------------------------------------------------------------------------
/src/core/basetypes/icu-ucsdet/csrecog.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | **********************************************************************
3 | * Copyright (C) 2005-2006, International Business Machines
4 | * Corporation and others. All Rights Reserved.
5 | **********************************************************************
6 | */
7 |
8 | #include "unicode/utypes.h"
9 |
10 | #if !UCONFIG_NO_CONVERSION
11 |
12 | #include "csrecog.h"
13 |
14 | U_NAMESPACE_BEGIN
15 |
16 | CharsetRecognizer::~CharsetRecognizer()
17 | {
18 | // nothing to do.
19 | }
20 |
21 | const char *CharsetRecognizer::getLanguage() const
22 | {
23 | return "";
24 | }
25 |
26 | U_NAMESPACE_END
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/src/core/imap/MCIMAP.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCIMAP_H
2 |
3 | #define MAILCORE_MCIMAP_H
4 |
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include
16 | #include
17 | #include
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/src/core/imap/MCIMAPProgressCallback.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCIMAPPROGRESSCALLBACK_H
2 |
3 | #define MAILCORE_MCIMAPPROGRESSCALLBACK_H
4 |
5 | #ifdef __cplusplus
6 |
7 | #include
8 |
9 | namespace mailcore {
10 |
11 | class IMAPSession;
12 |
13 | class MAILCORE_EXPORT IMAPProgressCallback {
14 | public:
15 | virtual void bodyProgress(IMAPSession * session, unsigned int current, unsigned int maximum) {};
16 | virtual void itemsProgress(IMAPSession * session, unsigned int current, unsigned int maximum) {};
17 | };
18 |
19 | }
20 |
21 | #endif
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/core/nntp/MCNNTP.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCNNTP_H
2 |
3 | #define MAILCORE_MCNNTP_H
4 |
5 | #include
6 | #include
7 | #include
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/src/core/nntp/MCNNTPProgressCallback.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCNNTPPROGRESSCALLBACK_H
2 |
3 | #define MAILCORE_MCNNTPPROGRESSCALLBACK_H
4 |
5 | #ifdef __cplusplus
6 |
7 | #include
8 |
9 | namespace mailcore {
10 |
11 | class NNTPSession;
12 |
13 | class MAILCORE_EXPORT NNTPProgressCallback {
14 | public:
15 | virtual void bodyProgress(NNTPSession * session, unsigned int current, unsigned int maximum) {};
16 | };
17 |
18 | }
19 |
20 | #endif
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/core/pop/MCPOP.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCPOP_H
2 |
3 | #define MAILCORE_MCPOP_H
4 |
5 | #include
6 | #include
7 | #include
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/src/core/pop/MCPOPProgressCallback.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCPOPPROGRESSCALLBACK_H
2 |
3 | #define MAILCORE_MCPOPPROGRESSCALLBACK_H
4 |
5 | #ifdef __cplusplus
6 |
7 | #include
8 |
9 | namespace mailcore {
10 |
11 | class POPSession;
12 |
13 | class MAILCORE_EXPORT POPProgressCallback {
14 | public:
15 | virtual void bodyProgress(POPSession * session, unsigned int current, unsigned int maximum) {};
16 | };
17 |
18 | }
19 |
20 | #endif
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/core/provider/MCProvider.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCProvider.h
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 4/28/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCPROVIDER_H
10 |
11 | #define MAILCORE_MCPROVIDER_H
12 |
13 | #include
14 | #include
15 | #include
16 | #include
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/src/core/renderer/MCHTMLBodyRendererTemplateCallback.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // MCHTMLBodyRendererTemplateCallback.cc
3 | // mailcore2
4 | //
5 | // Created by Paul Young on 02/07/2013.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "MCHTMLBodyRendererTemplateCallback.h"
10 |
11 | using namespace mailcore;
12 |
13 | mailcore::String * HTMLBodyRendererTemplateCallback::templateForMainHeader(MessageHeader * header)
14 | {
15 | return MCSTR("");
16 | }
17 |
--------------------------------------------------------------------------------
/src/core/renderer/MCRenderer.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCRenderer.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 2/2/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCRENDERER_H
10 |
11 | #define MAILCORE_MCRENDERER_H
12 |
13 | #include
14 | #include
15 | #include
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/core/renderer/MCSizeFormatter.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCSizeFormatter.h
3 | // testUI
4 | //
5 | // Created by DINH Viêt Hoà on 1/29/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCSIZEFORMATTER_H
10 |
11 | #define MAILCORE_MCSIZEFORMATTER_H
12 |
13 | #include
14 |
15 | #ifdef __cplusplus
16 |
17 | namespace mailcore {
18 |
19 | class String;
20 |
21 | class MAILCORE_EXPORT SizeFormatter : public Object {
22 | public:
23 | static String * stringWithSize(unsigned int size);
24 | };
25 |
26 | }
27 |
28 | #endif
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/src/core/rfc822/MCRFC822.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCRFC822_H
2 |
3 | #define MAILCORE_MCRFC822_H
4 |
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/src/core/security/MCCertificateUtils.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCCertificateUtils.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 7/25/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCCERTIFICATEUTILS_H
10 |
11 | #define MAILCORE_MCCERTIFICATEUTILS_H
12 |
13 | #include
14 | #include
15 |
16 | namespace mailcore {
17 |
18 | bool checkCertificate(mailstream * stream, String * hostname);
19 |
20 | }
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/core/smtp/MCSMTP.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCSMTP_H
2 |
3 | #define MAILCORE_MCSMTP_H
4 |
5 | #include
6 | #include
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/src/core/smtp/MCSMTPProgressCallback.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCSMTPPROGRESSCALLBACK_H
2 |
3 | #define MAILCORE_MCSMTPPROGRESSCALLBACK_H
4 |
5 | #ifdef __cplusplus
6 |
7 | #include
8 |
9 | namespace mailcore {
10 |
11 | class SMTPSession;
12 |
13 | class MAILCORE_EXPORT SMTPProgressCallback {
14 | public:
15 | virtual void bodyProgress(SMTPSession * session, unsigned int current, unsigned int maximum) {};
16 | };
17 |
18 | }
19 |
20 | #endif
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/core/zip/MCZip.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_MCZIP_H
2 |
3 | #ifdef __cplusplus
4 |
5 | #include
6 | #include
7 |
8 | namespace mailcore {
9 |
10 | ErrorCode CreateZipFileFromFolder(String * zipFilename, String * folder);
11 |
12 | String * CreateTemporaryZipFileFromFolder(String * folder);
13 | void RemoveTemporaryZipFile(String * zipFilename);
14 |
15 | };
16 |
17 | #endif
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/src/core/zip/MCZipPrivate.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCZipMac.h
3 | // mailcore2
4 | //
5 | // Created by juliangsp on 7/7/15.
6 | // Copyright (c) 2015 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef mailcore2_MCZipMac_h
10 | #define mailcore2_MCZipMac_h
11 |
12 | #include
13 |
14 | namespace mailcore {
15 |
16 | String * TemporaryDirectoryForZip();
17 |
18 | };
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/src/core/zip/MiniZip/Makefile:
--------------------------------------------------------------------------------
1 | CC=cc
2 | CFLAGS=-O -I../..
3 |
4 | UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
5 | ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a
6 |
7 | .c.o:
8 | $(CC) -c $(CFLAGS) $*.c
9 |
10 | all: miniunz minizip
11 |
12 | miniunz: $(UNZ_OBJS)
13 | $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS)
14 |
15 | minizip: $(ZIP_OBJS)
16 | $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS)
17 |
18 | test: miniunz minizip
19 | ./minizip test readme.txt
20 | ./miniunz -l test.zip
21 | mv readme.txt readme.old
22 | ./miniunz test.zip
23 |
24 | clean:
25 | /bin/rm -f *.o *~ minizip miniunz
26 |
--------------------------------------------------------------------------------
/src/core/zip/MiniZip/MiniZip64_Changes.txt:
--------------------------------------------------------------------------------
1 |
2 | MiniZip 1.1 was derrived from MiniZip at version 1.01f
3 |
4 | Change in 1.0 (Okt 2009)
5 | - **TODO - Add history**
6 |
7 |
--------------------------------------------------------------------------------
/src/java/JavaConnectionLogger.cpp:
--------------------------------------------------------------------------------
1 | #include "JavaConnectionLogger.h"
2 |
3 | #include "TypesUtils.h"
4 |
5 | using namespace mailcore;
6 |
7 | JavaConnectionLogger::JavaConnectionLogger(JNIEnv * env, jobject logger)
8 | {
9 | mLogger = logger;
10 | mEnv = env;
11 | }
12 |
13 | void JavaConnectionLogger::log(void * sender, ConnectionLogType logType, Data * buffer)
14 | {
15 | JNIEnv * env = mEnv;
16 | jclass cls = mEnv->GetObjectClass(mLogger);
17 | jmethodID mid = mEnv->GetMethodID(cls, "log", "(JI[B)V");
18 | mEnv->CallVoidMethod(mLogger, mid, (jlong) sender, (jint) logType, MC_TO_JAVA(buffer));
19 | }
20 |
--------------------------------------------------------------------------------
/src/java/JavaConnectionLogger.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_JAVA_CONNECTION_LOGGER_H
2 |
3 | #define MAILCORE_JAVA_CONNECTION_LOGGER_H
4 |
5 | #include
6 | #include "MCConnectionLogger.h"
7 | #include "MCBaseTypes.h"
8 |
9 | namespace mailcore {
10 |
11 | class JavaConnectionLogger : public Object, public ConnectionLogger {
12 | public:
13 | JavaConnectionLogger(JNIEnv * env, jobject logger);
14 |
15 | virtual void log(void * sender, ConnectionLogType logType, Data * buffer);
16 |
17 | private:
18 | jobject mLogger;
19 | JNIEnv * mEnv;
20 | };
21 |
22 | }
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/src/java/JavaHandle.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_JAVA_HANDLE_H
2 |
3 | #define MAILCORE_JAVA_HANDLE_H
4 |
5 | #include
6 |
7 | namespace mailcore {
8 | void * getHandle(JNIEnv * env, jobject obj);
9 | void setHandle(JNIEnv * env, jobject obj, void * t);
10 | void * getCustomHandle(JNIEnv * env, jobject obj, const char * fieldName);
11 | void setCustomHandle(JNIEnv *env, jobject obj, const char * fieldName, void *t);
12 | jobject getObjectField(JNIEnv *env, jobject obj, const char * fieldName, const char * fieldClass);
13 | }
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/JavaOperationQueueCallback.h:
--------------------------------------------------------------------------------
1 | #ifndef MAILCORE_JAVA_OPERATION_QUEUE_CALLBACK_H
2 |
3 | #define MAILCORE_JAVA_OPERATION_QUEUE_CALLBACK_H
4 |
5 | #include
6 | #include "MCBaseTypes.h"
7 | #include "MCOperationQueueCallback.h"
8 |
9 | namespace mailcore {
10 |
11 | class JavaOperationQueueCallback : public Object, public OperationQueueCallback {
12 | public:
13 | JavaOperationQueueCallback(JNIEnv * env, jobject listener);
14 |
15 | virtual void queueStartRunning();
16 | virtual void queueStoppedRunning();
17 |
18 | private:
19 | jobject mListener;
20 | JNIEnv * mEnv;
21 | };
22 |
23 | }
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/AbstractMessagePart.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Abstract embedded message part. */
4 | public class AbstractMessagePart extends AbstractPart {
5 | /** Header of the message. */
6 | public native MessageHeader header();
7 | /** Sets the header of the message. */
8 | public native void setHeader(MessageHeader header);
9 |
10 | /** Returns the main MIME part of the message. */
11 | public native AbstractPart mainPart();
12 | /** Sets the main MIME part. */
13 | public native void setMainPart(AbstractPart part);
14 | }
15 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/AbstractMultipart.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | import java.util.List;
4 |
5 | /** Abstract MIME multipart. */
6 | public class AbstractMultipart extends AbstractPart {
7 | /** Returns the parts of the MIME multipart. */
8 | public native List parts();
9 | /** Sets the parts of the MIME multipart. */
10 | public native void setParts(List parts);
11 | }
12 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/ConnectionLogger.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Callbacks interface for the connection logger. */
4 | public interface ConnectionLogger {
5 | /**
6 | Called when a new connection logs is added.
7 | @param type has one of the value of ConnectionLogType.
8 | @see com.libmailcore.ConnectionLogType
9 | */
10 | void log(long connectionID, int type, byte[] data);
11 | }
12 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/ConnectionType.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Connection type. */
4 | public class ConnectionType {
5 | /** Clear-text connection. */
6 | final public static int ConnectionTypeClear = 1 << 0;
7 | /** Connection starts in clear-text and is switched to SSL when it starts sending sensitive data. */
8 | final public static int ConnectionTypeStartTLS = 1 << 1;
9 | /** SSL connection. */
10 | final public static int ConnectionTypeTLS = 1 << 2;
11 | }
12 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/Encoding.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** MIME encoding.
4 | See IMAPPart#encoding() */
5 | public class Encoding {
6 | /** 7-bit encoding. */
7 | final public static int Encoding7Bit = 0;
8 | final public static int Encoding8Bit = 1;
9 | final public static int EncodingBinary = 2;
10 | final public static int EncodingBase64 = 3;
11 | final public static int EncodingQuotedPrintable = 4;
12 | final public static int EncodingOther = 5;
13 | final public static int EncodingUUEncode = -1;
14 | }
15 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/HTMLRendererIMAPCallback.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Callbacks to provide IMAP data for message rendering. */
4 | public interface HTMLRendererIMAPCallback {
5 | /**
6 | Called when the data for the given part are needed. The implementation
7 | should return the data of the part or returns nil if the data is
8 | not available.
9 | */
10 | byte[] dataForIMAPPart(String folder, IMAPPart part);
11 | /** Called when the given text part should be fetched. */
12 | void prefetchAttachmentIMAPPart(String folder, IMAPPart part);
13 | /** Called when the given image should be fetched. */
14 | void prefetchImageIMAPPart(String folder, IMAPPart part);
15 | }
16 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPCapabilityOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to fetch the capabilities of the IMAP server. */
4 | public class IMAPCapabilityOperation extends IMAPOperation {
5 | /** The result set will contains values of IMAPCabilityOperation.
6 | @see com.libmailcore.IMAPCapabilityOperation */
7 | public native IndexSet capabilities();
8 | }
9 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPCheckAccountOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to check credentials of an account. */
4 | public class IMAPCheckAccountOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPConnectOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to connect to a server. */
4 | public class IMAPConnectOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPCopyMessagesOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | import java.util.Map;
4 |
5 | /** Operation to copy IMAP messages. */
6 | public class IMAPCopyMessagesOperation extends IMAPOperation {
7 | /**
8 | Returns a map of the UIDs of the messages in the source folder to the UIDs of
9 | the messages in the destination folder.
10 | */
11 | public native Map uidMapping();
12 | }
13 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPCreateFolderOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to create folder. */
4 | public class IMAPCreateFolderOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPDeleteFolderOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to delete folder. */
4 | public class IMAPDeleteFolderOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPExpungeOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to expunge messages marked as deleted. */
4 | public class IMAPExpungeOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPFetchFoldersOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | import java.util.List;
4 |
5 | /** Operation to fetch the list of folders (or subscribed folders). */
6 | public class IMAPFetchFoldersOperation extends IMAPOperation {
7 | /** List of folders. */
8 | public native List folders();
9 | }
10 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPFetchNamespaceOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | import java.util.Map;
4 |
5 | /** Operation to fetch the namespace. */
6 | public class IMAPFetchNamespaceOperation extends IMAPOperation {
7 | public native Map namespaces();
8 | }
9 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPFolderInfoOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to get info of a folder. The info will be fetched using SELECT. */
4 | public class IMAPFolderInfoOperation extends IMAPOperation {
5 | /** Info of the folder. */
6 | public native IMAPFolderInfo info();
7 | }
8 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPFolderStatusOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to fetch a folder status. */
4 | public class IMAPFolderStatusOperation extends IMAPOperation {
5 | public native IMAPFolderStatus status();
6 | }
7 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPIdentityOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to notify the identity of the client and get the identity of the server. */
4 | public class IMAPIdentityOperation extends IMAPOperation {
5 | public native IMAPIdentity serverIdentity();
6 | }
7 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPIdleOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation for IMAP IDLE (wait for incoming messages). */
4 | public class IMAPIdleOperation extends IMAPOperation {
5 | public native void interruptIdle();
6 | }
7 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPMessagePart.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** IMAP embedded message part. */
4 | public class IMAPMessagePart extends AbstractMessagePart {
5 | /** Sets part ID. */
6 | public native void setPartID(String partID);
7 | /** Returns part ID. */
8 | public native String partID();
9 |
10 | private static final long serialVersionUID = 1L;
11 | }
12 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPMessageRenderingOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to render an IMAP message. */
4 | public class IMAPMessageRenderingOperation extends IMAPOperation {
5 | public native String result();
6 | }
7 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPMoveMessagesOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | import java.util.Map;
4 |
5 | /** Operation to move IMAP messages. */
6 | public class IMAPMoveMessagesOperation extends IMAPOperation {
7 | /**
8 | Returns a map of the UIDs of the messages in the source folder to the UIDs of
9 | the messages in the destination folder.
10 | */
11 | public native Map uidMapping();
12 | }
13 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPMultipart.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** IMAP multipart */
4 | public class IMAPMultipart extends AbstractMultipart {
5 | /** Sets part ID. */
6 | public native void setPartID(String partID);
7 | /** Returns part ID. */
8 | public native String partID();
9 | private native void setupNative();
10 |
11 | private static final long serialVersionUID = 1L;
12 | }
13 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPNoopOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to run a no-op. */
4 | public class IMAPNoopOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPOperationItemProgressListener.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Progress listener for IMAP operations working with items such as IMAPFetchMessagesOperation. */
4 | public interface IMAPOperationItemProgressListener {
5 | /** Called when a progress has been notified. */
6 | void itemProgress(long current, long maximum);
7 | }
8 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPOperationProgressListener.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Progress listener for IMAP operations working with stream of data. */
4 | public interface IMAPOperationProgressListener {
5 | /** Called when a progress has been notified. */
6 | void bodyProgress(long current, long maximum);
7 | }
8 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPQuotaOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** IMAP QUOTA Operation. */
4 | public class IMAPQuotaOperation extends IMAPOperation {
5 | /** Returns quota usage. */
6 | public native int usage();
7 | /** Returns quota limit. */
8 | public native int limit();
9 | }
10 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPRenameFolderOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to rename folder. */
4 | public class IMAPRenameFolderOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPSearchOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** IMAP Search operation. */
4 | public class IMAPSearchOperation extends IMAPOperation {
5 | /** Returns UIDs matching the search query. */
6 | public native IndexSet uids();
7 | }
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPStoreFlagsOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to set flags to a message. */
4 | public class IMAPStoreFlagsOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPStoreFlagsRequestKind.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Store request kind.
4 | @see com.libmailcore.IMAPSession#storeFlagsByUIDOperation(String folder, IndexSet uids, int kind, int flags) */
5 | public class IMAPStoreFlagsRequestKind {
6 | public final static int IMAPStoreFlagsRequestKindAdd = 0;
7 | public final static int IMAPStoreFlagsRequestKindRemove = 1;
8 | public final static int IMAPStoreFlagsRequestKindSet = 2;
9 | }
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPStoreLabelsOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to set labels to a message. */
4 | public class IMAPStoreLabelsOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/IMAPSubscribeFolderOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to subscribe or subscribe to a folder. */
4 | public class IMAPSubscribeFolderOperation extends IMAPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/Log.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Logging. */
4 | public class Log {
5 | /** Set whether debug logs are enabled. */
6 | static public native void setEnabled(boolean enabled);
7 | /** Returns whether debug logs are enabled. */
8 | static public native boolean isEnabled();
9 | }
10 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/MessagePart.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Parsed embedded message part. */
4 | public class MessagePart extends AbstractMessagePart {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/Multipart.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Parsed multipart. */
4 | public class Multipart extends AbstractMultipart {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/NNTPCheckAccountOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to check authentication information. */
4 | public class NNTPCheckAccountOperation extends NNTPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/NNTPDisconnectOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to disconnect from the server. */
4 | public class NNTPDisconnectOperation extends NNTPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/NNTPFetchAllArticlesOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to fetch all numbers of all the articles of a newsgroup. */
4 | public class NNTPFetchAllArticlesOperation extends NNTPOperation {
5 | /** numbers of all the articles. */
6 | public native IndexSet articles();
7 | }
8 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/NNTPFetchArticleOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to fetch the content of a given article. */
4 | public class NNTPFetchArticleOperation extends NNTPOperation {
5 | /** Content of the article in RFC 822 format. */
6 | public native byte[] data();
7 | }
8 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/NNTPFetchHeaderOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to fetch header of a given article. */
4 | public class NNTPFetchHeaderOperation extends NNTPOperation {
5 | /** Parsed header of the article. */
6 | public native MessageHeader header();
7 | }
8 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/NNTPFetchOverviewOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | import java.util.List;
4 |
5 | /** Operation to fetch list of summary headers of a set of articles of a newsgroup. */
6 | public class NNTPFetchOverviewOperation extends NNTPOperation {
7 | public native List articles();
8 | }
9 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/NNTPFetchServerTimeOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | import java.util.Date;
4 |
5 | /** Operation to fetch the server time. */
6 | public class NNTPFetchServerTimeOperation extends NNTPOperation {
7 | public native Date time();
8 | }
9 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/NNTPGroupInfo.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Newsgroup infos. */
4 | public class NNTPGroupInfo extends NativeObject {
5 | /** Constructor. */
6 | public NNTPGroupInfo()
7 | {
8 | setupNative();
9 | }
10 |
11 | /** Sets the name of the newsgroup. */
12 | public native void setName(String name);
13 | /** Returns the name of the newsgroup. */
14 | public native String name();
15 |
16 | /** Sets the number of messages in the newsgroup. */
17 | public native void setMessageCount(long count);
18 | /** Returns the number of messages in the newsgroup. */
19 | public native long messageCount();
20 |
21 | private native void setupNative();
22 | }
23 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/NNTPListNewsgroupsOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | import java.util.List;
4 |
5 | /** Operation to list newsgroups. */
6 | public class NNTPListNewsgroupsOperation extends NNTPOperation {
7 | public native List groups();
8 | }
9 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/OperationCallback.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Callbacks of an operation. */
4 | public interface OperationCallback {
5 | /** Called when the operation succeeded. */
6 | void succeeded();
7 | /** Called when the operation failed. */
8 | void failed(MailException exception);
9 | }
10 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/OperationQueueListener.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Listener of the queue of operations. */
4 | public interface OperationQueueListener {
5 | /** Called when an operation has just been added and operations start running. */
6 | void queueStartRunning();
7 | /** Called when all operations have ben run. */
8 | void queueStoppedRunning();
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/POPCheckAccountOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to check credentials of an account. */
4 | public class POPCheckAccountOperation extends POPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/POPDeleteMessagesOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to delete messages. */
4 | public class POPDeleteMessagesOperation extends POPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/POPFetchHeaderOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to fetch the header of a message. */
4 | public class POPFetchHeaderOperation extends POPOperation {
5 | /** Parsed header of the message. */
6 | public native MessageHeader header();
7 | }
8 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/POPFetchMessageOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to fetch a message. */
4 | public class POPFetchMessageOperation extends POPOperation {
5 | /** Content of the message in RFC 822 format. */
6 | public native byte[] data();
7 | }
8 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/POPFetchMessagesOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | import java.util.List;
4 |
5 | /** Operation to fetch the list of messages. */
6 | public class POPFetchMessagesOperation extends POPOperation {
7 | public native List messages();
8 | }
9 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/POPNoopOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to run a no-op. */
4 | public class POPNoopOperation extends POPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/PartType.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** MIME Part type.
4 | @see com.libmailcore.AbstractPart#partType() */
5 | public class PartType {
6 | public final static int PartTypeSingle = 0;
7 | public final static int PartTypeMessage = 1;
8 | public final static int PartTypeMultipartMixed = 2;
9 | public final static int PartTypeMultipartRelated = 3;
10 | public final static int PartTypeMultipartAlternative = 4;
11 | }
12 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/SMTPCheckAccountOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to check authentication information. */
4 | public class SMTPCheckAccountOperation extends SMTPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/SMTPLoginOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to authenticate against SMTP server. */
4 | public class SMTPLoginOperation extends SMTPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/SMTPNoopOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation for no-operation. */
4 | public class SMTPNoopOperation extends SMTPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/com/libmailcore/SMTPSendWithDataOperation.java:
--------------------------------------------------------------------------------
1 | package com.libmailcore;
2 |
3 | /** Operation to send a message. */
4 | public class SMTPSendWithDataOperation extends SMTPOperation {
5 | }
6 |
--------------------------------------------------------------------------------
/src/java/generate-headers.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if test "x$ANDROID_SDK" = x ; then
4 | echo should set ANDROID_SDK before running this script.
5 | exit 1
6 | fi
7 |
8 | TARGET_PLATFORM=android-21
9 |
10 | echo Building Java
11 | javac -classpath $ANDROID_SDK/platforms/$TARGET_PLATFORM/android.jar com/libmailcore/*.java
12 |
13 | echo Creating headers
14 |
15 | cd com/libmailcore
16 | list="`echo com/libmailcore/*.java`"
17 | cd ../..
18 |
19 | for name in $list; do
20 | name="`echo $name|sed -e 's/\.java//'|sed -e 's/\//\./g'`"
21 | javah -d native -jni $name
22 | done
23 |
24 | rm com/libmailcore/*.class
25 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_AbstractMessagePart.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_AbstractMessagePart.h"
2 |
3 | #include "TypesUtils.h"
4 | #include "JavaHandle.h"
5 | #include "MCMessageHeader.h"
6 | #include "MCAbstractMessagePart.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType AbstractMessagePart
11 | #define javaType nativeType
12 |
13 | MC_JAVA_SYNTHESIZE(MessageHeader, setHeader, header)
14 | MC_JAVA_SYNTHESIZE(AbstractPart, setMainPart, mainPart)
15 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_AbstractMultipart.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_AbstractMultipart.h"
2 |
3 | #include "TypesUtils.h"
4 | #include "JavaHandle.h"
5 | #include "MCAbstractMultipart.h"
6 |
7 | using namespace mailcore;
8 |
9 | #define nativeType AbstractMultipart
10 | #define javaType nativeType
11 |
12 | MC_JAVA_SYNTHESIZE(Array, setParts, parts)
13 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_AuthType.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_AuthType */
4 |
5 | #ifndef _Included_com_libmailcore_AuthType
6 | #define _Included_com_libmailcore_AuthType
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #ifdef __cplusplus
11 | }
12 | #endif
13 | #endif
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_ConnectionLogger.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_ConnectionLogger */
4 |
5 | #ifndef _Included_com_libmailcore_ConnectionLogger
6 | #define _Included_com_libmailcore_ConnectionLogger
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #ifdef __cplusplus
11 | }
12 | #endif
13 | #endif
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_HTMLRendererIMAPCallback.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_HTMLRendererIMAPCallback */
4 |
5 | #ifndef _Included_com_libmailcore_HTMLRendererIMAPCallback
6 | #define _Included_com_libmailcore_HTMLRendererIMAPCallback
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #ifdef __cplusplus
11 | }
12 | #endif
13 | #endif
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_HTMLRendererTemplateCallback.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_HTMLRendererTemplateCallback */
4 |
5 | #ifndef _Included_com_libmailcore_HTMLRendererTemplateCallback
6 | #define _Included_com_libmailcore_HTMLRendererTemplateCallback
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #ifdef __cplusplus
11 | }
12 | #endif
13 | #endif
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPCapabilityOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPCapabilityOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPCapabilityOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPCapabilityOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPCapabilityOperation_capabilities
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(capabilities);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPCheckAccountOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPCheckAccountOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPCheckAccountOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPCheckAccountOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPCheckAccountOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPCheckAccountOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPCheckAccountOperation
6 | #define _Included_com_libmailcore_IMAPCheckAccountOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPCheckAccountOperation_serialVersionUID
11 | #define com_libmailcore_IMAPCheckAccountOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPConnectOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPConnectOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPConnectOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPConnectOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPConnectOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPConnectOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPConnectOperation
6 | #define _Included_com_libmailcore_IMAPConnectOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPConnectOperation_serialVersionUID
11 | #define com_libmailcore_IMAPConnectOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPCopyMessagesOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPCopyMessagesOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPCopyMessagesOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPCopyMessagesOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPCopyMessagesOperation_uidMapping
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(uidMapping);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPCreateFolderOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPCreateFolderOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPCreateFolderOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPCreateFolderOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPCreateFolderOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPCreateFolderOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPCreateFolderOperation
6 | #define _Included_com_libmailcore_IMAPCreateFolderOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPCreateFolderOperation_serialVersionUID
11 | #define com_libmailcore_IMAPCreateFolderOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPDeleteFolderOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPDeleteFolderOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPDeleteFolderOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPDeleteFolderOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPDeleteFolderOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPDeleteFolderOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPDeleteFolderOperation
6 | #define _Included_com_libmailcore_IMAPDeleteFolderOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPDeleteFolderOperation_serialVersionUID
11 | #define com_libmailcore_IMAPDeleteFolderOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPExpungeOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPExpungeOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPExpungeOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPExpungeOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPExpungeOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPExpungeOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPExpungeOperation
6 | #define _Included_com_libmailcore_IMAPExpungeOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPExpungeOperation_serialVersionUID
11 | #define com_libmailcore_IMAPExpungeOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPFetchFoldersOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPFetchFoldersOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPFetchFoldersOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPFetchFoldersOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPFetchFoldersOperation_folders
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(folders);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPFetchNamespaceOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPFetchNamespaceOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPFetchNamespaceOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPFetchNamespaceOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPFetchNamespaceOperation_namespaces
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(namespaces);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPFolder.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPFolder.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPFolder.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPFolder
11 | #define javaType nativeType
12 |
13 | MC_JAVA_SYNTHESIZE_STRING(setPath, path)
14 | MC_JAVA_SYNTHESIZE_SCALAR(jchar, char, setDelimiter, delimiter)
15 | MC_JAVA_SYNTHESIZE_SCALAR(jint, IMAPFolderFlag, setFlags, flags)
16 |
17 | MC_JAVA_BRIDGE
18 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPFolderInfoOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPFolderInfoOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPFolderInfoOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPFolderInfoOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPFolderInfoOperation_info
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(info);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPFolderStatusOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPFolderStatusOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPFolderStatusOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPFolderStatusOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPFolderStatusOperation_status
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(status);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPIdentityOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPIdentityOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPIdentityOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPIdentityOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPIdentityOperation_serverIdentity
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(serverIdentity);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPIdleOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPIdleOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPIdleOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPIdleOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT void JNICALL Java_com_libmailcore_IMAPIdleOperation_interruptIdle
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | MC_JAVA_NATIVE_INSTANCE->interruptIdle();
18 | MC_POOL_END;
19 | }
20 |
21 | MC_JAVA_BRIDGE
22 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPMessagePart.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPMessagePart.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPMessagePart.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPMessagePart
11 | #define javaType nativeType
12 |
13 | MC_JAVA_SYNTHESIZE_STRING(setPartID, partID)
14 |
15 | MC_JAVA_BRIDGE
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPMessageRenderingOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPMessageRenderingOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPMessageRenderingOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPMessageRenderingOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jstring JNICALL Java_com_libmailcore_IMAPMessageRenderingOperation_result
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jstring result = MC_JAVA_BRIDGE_GET_STRING(result);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPMoveMessagesOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPMoveMessagesOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPMoveMessagesOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPMoveMessagesOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPMoveMessagesOperation_uidMapping
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(uidMapping);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPMultipart.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPMultipart.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPMultipart.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPMultipart
11 | #define javaType nativeType
12 |
13 | MC_JAVA_SYNTHESIZE_STRING(setPartID, partID)
14 |
15 | MC_JAVA_BRIDGE
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPNoopOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPNoopOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPNoopOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPNoopOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPNoopOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPNoopOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPNoopOperation
6 | #define _Included_com_libmailcore_IMAPNoopOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPNoopOperation_serialVersionUID
11 | #define com_libmailcore_IMAPNoopOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jint JNICALL Java_com_libmailcore_IMAPOperation_errorCode
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jint result = MC_JAVA_BRIDGE_GET_SCALAR(jint, error);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPOperation
6 | #define _Included_com_libmailcore_IMAPOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPOperation_serialVersionUID
11 | #define com_libmailcore_IMAPOperation_serialVersionUID 1LL
12 | /*
13 | * Class: com_libmailcore_IMAPOperation
14 | * Method: errorCode
15 | * Signature: ()I
16 | */
17 | JNIEXPORT jint JNICALL Java_com_libmailcore_IMAPOperation_errorCode
18 | (JNIEnv *, jobject);
19 |
20 | #ifdef __cplusplus
21 | }
22 | #endif
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPOperationItemProgressListener.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPOperationItemProgressListener */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPOperationItemProgressListener
6 | #define _Included_com_libmailcore_IMAPOperationItemProgressListener
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #ifdef __cplusplus
11 | }
12 | #endif
13 | #endif
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPOperationProgressListener.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPOperationProgressListener */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPOperationProgressListener
6 | #define _Included_com_libmailcore_IMAPOperationProgressListener
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #ifdef __cplusplus
11 | }
12 | #endif
13 | #endif
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPRenameFolderOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPRenameFolderOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPRenameFolderOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPRenameFolderOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPRenameFolderOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPRenameFolderOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPRenameFolderOperation
6 | #define _Included_com_libmailcore_IMAPRenameFolderOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPRenameFolderOperation_serialVersionUID
11 | #define com_libmailcore_IMAPRenameFolderOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPSearchOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPSearchOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPSearchOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPSearchOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_IMAPSearchOperation_uids
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(uids);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPStoreFlagsOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPStoreFlagsOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPStoreFlagsOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPStoreFlagsOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPStoreFlagsOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPStoreFlagsOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPStoreFlagsOperation
6 | #define _Included_com_libmailcore_IMAPStoreFlagsOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPStoreFlagsOperation_serialVersionUID
11 | #define com_libmailcore_IMAPStoreFlagsOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPStoreLabelsOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPStoreLabelsOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPStoreLabelsOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPStoreLabelsOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPStoreLabelsOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPStoreLabelsOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPStoreLabelsOperation
6 | #define _Included_com_libmailcore_IMAPStoreLabelsOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPStoreLabelsOperation_serialVersionUID
11 | #define com_libmailcore_IMAPStoreLabelsOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPSubscribeFolderOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_IMAPSubscribeFolderOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCIMAPSubscribeFolderOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType IMAPSubscribeFolderOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_IMAPSubscribeFolderOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_IMAPSubscribeFolderOperation */
4 |
5 | #ifndef _Included_com_libmailcore_IMAPSubscribeFolderOperation
6 | #define _Included_com_libmailcore_IMAPSubscribeFolderOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_IMAPSubscribeFolderOperation_serialVersionUID
11 | #define com_libmailcore_IMAPSubscribeFolderOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_Log.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_Log.h"
2 |
3 | #include "MCLog.h"
4 |
5 | JNIEXPORT void JNICALL Java_com_libmailcore_Log_setEnabled
6 | (JNIEnv * env, jclass cls, jboolean enabled)
7 | {
8 | MCLogEnabled = true;
9 | }
10 |
11 | JNIEXPORT jboolean JNICALL Java_com_libmailcore_Log_isEnabled
12 | (JNIEnv * env, jclass cls)
13 | {
14 | return MCLogEnabled;
15 | }
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_MailException.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_MailException.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "MCErrorMessage.h"
5 | #include "TypesUtils.h"
6 |
7 | using namespace mailcore;
8 |
9 | JNIEXPORT jstring JNICALL Java_com_libmailcore_MailException_messageForErrorCode
10 | (JNIEnv * env, jclass cls, jint errorCode)
11 | {
12 | MC_POOL_BEGIN;
13 | jobject result = MC_TO_JAVA(mailcore::errorMessageWithErrorCode((ErrorCode) errorCode));
14 | MC_POOL_END;
15 | return (jstring) result;
16 | }
17 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_MessagePart.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_MessageParser.h"
2 |
3 | #include "TypesUtils.h"
4 | #include "JavaHandle.h"
5 | #include "MCMessagePart.h"
6 | #include "MCDefines.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType MessagePart
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_MessagePart.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_MessagePart */
4 |
5 | #ifndef _Included_com_libmailcore_MessagePart
6 | #define _Included_com_libmailcore_MessagePart
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_MessagePart_serialVersionUID
11 | #define com_libmailcore_MessagePart_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_Multipart.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_Multipart.h"
2 |
3 | #include "TypesUtils.h"
4 | #include "JavaHandle.h"
5 | #include "MCMultipart.h"
6 | #include "MCDefines.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType Multipart
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_Multipart.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_Multipart */
4 |
5 | #ifndef _Included_com_libmailcore_Multipart
6 | #define _Included_com_libmailcore_Multipart
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_Multipart_serialVersionUID
11 | #define com_libmailcore_Multipart_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPCheckAccountOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPCheckAccountOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPCheckAccountOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPCheckAccountOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPCheckAccountOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_NNTPCheckAccountOperation */
4 |
5 | #ifndef _Included_com_libmailcore_NNTPCheckAccountOperation
6 | #define _Included_com_libmailcore_NNTPCheckAccountOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_NNTPCheckAccountOperation_serialVersionUID
11 | #define com_libmailcore_NNTPCheckAccountOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPDisconnectOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPDisconnectOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPDisconnectOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPDisconnectOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPDisconnectOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_NNTPDisconnectOperation */
4 |
5 | #ifndef _Included_com_libmailcore_NNTPDisconnectOperation
6 | #define _Included_com_libmailcore_NNTPDisconnectOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_NNTPDisconnectOperation_serialVersionUID
11 | #define com_libmailcore_NNTPDisconnectOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPFetchAllArticlesOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPFetchAllArticlesOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPFetchAllArticlesOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPFetchAllArticlesOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_NNTPFetchAllArticlesOperation_articles
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(articles);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPFetchArticleOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPFetchArticleOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPFetchArticleOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPFetchArticleOperation
11 | #define javaType nativeType
12 |
13 |
14 | JNIEXPORT jbyteArray JNICALL Java_com_libmailcore_NNTPFetchArticleOperation_data
15 | (JNIEnv * env, jobject obj)
16 | {
17 | MC_POOL_BEGIN;
18 | jbyteArray result = MC_JAVA_BRIDGE_GET_DATA(data);
19 | MC_POOL_END;
20 | return result;
21 | }
22 |
23 | MC_JAVA_BRIDGE
24 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPFetchHeaderOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPFetchHeaderOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPFetchHeaderOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPFetchHeaderOperation
11 | #define javaType nativeType
12 |
13 |
14 | JNIEXPORT jobject JNICALL Java_com_libmailcore_NNTPFetchHeaderOperation_header
15 | (JNIEnv * env, jobject obj)
16 | {
17 | MC_POOL_BEGIN;
18 | jobject result = MC_JAVA_BRIDGE_GET(header);
19 | MC_POOL_END;
20 | return result;
21 | }
22 |
23 | MC_JAVA_BRIDGE
24 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPFetchOverviewOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPFetchOverviewOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPFetchOverviewOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPFetchOverviewOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_NNTPFetchOverviewOperation_articles
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(articles);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPFetchServerTimeOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPFetchServerTimeOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPFetchServerTimeOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPFetchServerTimeOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_NNTPFetchServerTimeOperation_time
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = timeToJavaDate(env, MC_JAVA_NATIVE_INSTANCE->time());
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPGroupInfo.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPGroupInfo.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPGroupInfo.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPGroupInfo
11 | #define javaType nativeType
12 |
13 | MC_JAVA_SYNTHESIZE_STRING(setName, name)
14 | MC_JAVA_SYNTHESIZE_SCALAR(jlong, uint32_t, setMessageCount, messageCount)
15 |
16 | MC_JAVA_BRIDGE
17 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPListNewsgroupsOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPListNewsgroupsOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPListNewsgroupsOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPListNewsgroupsOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_NNTPListNewsgroupsOperation_groups
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(groups);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_NNTPOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCNNTPOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType NNTPOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jint JNICALL Java_com_libmailcore_NNTPOperation_errorCode
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jint result = MC_JAVA_BRIDGE_GET_SCALAR(jint, error);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_NNTPOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_NNTPOperation */
4 |
5 | #ifndef _Included_com_libmailcore_NNTPOperation
6 | #define _Included_com_libmailcore_NNTPOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_NNTPOperation_serialVersionUID
11 | #define com_libmailcore_NNTPOperation_serialVersionUID 1LL
12 | /*
13 | * Class: com_libmailcore_NNTPOperation
14 | * Method: errorCode
15 | * Signature: ()I
16 | */
17 | JNIEXPORT jint JNICALL Java_com_libmailcore_NNTPOperation_errorCode
18 | (JNIEnv *, jobject);
19 |
20 | #ifdef __cplusplus
21 | }
22 | #endif
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_OperationCallback.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_OperationCallback */
4 |
5 | #ifndef _Included_com_libmailcore_OperationCallback
6 | #define _Included_com_libmailcore_OperationCallback
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #ifdef __cplusplus
11 | }
12 | #endif
13 | #endif
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_OperationQueueListener.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_OperationQueueListener */
4 |
5 | #ifndef _Included_com_libmailcore_OperationQueueListener
6 | #define _Included_com_libmailcore_OperationQueueListener
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #ifdef __cplusplus
11 | }
12 | #endif
13 | #endif
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPCheckAccountOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_POPCheckAccountOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCPOPCheckAccountOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType POPCheckAccountOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPCheckAccountOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_POPCheckAccountOperation */
4 |
5 | #ifndef _Included_com_libmailcore_POPCheckAccountOperation
6 | #define _Included_com_libmailcore_POPCheckAccountOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_POPCheckAccountOperation_serialVersionUID
11 | #define com_libmailcore_POPCheckAccountOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPDeleteMessagesOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_POPDeleteMessagesOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCPOPDeleteMessagesOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType POPDeleteMessagesOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPDeleteMessagesOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_POPDeleteMessagesOperation */
4 |
5 | #ifndef _Included_com_libmailcore_POPDeleteMessagesOperation
6 | #define _Included_com_libmailcore_POPDeleteMessagesOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_POPDeleteMessagesOperation_serialVersionUID
11 | #define com_libmailcore_POPDeleteMessagesOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPFetchHeaderOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_POPFetchHeaderOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCPOPFetchHeaderOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType POPFetchHeaderOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_POPFetchHeaderOperation_header
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(header);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPFetchMessageOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_POPFetchMessageOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCPOPFetchMessageOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType POPFetchMessageOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jbyteArray JNICALL Java_com_libmailcore_POPFetchMessageOperation_data
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET_DATA(data);
18 | MC_POOL_END;
19 | return (jbyteArray) result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPFetchMessagesOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_POPFetchMessagesOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCPOPFetchMessagesOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType POPFetchMessagesOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jobject JNICALL Java_com_libmailcore_POPFetchMessagesOperation_messages
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jobject result = MC_JAVA_BRIDGE_GET(messages);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPMessageInfo.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_POPMessageInfo.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCPOPMessageInfo.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType POPMessageInfo
11 | #define javaType nativeType
12 |
13 | MC_JAVA_SYNTHESIZE_SCALAR(jint, unsigned int, setIndex, index)
14 | MC_JAVA_SYNTHESIZE_SCALAR(jlong, unsigned int, setSize, size)
15 | MC_JAVA_SYNTHESIZE_STRING(setUid, uid)
16 |
17 | MC_JAVA_BRIDGE
18 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPNoopOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_POPNoopOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCPOPNoopOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType POPNoopOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPNoopOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_POPNoopOperation */
4 |
5 | #ifndef _Included_com_libmailcore_POPNoopOperation
6 | #define _Included_com_libmailcore_POPNoopOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_POPNoopOperation_serialVersionUID
11 | #define com_libmailcore_POPNoopOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_POPOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCPOPOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType POPOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jint JNICALL Java_com_libmailcore_POPOperation_errorCode
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jint result = MC_JAVA_BRIDGE_GET_SCALAR(jint, error);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_POPOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_POPOperation */
4 |
5 | #ifndef _Included_com_libmailcore_POPOperation
6 | #define _Included_com_libmailcore_POPOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_POPOperation_serialVersionUID
11 | #define com_libmailcore_POPOperation_serialVersionUID 1LL
12 | /*
13 | * Class: com_libmailcore_POPOperation
14 | * Method: errorCode
15 | * Signature: ()I
16 | */
17 | JNIEXPORT jint JNICALL Java_com_libmailcore_POPOperation_errorCode
18 | (JNIEnv *, jobject);
19 |
20 | #ifdef __cplusplus
21 | }
22 | #endif
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPCheckAccountOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_SMTPCheckAccountOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCSMTPCheckAccountOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType SMTPCheckAccountOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPCheckAccountOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_SMTPCheckAccountOperation */
4 |
5 | #ifndef _Included_com_libmailcore_SMTPCheckAccountOperation
6 | #define _Included_com_libmailcore_SMTPCheckAccountOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_SMTPCheckAccountOperation_serialVersionUID
11 | #define com_libmailcore_SMTPCheckAccountOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPLoginOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_SMTPLoginOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCSMTPLoginOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType SMTPLoginOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPLoginOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_SMTPLoginOperation */
4 |
5 | #ifndef _Included_com_libmailcore_SMTPLoginOperation
6 | #define _Included_com_libmailcore_SMTPLoginOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_SMTPLoginOperation_serialVersionUID
11 | #define com_libmailcore_SMTPLoginOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPNoopOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_SMTPNoopOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCSMTPNoopOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType SMTPNoopOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPNoopOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_SMTPNoopOperation */
4 |
5 | #ifndef _Included_com_libmailcore_SMTPNoopOperation
6 | #define _Included_com_libmailcore_SMTPNoopOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_SMTPNoopOperation_serialVersionUID
11 | #define com_libmailcore_SMTPNoopOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_SMTPOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCSMTPOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType SMTPOperation
11 | #define javaType nativeType
12 |
13 | JNIEXPORT jint JNICALL Java_com_libmailcore_SMTPOperation_errorCode
14 | (JNIEnv * env, jobject obj)
15 | {
16 | MC_POOL_BEGIN;
17 | jint result = MC_JAVA_BRIDGE_GET_SCALAR(jint, error);
18 | MC_POOL_END;
19 | return result;
20 | }
21 |
22 | MC_JAVA_BRIDGE
23 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_SMTPOperation */
4 |
5 | #ifndef _Included_com_libmailcore_SMTPOperation
6 | #define _Included_com_libmailcore_SMTPOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_SMTPOperation_serialVersionUID
11 | #define com_libmailcore_SMTPOperation_serialVersionUID 1LL
12 | /*
13 | * Class: com_libmailcore_SMTPOperation
14 | * Method: errorCode
15 | * Signature: ()I
16 | */
17 | JNIEXPORT jint JNICALL Java_com_libmailcore_SMTPOperation_errorCode
18 | (JNIEnv *, jobject);
19 |
20 | #ifdef __cplusplus
21 | }
22 | #endif
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPSendWithDataOperation.cpp:
--------------------------------------------------------------------------------
1 | #include "com_libmailcore_SMTPSendWithDataOperation.h"
2 |
3 | #include "MCBaseTypes.h"
4 | #include "JavaHandle.h"
5 | #include "TypesUtils.h"
6 | #include "MCSMTPSendWithDataOperation.h"
7 |
8 | using namespace mailcore;
9 |
10 | #define nativeType SMTPSendWithDataOperation
11 | #define javaType nativeType
12 |
13 | MC_JAVA_BRIDGE
14 |
--------------------------------------------------------------------------------
/src/java/native/com_libmailcore_SMTPSendWithDataOperation.h:
--------------------------------------------------------------------------------
1 | /* DO NOT EDIT THIS FILE - it is machine generated */
2 | #include
3 | /* Header for class com_libmailcore_SMTPSendWithDataOperation */
4 |
5 | #ifndef _Included_com_libmailcore_SMTPSendWithDataOperation
6 | #define _Included_com_libmailcore_SMTPSendWithDataOperation
7 | #ifdef __cplusplus
8 | extern "C" {
9 | #endif
10 | #undef com_libmailcore_SMTPSendWithDataOperation_serialVersionUID
11 | #define com_libmailcore_SMTPSendWithDataOperation_serialVersionUID 1LL
12 | #ifdef __cplusplus
13 | }
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/src/objc/MCObjC.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCObjC.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/27/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOBJC_H
10 |
11 | #define MAILCORE_MCOBJC_H
12 |
13 | #ifdef __OBJC__
14 |
15 | #import
16 | #import
17 | #import
18 | #import
19 | #import
20 | #import
21 | #import
22 | #import
23 |
24 | #endif
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/src/objc/abstract/MCOAbstract.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOAbstract.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/10/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOABSTRACT_H
10 |
11 | #define MAILCORE_MCOABSTRACT_H
12 |
13 | #import
14 | #import
15 | #import
16 | #import
17 | #import
18 | #import
19 | #import
20 | #import
21 | #import
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/objc/abstract/MCOAbstractMessagePart.mm:
--------------------------------------------------------------------------------
1 | //
2 | // MCOAbstractMessagePart.m
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/10/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import "MCOAbstractMessagePart.h"
10 |
11 | #import "NSObject+MCO.h"
12 | #import "MCOMessageHeader.h"
13 |
14 | #include "MCAbstractMessagePart.h"
15 | #include "MCMessageHeader.h"
16 |
17 | @implementation MCOAbstractMessagePart
18 |
19 | #define nativeType mailcore::AbstractMessagePart
20 |
21 | MCO_OBJC_SYNTHESIZE(MessageHeader, setHeader, header)
22 | MCO_OBJC_SYNTHESIZE(AbstractMessagePart, setMainPart, mainPart)
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/src/objc/abstract/MCOAbstractMultipart.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOAbstractMultipart.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/10/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOABSTRACTMULTIPART_H
10 |
11 | #define MAILCORE_MCOABSTRACTMULTIPART_H
12 |
13 | #import
14 | #import
15 |
16 | @interface MCOAbstractMultipart : MCOAbstractPart
17 |
18 | /** Returns the subparts of that multipart.*/
19 | @property (nonatomic, copy) NSArray *parts;
20 |
21 | @end
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/objc/abstract/MCOAbstractMultipart.mm:
--------------------------------------------------------------------------------
1 | //
2 | // MCOAbstractMultipart.m
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/10/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import "MCOAbstractMultipart.h"
10 |
11 | #include "MCAbstractMultipart.h"
12 |
13 | #import "NSObject+MCO.h"
14 |
15 | @implementation MCOAbstractMultipart
16 |
17 | #define nativeType mailcore::AbstractMultipart
18 |
19 | MCO_OBJC_SYNTHESIZE_ARRAY(setParts, parts)
20 |
21 | @end
22 |
--------------------------------------------------------------------------------
/src/objc/abstract/MCOAddress+Private.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOAddress+Private.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/11/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOADDRESS_PRIVATE_H
10 |
11 | #define MAILCORE_MCOADDRESS_PRIVATE_H
12 |
13 | #ifdef __cplusplus
14 | namespace mailcore {
15 | class Address;
16 | }
17 |
18 | @interface MCOAddress (Private)
19 |
20 | - (instancetype) initWithMCAddress:(mailcore::Address *)address;
21 | + (MCOAddress *) addressWithMCAddress:(mailcore::Address *)address;
22 |
23 | @end
24 | #endif
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/src/objc/abstract/MCOMessageHeader+Private.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOMessageHeader+Private.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/11/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOMESSAGEHEADER_PRIVATE_H
10 |
11 | #define MAILCORE_MCOMESSAGEHEADER_PRIVATE_H
12 |
13 | #ifdef __cplusplus
14 | namespace mailcore {
15 | class MessageHeader;
16 | }
17 |
18 | @interface MCOMessageHeader (Private)
19 |
20 | - (instancetype) initWithMCMessageHeader:(mailcore::MessageHeader *)header;
21 | + (MCOAddress *) addressWithMCMessageHeader:(mailcore::MessageHeader *)header;
22 |
23 | @end
24 | #endif
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/src/objc/imap/MCOIMAPBaseOperation+Private.h:
--------------------------------------------------------------------------------
1 | //
2 | // Header.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 6/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOIMAPBASEOPERATION_PRIVATE_H
10 |
11 | #define MAILCORE_MCOIMAPBASEOPERATION_PRIVATE_H
12 |
13 | @class MCOIMAPSession;
14 |
15 | @interface MCOIMAPBaseOperation (Private)
16 |
17 | @property (nonatomic, retain) MCOIMAPSession * session;
18 |
19 | @end
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/objc/imap/MCOIMAPCheckAccountOperation.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOIMAPCheckAccountOperation.h
3 | // mailcore2
4 | //
5 | // Created by Hoa V. DINH on 3/7/16.
6 | // Copyright © 2016 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOIMAPCHECKACCOUNTOPERATION_H
10 |
11 | #define MAILCORE_MCOIMAPCHECKACCOUNTOPERATION_H
12 |
13 | #import
14 |
15 | NS_ASSUME_NONNULL_BEGIN
16 | /* The class is used to perform a No-Op operation. */
17 | @interface MCOIMAPCheckAccountOperation : MCOIMAPOperation
18 |
19 | @end
20 | NS_ASSUME_NONNULL_END
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/objc/imap/MCOIMAPCustomCommandOperation.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOIMAPCustomCommandOperation.h
3 | // mailcore2
4 | //
5 | // Created by Libor Huspenina on 29/10/2015.
6 | // Copyright © 2015 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOIMAPCUSTOMCOMMANDOPERATION_H
10 |
11 | #define MAILCORE_MCOIMAPCUSTOMCOMMANDOPERATION_H
12 |
13 | #import
14 | #import
15 |
16 | NS_ASSUME_NONNULL_BEGIN
17 | @interface MCOIMAPCustomCommandOperation : MCOIMAPBaseOperation
18 |
19 | - (void)start:(void(^)(NSString * __nullable response, NSError * __nullable error))completionBlock;
20 |
21 | @end
22 | NS_ASSUME_NONNULL_END
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/src/objc/imap/MCOIMAPMessagePart.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOIMAPMessagePart.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/23/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOIMAPMESSAGEPART_H
10 |
11 | #define MAILCORE_MCOIMAPMESSAGEPART_H
12 |
13 | /** Represents a message part. */
14 |
15 | #import
16 |
17 | @interface MCOIMAPMessagePart : MCOAbstractMessagePart
18 |
19 | /** A part identifier is of the form 1.2.1*/
20 | @property (nonatomic, copy) NSString * partID;
21 |
22 | @end
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/src/objc/imap/MCOIMAPMultiDisconnectOperation.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOIMAPMultiDisconnectOperation.h
3 | // mailcore2
4 | //
5 | // Created by Hoa V. DINH on 11/12/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | /* The class is used to perform a disconnect operation. */
13 | @interface MCOIMAPMultiDisconnectOperation : MCOIMAPOperation
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/src/objc/imap/MCOIMAPMultipart.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOIMAPMultipart.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/23/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOIMAPMULTIPART_H
10 |
11 | #define MAILCORE_MCOIMAPMULTIPART_H
12 |
13 | /** Represents the a multipart retrieved from IMAP */
14 |
15 | #import
16 |
17 | @interface MCOIMAPMultipart : MCOAbstractMultipart
18 |
19 | /** A part identifier looks like 1.2.1 */
20 | @property (nonatomic, copy) NSString * partID;
21 |
22 | @end
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/src/objc/imap/MCOIMAPQuotaOperation.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOIMAPQuotaOperation.h
3 | // mailcore2
4 | //
5 | // Created by Petro Korenev on 8/2/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import "MCOIMAPBaseOperation.h"
10 |
11 | NS_ASSUME_NONNULL_BEGIN
12 | @interface MCOIMAPQuotaOperation : MCOIMAPBaseOperation
13 |
14 | - (void) start:(void (^)(NSError * __nullable error, NSUInteger usage, NSUInteger limit))completionBlock;
15 |
16 | @end
17 | NS_ASSUME_NONNULL_END
18 |
--------------------------------------------------------------------------------
/src/objc/nntp/MCONNTPDisconnectOperation.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCONNTPDisconnectOperation.h
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 8/13/14.
6 | // Copyright (c) 2014 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCONNTPDICONNECTOPERATION_H
10 |
11 | #define MAILCORE_MCONNTPDICONNECTOPERATION_H
12 |
13 | #import
14 | #import
15 |
16 | /* The class is used to perform a disconnect operation. */
17 | @interface MCONNTPDisconnectOperation : MCONNTPOperation
18 |
19 | @end
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/objc/nntp/MCONNTPGroupInfo.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCONNTPGroupInfo.h
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 8/13/14.
6 | // Copyright (c) 2014 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCONNTPGROUPINFO_H
10 |
11 | #define MAILCORE_MCONNTPGROUPINFO_H
12 |
13 | #import
14 |
15 | /** This is information of a message fetched by MCONNTPListNewsgroupsOperation.*/
16 |
17 | @interface MCONNTPGroupInfo : NSObject
18 |
19 | /** The name of the news group. */
20 | @property (nonatomic, copy) NSString *name;
21 |
22 | /** The number of messages in the news group. */
23 | @property (nonatomic, assign) unsigned int messageCount;
24 |
25 | @end
26 |
27 | #endif
28 |
--------------------------------------------------------------------------------
/src/objc/nntp/MCONNTPOperation+Private.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCONNTPOperation_Private.h
3 | // mailcore2
4 | //
5 | // Created by Robert Widmann on 8/13/14.
6 | // Copyright (c) 2014 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCONNTPOPERATION_PRIVATE_H
10 | #define MAILCORE_MCONNTPOPERATION_PRIVATE_H
11 |
12 | @class MCONNTPSession;
13 |
14 | @interface MCONNTPOperation (Private)
15 |
16 | @property (nonatomic, retain) MCONNTPSession * session;
17 |
18 | @end
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/src/objc/pop/MCOPOP.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOPOP.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/30/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOPOP_H
10 |
11 | #define MAILCORE_MCOPOP_H
12 |
13 | #import
14 | #import
15 | #import
16 | #import
17 | #import
18 | #import
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/src/objc/pop/MCOPOPOperation+Private.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOPOPOperation+Private.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 6/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOPOPOPERATION_PRIVATE_H
10 | #define MAILCORE_MCOPOPOPERATION_PRIVATE_H
11 |
12 | @class MCOPOPSession;
13 |
14 | @interface MCOPOPOperation (Private)
15 |
16 | @property (nonatomic, retain) MCOPOPSession * session;
17 |
18 | @end
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/src/objc/provider/MCOProvider.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOPROVIDER.h
3 | // mailcore2
4 | //
5 | // Created by Pushkar Singh on 5/24/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef _MAILCORE__MCOPROVIDER_h
10 | #define _MAILCORE__MCOPROVIDER_h
11 |
12 | #import
13 | #import
14 | #import
15 | #import
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/objc/rfc822/MCOMessagePart.h:
--------------------------------------------------------------------------------
1 | //
2 | // MessagePart.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOMESSAGEPART_H
10 |
11 | #define MAILCORE_MCOMESSAGEPART_H
12 |
13 | #import
14 |
15 | /** Message part parsed from RFC 822 message data. */
16 |
17 | @interface MCOMessagePart : MCOAbstractMessagePart
18 |
19 | @end
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/objc/rfc822/MCOMessagePart.mm:
--------------------------------------------------------------------------------
1 | //
2 | // MessagePart.m
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import "MCOMessagePart.h"
10 |
11 | #include "MCRFC822.h"
12 |
13 | #import "NSObject+MCO.h"
14 |
15 | @implementation MCOMessagePart
16 |
17 | #define nativeType mailcore::MessagePart
18 |
19 | + (void) load
20 | {
21 | MCORegisterClass(self, &typeid(nativeType));
22 | }
23 |
24 | + (id) mco_objectWithMCObject:(mailcore::Object *)object
25 | {
26 | mailcore::MessagePart * part = (mailcore::MessagePart *) object;
27 | return [[[self alloc] initWithMCPart:part] autorelease];
28 | }
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/src/objc/rfc822/MCOMultipart.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOMultipart.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOMULTIPART_H
10 |
11 | #define MAILCORE_MCOMULTIPART_H
12 |
13 | #import
14 |
15 | /** Multipart parsed from RFC 822 message data. */
16 |
17 | @interface MCOMultipart : MCOAbstractMultipart
18 |
19 | @end
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/objc/rfc822/MCOMultipart.mm:
--------------------------------------------------------------------------------
1 | //
2 | // MCOMultipart.m
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import "MCOMultipart.h"
10 |
11 | #include "MCRFC822.h"
12 |
13 | #import "NSObject+MCO.h"
14 |
15 | @implementation MCOMultipart
16 |
17 | #define nativeType mailcore::Multipart
18 |
19 | + (void) load
20 | {
21 | MCORegisterClass(self, &typeid(nativeType));
22 | }
23 |
24 | + (id) mco_objectWithMCObject:(mailcore::Object *)object
25 | {
26 | mailcore::Attachment * attachment = (mailcore::Attachment *) object;
27 | return [[[self alloc] initWithMCPart:attachment] autorelease];
28 | }
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/src/objc/rfc822/MCORFC822.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCORFC822.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCORFC822_H
10 |
11 | #define MAILCORE_MCORFC822_H
12 |
13 | #import
14 | #import
15 | #import
16 | #import
17 | #import
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/src/objc/smtp/MCOSMTP.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOSMTP.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/29/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOSMTP_H
10 |
11 | #define MAILCORE_MCOSMTP_H
12 |
13 | #import
14 | #import
15 | #import
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/objc/smtp/MCOSMTPOperation+Private.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOSMTPOperation+Private.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 6/22/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOSMTPOPERATION_PRIVATE_H
10 |
11 | #define MAILCORE_MCOSMTPOPERATION_PRIVATE_H
12 |
13 | @class MCOSMTPSession;
14 |
15 | @interface MCOSMTPOperation (Private)
16 |
17 | @property (nonatomic, retain) MCOSMTPSession * session;
18 |
19 | - (NSError *) _errorFromNativeOperation;
20 |
21 | @end
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/objc/utils/MCOIndexSet+Private.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOIndexSet+Private.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/24/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOINDEXSET_PRIVATE_H
10 |
11 | #define MAILCORE_MCOINDEXSET_PRIVATE_H
12 |
13 | #ifdef __cplusplus
14 | @interface MCOIndexSet (Private)
15 |
16 | - (instancetype) initWithMCIndexSet:(mailcore::IndexSet *)indexSet;
17 |
18 | @end
19 | #endif
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/objc/utils/MCOObjectWrapper.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOObjectWrapper.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/25/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOOBJECTWRAPPER_H
10 |
11 | #define MAILCORE_MCOOBJECTWRAPPER_H
12 |
13 | #import
14 |
15 | #ifdef __cplusplus
16 | namespace mailcore {
17 | class Object;
18 | }
19 | #endif
20 |
21 | @interface MCOObjectWrapper : NSObject
22 |
23 | #ifdef __cplusplus
24 | @property (nonatomic, assign) mailcore::Object * object;
25 |
26 | + (MCOObjectWrapper *) objectWrapperWithObject:(mailcore::Object *)object;
27 | #endif
28 |
29 | @end
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/src/objc/utils/MCOOperation+Private.h:
--------------------------------------------------------------------------------
1 | //
2 | // MCOOperation+Private.h
3 | // mailcore2
4 | //
5 | // Created by Matt Ronge on 01/31/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_MCOPERATION_PRIVATE_H
10 |
11 | #define MAILCORE_MCOPERATION_PRIVATE_H
12 |
13 | #ifdef __cplusplus
14 | namespace mailcore {
15 | class Operation;
16 | }
17 | #endif
18 |
19 | // Shhh, secret stuff in here
20 |
21 | @interface MCOOperation (Private)
22 | #ifdef __cplusplus
23 | - (instancetype) initWithMCOperation:(mailcore::Operation *)op;
24 | #endif
25 | - (void) start;
26 | @end
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/src/objc/utils/NSArray+MCO.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSArray+MCO.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/29/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_NSARRAY_MCO_H
10 |
11 | #define MAILCORE_NSARRAY_MCO_H
12 |
13 | #import
14 |
15 | #ifdef __cplusplus
16 | namespace mailcore {
17 | class Array;
18 | }
19 | #endif
20 |
21 | @interface NSArray (MCO)
22 |
23 | #ifdef __cplusplus
24 | + (NSArray *) mco_arrayWithMCArray:(mailcore::Array *)array;
25 |
26 | - (mailcore::Array *) mco_mcArray;
27 | #endif
28 |
29 | @end
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/src/objc/utils/NSData+MCO.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSData+MCO.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/21/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_NSDATA_MCO_H
10 |
11 | #define MAILCORE_NSDATA_MCO_H
12 |
13 | #import
14 |
15 | #ifdef __cplusplus
16 | namespace mailcore {
17 | class Data;
18 | }
19 | #endif
20 |
21 | @interface NSData (MCO)
22 |
23 | #ifdef __cplusplus
24 | + (NSData *) mco_dataWithMCData:(mailcore::Data *)cppData;
25 |
26 | - (mailcore::Data *) mco_mcData;
27 | #endif
28 |
29 | @end
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/src/objc/utils/NSDictionary+MCO.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSDictionary+MCO.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 1/29/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_NSDICTIONARY_MCO_H
10 |
11 | #define MAILCORE_NSDICTIONARY_MCO_H
12 |
13 | #import
14 |
15 | #ifdef __cplusplus
16 | namespace mailcore {
17 | class HashMap;
18 | }
19 | #endif
20 |
21 | @interface NSDictionary (MCO)
22 |
23 | #ifdef __cplusplus
24 | + (NSDictionary *) mco_dictionaryWithMCHashMap:(mailcore::HashMap *)hashmap;
25 |
26 | - (mailcore::HashMap *) mco_mcHashMap;
27 | #endif
28 |
29 | @end
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/src/objc/utils/NSError+MCO.h:
--------------------------------------------------------------------------------
1 | //
2 | // Created by mronge on 1/31/13.
3 | //
4 |
5 | #ifndef MAILCORE_NSERROR_MCO_H
6 |
7 | #define MAILCORE_NSERROR_MCO_H
8 |
9 | #import
10 |
11 | #import
12 |
13 | @interface NSError (MCO)
14 | #ifdef __cplusplus
15 | + (NSError *) mco_errorWithErrorCode:(mailcore::ErrorCode)code;
16 | #endif
17 | @end
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/src/objc/utils/NSIndexSet+MCO.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSIndexSet+MCO.h
3 | // mailcore2
4 | //
5 | // Created by Hoa V. DINH on 9/10/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class MCOIndexSet;
12 |
13 | @interface NSIndexSet (MCO)
14 |
15 | /** Returns a MCOIndexSet from an NSIndexSet */
16 | - (MCOIndexSet *) mcoIndexSet;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/src/objc/utils/NSIndexSet+MCO.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSIndexSet+MCO.m
3 | // mailcore2
4 | //
5 | // Created by Hoa V. DINH on 9/10/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import "NSIndexSet+MCO.h"
10 | #import "MCOIndexSet.h"
11 |
12 | @implementation NSIndexSet (MCO)
13 |
14 | - (MCOIndexSet *) mcoIndexSet
15 | {
16 | MCOIndexSet * result = [MCOIndexSet indexSet];;
17 |
18 | [self enumerateRangesUsingBlock:^(NSRange range, BOOL * stop) {
19 | [result addRange:MCORangeMake(range.location, range.length - 1)];
20 | }];
21 |
22 | return result;
23 | }
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/src/objc/utils/NSSet+MCO.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSSet+MCO.h
3 | // mailcore2
4 | //
5 | // Created by Hoa V. DINH on 1/29/14.
6 | // Copyright (c) 2014 MailCore. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #ifdef __cplusplus
12 | namespace mailcore {
13 | class Set;
14 | }
15 | #endif
16 |
17 | @interface NSSet (MCO)
18 |
19 | #ifdef __cplusplus
20 | + (NSSet *) mco_setWithMCSet:(mailcore::Set *)cppSet;
21 |
22 | - (mailcore::Set *) mco_mcSet;
23 | #endif
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/src/objc/utils/NSValue+MCO.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSValue+MCO.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/21/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_NSVALUE_MCO_H
10 |
11 | #define MAILCORE_NSVALUE_MCO_H
12 |
13 | #import
14 |
15 | #ifdef __cplusplus
16 | namespace mailcore {
17 | class Value;
18 | }
19 | #endif
20 |
21 | @interface NSValue (MCO)
22 |
23 | #ifdef __cplusplus
24 | + (NSValue *) mco_valueWithMCValue:(mailcore::Value *)value;
25 |
26 | - (mailcore::Value *) mco_mcValue;
27 | #endif
28 |
29 | @end
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/src/ui/ios/MCOMessageViewWebDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // Created by Hai Nguyen on 21/12/2020.
3 | // Copyright (c) 2020 MailCore. All rights reserved.
4 | //
5 |
6 | #import
7 | #import
8 |
9 |
10 | @interface MCOMessageViewWebDelegate : NSObject
11 |
12 | @property (nonatomic, copy, nullable) void (^openInlineAttachments)(NSArray * imgUrls);
13 |
14 | - (void)updateImageUrl:(NSString *)path at:(NSString *)cid on:(WKWebView *)webView;
15 |
16 | @end
--------------------------------------------------------------------------------
/src/ui/mac/MCOMessageViewWebDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // Created by Hai Nguyen on 21/12/2020.
3 | // Copyright (c) 2020 MailCore. All rights reserved.
4 | //
5 |
6 | #import
7 | #import
8 |
9 |
10 | @interface MCOMessageViewWebDelegate : NSObject
11 |
12 | @property (nonatomic, copy, nullable) void (^openInlineAttachments)(NSArray * imgUrls);
13 |
14 | - (void)updateImageUrl:(NSString *)path at:(NSString *)cid on:(WKWebView *)webView;
15 |
16 | @end
--------------------------------------------------------------------------------
/tests-ios/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // test ios
4 | //
5 | // Created by DINH Viêt Hoà on 3/29/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/tests-ios/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // test ios
4 | //
5 | // Created by DINH Viêt Hoà on 3/29/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "AppDelegate.h"
12 |
13 | int main(int argc, char *argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/tests/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(
2 | ${CMAKE_CURRENT_BINARY_DIR}/../src/include
3 | ${GLIB2_INCLUDE_DIRS}
4 | )
5 |
6 | link_directories(
7 | ${additional_lib_searchpath}
8 | )
9 |
10 | IF(APPLE)
11 | set(test_mac_files test-all-mac.mm)
12 | set(mac_libraries iconv)
13 | ENDIF()
14 |
15 | add_executable (tests main.cpp test-all.cpp ${test_mac_files})
16 | target_link_libraries (
17 | tests MailCore
18 | ${ZLIB_LIBRARY} ${LIBETPAN_LIBRARY} ${LIBXML_LIBRARY} ${UCHARDET_LIBRARY} sasl2
19 | ${TIDY_LIBRARY} ${CTEMPLATE_LIBRARY} ssl crypto ${linux_libraries} ${mac_libraries}
20 | ${GLIB2_LIBRARIES} ${FOUNDATIONFRAMEWORK} ${SECURITYFRAMEWORK} ${CORESERVICESFRAMEWORK}
21 | )
22 |
--------------------------------------------------------------------------------
/tests/main.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // tests
4 | //
5 | // Created by DINH Viêt Hoà on 1/10/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #include "test-all.h"
10 | #if __APPLE__
11 | #include "test-all-mac.h"
12 | #endif
13 |
14 | int main(int argc, const char * argv[])
15 | {
16 | testAll();
17 | #if __APPLE__
18 | testAllMac();
19 | #endif
20 | return 0;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/tests/test-all-mac.h:
--------------------------------------------------------------------------------
1 | //
2 | // test-all-mac.h
3 | // mailcore2
4 | //
5 | // Created by Hoa Dinh on 11/12/14.
6 | // Copyright (c) 2014 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef __mailcore2__test_all_mac__
10 | #define __mailcore2__test_all_mac__
11 |
12 | #include
13 |
14 | extern void testAllMac();
15 |
16 | #endif /* defined(__mailcore2__test_all_mac__) */
17 |
--------------------------------------------------------------------------------
/tests/test-all.h:
--------------------------------------------------------------------------------
1 | //
2 | // test-all.h
3 | // mailcore2
4 | //
5 | // Created by DINH Viêt Hoà on 3/29/13.
6 | // Copyright (c) 2013 MailCore. All rights reserved.
7 | //
8 |
9 | #ifndef MAILCORE_TEST_ALL_H
10 |
11 | #define MAILCORE_TEST_ALL_H
12 |
13 | #include
14 |
15 | extern void testAll();
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/unittest/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(
2 | ${CMAKE_CURRENT_BINARY_DIR}/../src/include
3 | ${GLIB2_INCLUDE_DIRS}
4 | )
5 |
6 | link_directories(
7 | ${additional_lib_searchpath}
8 | )
9 |
10 | add_executable (unittestcpp unittest.cpp)
11 | target_link_libraries (
12 | unittestcpp MailCore
13 | ${ZLIB_LIBRARY} ${LIBETPAN_LIBRARY} ${LIBXML_LIBRARY} ${UCHARDET_LIBRARY} sasl2
14 | ${TIDY_LIBRARY} ${CTEMPLATE_LIBRARY} ssl crypto ${linux_libraries} ${mac_libraries}
15 | ${GLIB2_LIBRARIES} ${FOUNDATIONFRAMEWORK} ${SECURITYFRAMEWORK} ${CORESERVICESFRAMEWORK}
16 | )
17 |
--------------------------------------------------------------------------------
/unittest/data/builder/input/photo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/builder/input/photo.jpg
--------------------------------------------------------------------------------
/unittest/data/builder/input/photo2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/builder/input/photo2.jpg
--------------------------------------------------------------------------------
/unittest/data/builder/output/builder1.eml:
--------------------------------------------------------------------------------
1 | Date: Sun, 31 Dec 2000 16:00:00 -0800
2 | From: =?utf-8?Q?Ho=C3=A0?=
3 | To: Foo Bar
4 | Message-ID:
5 | Subject: testMessageBuilder1
6 | MIME-Version: 1.0
7 | Content-Type: multipart/alternative; boundary="1"
8 |
9 | --1
10 | Content-Type: text/plain; charset="utf-8"
11 | Content-Transfer-Encoding: 7bit
12 | Content-Disposition: inline
13 |
14 | This is a HTML content
15 | --1
16 | Content-Type: text/html; charset="utf-8"
17 | Content-Transfer-Encoding: quoted-printable
18 | Content-Disposition: inline
19 |
20 | This is a HTML content
21 | --1--
22 |
--------------------------------------------------------------------------------
/unittest/data/charset-detection/input/big5.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/charset-detection/input/big5.txt
--------------------------------------------------------------------------------
/unittest/data/charset-detection/input/gb18030.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/charset-detection/input/gb18030.txt
--------------------------------------------------------------------------------
/unittest/data/charset-detection/input/shift_jis.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/charset-detection/input/shift_jis.txt
--------------------------------------------------------------------------------
/unittest/data/charset-detection/input/utf-8.txt:
--------------------------------------------------------------------------------
1 | 汉字漢字統一編碼萬國碼
2 |
--------------------------------------------------------------------------------
/unittest/data/parser/input/mbox/jwz/15:
--------------------------------------------------------------------------------
1 | Date: Fri, 29 Nov 91 07:13:35 EST
2 | From: Nathaniel Borenstein
3 | To: caseau@france.bellcore.com (Yves J Caseau)
4 | Subject: Please check this out
5 | Content-type: text/plain; charset=iso-8859-1
6 | Content-transfer-encoding: quoted-printable
7 |
8 | Please let me know if I've typed this correctly.
9 | And thanks again for your help! -- Nathaniel
10 |
11 | Le courrier =E9lectronique =E0 la fran=E7aise n=E9cessite
12 | quelques caract=E8res sp=E9ciaux pour faciliter la t=E2che
13 | du lectein et =E9viter les ambigu=EFt=E9s
14 |
--------------------------------------------------------------------------------
/unittest/data/parser/input/mbox/jwz/3:
--------------------------------------------------------------------------------
1 | Date: Thu, 6 Feb 1992 11:51:37 -0500 (EST)
2 | From: Nathaniel Borenstein
3 | Reply-To: Nathaniel Borenstein (=?iso-8859-8?q?=ED=E5=EC=F9 =EF=E1 =E9=EC=E8=F4=F0?=)
4 | To: Nathaniel Borenstein
5 | Subject: test of =?iso-8859-8?q?=FA=E9=F8=E1=F2?= in mail headers
6 | Content-type: text/plain; charset=iso-8859-8
7 | Content-Transfer-Encoding: quoted-printable
8 |
9 | This is an ordinary text message in which my name (=ED=E5=EC=F9 =EF=E1 =E9=EC=E8=F4=F0)
10 | is in Hebrew (=FA=E9=F8=E1=F2).
11 |
12 | There is Hebrew in the Subject and Reply-to headers, if viewed with metamail.
13 |
--------------------------------------------------------------------------------
/unittest/data/parser/input/mbox/jwz/53:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/parser/input/mbox/jwz/53
--------------------------------------------------------------------------------
/unittest/data/parser/input/mbox/jwz/58:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/parser/input/mbox/jwz/58
--------------------------------------------------------------------------------
/unittest/data/parser/input/mbox/jwz/71:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/parser/input/mbox/jwz/71
--------------------------------------------------------------------------------
/unittest/data/parser/input/mbox/simple/1:
--------------------------------------------------------------------------------
1 | From: fejj@gnome.org
2 | To: fejj@gnome.org
3 | Date: Fri, 23 Aug 2002 2:32:53 -0400
4 | Subject: this'll probably break a lot of mime parsers
5 | X-Test-Header:
6 | MIME-Version: 1.0
7 | Content-Type: multipart/mixed; boundary="x"
8 |
9 | --x
10 | Content-Type: multipart/mixed; boundary="xy"
11 |
12 | --xy
13 | Content-Type: multipart/mixed; boundary="xyz"
14 |
15 | --xyz
16 | Content-Type: text/plain
17 |
18 | Hello world.
19 |
20 | multipart/mixed; boundary="x"
21 | multipart/mixed; boundary="xy"
22 | multipart/mixed; boundary="xyz"
23 | text/plain <-- You are here.
24 |
--------------------------------------------------------------------------------
/unittest/data/parser/input/mbox/simple/2:
--------------------------------------------------------------------------------
1 | From: fejj@gnome.org
2 | To: fejj@gnome.org
3 | Date: Fri, 23 Aug 2002 2:32:53 -0400
4 | Subject: this'll probably break even more mime parsers
5 | MIME-Version: 1.0
6 | Content-Type: multipart/mixed; boundary="x"
7 |
8 | --x
9 | Content-Type: multipart/mixed; boundary="x"
10 |
11 | --x
12 | Content-Type: multipart/mixed; boundary="x"
13 |
14 | --x
15 | Content-Type: text/plain
16 |
17 | Hello world.
18 |
19 | multipart/mixed; boundary="x"
20 | multipart/mixed; boundary="x"
21 | multipart/mixed; boundary="x"
22 | text/plain <-- You are here.
23 |
--------------------------------------------------------------------------------
/unittest/data/parser/input/mbox/simple/3:
--------------------------------------------------------------------------------
1 | From: fejj@gnome.org
2 | To: fejj@gnome.org
3 | Date: Fri, 23 Aug 2002 2:32:53 -0400
4 | Subject: if a mime parser can correctly handle this, I'm impressed
5 | MIME-Version: 1.0
6 | Content-Type: multipart/mixed; boundary=""
7 |
8 | --
9 | Content-Type: multipart/mixed; boundary=""
10 |
11 | --
12 | Content-Type: multipart/mixed; boundary=""
13 |
14 | --
15 | Content-Type: text/plain
16 |
17 | Hello world.
18 |
19 | multipart/mixed; boundary=""
20 | multipart/mixed; boundary=""
21 | multipart/mixed; boundary=""
22 | text/plain <-- You are here.
23 |
--------------------------------------------------------------------------------
/unittest/data/parser/input/messages/headers.txt:
--------------------------------------------------------------------------------
1 | Sender: =?utf-8?Q?=D0=92=D0=B5=D1=81=D1=82=D0=BD=D0=B8=D0=BA=20=D0=A7=D0=B8=D0=BF=D1=82=D1=80=D0=B8=D0=BF=D0=B0=C2=AE=20:)?=
2 |
3 | From: =?utf-8?Q?=D0=92=D0=B5=D1=81=D1=82=D0=BD=D0=B8=D0=BA=20=D0=A7=D0=B8=D0=BF=D1=82=D1=80=D0=B8=D0=BF=D0=B0=C2=AE=20:)?=
4 |
5 | To: mimekit@example.com
6 | Subject: test of empty multipart/alternative
7 | Date: Tue, 12 Nov 2013 09:12:42 -0500
8 | MIME-Version: 1.0
9 | Message-ID: <54AD68C9E3B0184CAC6041320424FD1B5B81E74D@localhost.localdomain>
10 | X-Mailer: Microsoft Office Outlook 12.0
11 | Content-Type: plain/text
12 |
13 |
--------------------------------------------------------------------------------
/unittest/data/parser/input/messages/multipart-digest.txt:
--------------------------------------------------------------------------------
1 | From user@domain Fri Feb 22 17:06:23 2008
2 | From: user@domain.org
3 | Date: Sat, 24 Mar 2007 23:00:00 +0200
4 | Mime-Version: 1.0
5 | Content-Type: message/rfc822
6 |
7 | From: sub@domain.org
8 | Date: Sun, 12 Aug 2012 12:34:56 +0300
9 | Subject: submsg
10 | Content-Type: multipart/digest; boundary="foo"
11 |
12 | prologue
13 |
14 | --foo
15 | Content-Type: message/rfc822
16 |
17 | From: m1@example.com
18 | Subject: m1
19 |
20 | m1 body
21 |
22 | --foo
23 | Content-Type: message/rfc822
24 | X-Mime: m2 header
25 |
26 | From: m2@example.com
27 | Subject: m2
28 |
29 | m2 body
30 |
31 | --foo--
32 |
33 | epilogue
34 |
35 |
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/105:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","mailbox":"blaker@craswell.com"},"extraHeaders":{"Content-Type":"application\/x-pkcs7-mime; name=\"smime.p7m\"","MIME-Version":"1.0","Content-Disposition":"attachment; filename=\"smime.p7m\"","Content-Transfer-Encoding":"base64"},"date":"978307200","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"978307200","subject":"enrypted","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"application\/x-pkcs7-mime","class":"mailcore::Attachment","filename":"smime.p7m","attachment":"1"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/133:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","mailbox":"tro@partech.com"},"extraHeaders":{"Newsgroups":"mcom.dev.client.x_bug","Organization":"Local Mail\/News Gateway"},"date":"799107257","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"799107257","subject":"Jumbo Bug Report","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"text\/plain","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/134:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","mailbox":"tro@partech.com"},"extraHeaders":{"Content-Type":"x-sun-attachment","Newsgroups":"mcom.dev.client.x_bug"},"date":"799107257","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"799107257","subject":"Jumbo Bug Report","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"x-sun-attachment\/unknown","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/138:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","mailbox":"nsb@thumper.bellcore.com"},"extraHeaders":{"Content-type":"message\/partial; number=3; total=3; id=foobar"},"date":"3847176817","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"3847176817","subject":"GIF image (3\/3)","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"message\/partial","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/140:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","mailbox":"jwz"},"date":"978307200","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"978307200","subject":"test of URLs in text\/plain messages","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"text\/plain","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/141:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","displayName":"Jamie Zawinski","mailbox":"jwz@netscape.com"},"date":"834733549","messageID":"31C105ED.41C6adfas@netscape.com","receivedDate":"834733549","subject":"uuencoded images","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"text\/plain","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/149:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","displayName":"Nathaniel Borenstein","mailbox":"nsb@thumper.bellcore.com"},"extraHeaders":{"MIME-Version":"1.0","Content-Transfer-Encoding":"base64","Content-type":"application\/octet-stream","Content-Description":"This is really audio data"},"date":"3847176818","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"3847176818","subject":"Binary (octet-stream) test","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"application\/octet-stream","contentDescription":"This is really audio data","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/15:
--------------------------------------------------------------------------------
1 | {"header":{"to":{"class":"mailcore::Array","items":[{"class":"mailcore::Address","mailbox":"caseau@france.bellcore.com"}]},"from":{"class":"mailcore::Address","displayName":"Nathaniel Borenstein","mailbox":"nsb@thumper.bellcore.com"},"extraHeaders":{"Content-transfer-encoding":"quoted-printable","Content-type":"text\/plain; charset=iso-8859-1"},"date":"3847176815","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"3847176815","subject":"Please check this out","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"text\/plain","charset":"iso-8859-1","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/151:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","mailbox":"nsb@thumper.bellcore.com"},"extraHeaders":{"Content-type":"message\/partial; number=1; total=3; id=foobar"},"date":"3847176819","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"3847176819","subject":"GIF image (1\/3)","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"message\/partial","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/46:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","mailbox":"nsb"},"extraHeaders":{"MIME-Version":"1.0","Content-type":"Multipart\/mixed; boundary=horsespit"},"date":"3847176816","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"3847176816","subject":"A multipart with quoted-printable test","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"multipart\/mixed","class":"mailcore::Multipart","parts":{"class":"mailcore::Array","items":[{"partType":"single","uniqueID":"0","mimeType":"image\/gif","class":"mailcore::Attachment"},{"partType":"single","uniqueID":"1","mimeType":"text\/plain","class":"mailcore::Attachment"}]}}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/68:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","mailbox":"Cat@Pic.net"},"extraHeaders":{"Newsgroups":"alt.romance.chat","Organization":"PICnet"},"date":"799193316","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"799193316","subject":"Jessica... - jesica.bmp [1\/1]","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"text\/plain","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/parser/output/mbox/jwz/92:
--------------------------------------------------------------------------------
1 | {"header":{"from":{"class":"mailcore::Address","mailbox":"nsb@thumper.bellcore.com"},"extraHeaders":{"Content-type":"message\/partial; number=2; total=3; id=foobar"},"date":"3847176816","messageID":"MyMessageID123@mail.gmail.com","receivedDate":"3847176816","subject":"GIF image (2\/3)","class":"mailcore::MessageHeader"},"class":"mailcore::MessageParser","mainPart":{"partType":"single","uniqueID":"0","mimeType":"message\/partial","class":"mailcore::Attachment"}}
--------------------------------------------------------------------------------
/unittest/data/summary/input/1640-no-charset.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/1640-no-charset.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/1641-no-charset.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/1641-no-charset.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/1798-korean.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/1798-korean.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/2135-korean.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/2135-korean.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/2458-encoding.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/2458-encoding.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/2518-encoding.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/2518-encoding.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/2765-korean.eml:
--------------------------------------------------------------------------------
1 | From: =?ks_c_5601-1987?B?wMy8urz2?= ss.lee@gph.me
2 | To: =?ks_c_5601-1987?B?J7Czud/GwCc=?= dev@gph.me
3 | Subject: =?ks_c_5601-1987?B?ZXJyb3Jsb2cgwaS4rg==?=
4 | Content-Type: text/plain
5 |
6 | sdf sakhjasgsdfg
7 | dfsg kjsdfg kslfg
8 |
--------------------------------------------------------------------------------
/unittest/data/summary/input/4850-russian.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/4850-russian.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/5230-thai-chinese.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/5230-thai-chinese.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/989-encoding-5.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/989-encoding-5.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/989-encoding-7.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/989-encoding-7.eml
--------------------------------------------------------------------------------
/unittest/data/summary/input/989-encoding-8.eml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MailCore/mailcore2/7417b2e8dd7e2c028aadb72056e4d1428c0627c4/unittest/data/summary/input/989-encoding-8.eml
--------------------------------------------------------------------------------
/unittest/data/summary/output/1015-windows-1252.txt:
--------------------------------------------------------------------------------
1 | From: Test test
2 | To: Test test
3 | Subject: Test test
4 | Date: December 1, 2014 at 2:59:42 PM PST
5 |
6 | Thanks, Lena. So I guess I have an issue with Siri on one of my iPads, which is why the microphone wasn’t showing up.
7 |
8 | ...
9 |
10 | [Description: Description: cid:image001.png@01CD286C.D0001580]
11 | ––––––––––––––––––––––––––––––––––––––––––––––––––––––
12 |
--------------------------------------------------------------------------------
/unittest/data/summary/output/1021-chinese.txt:
--------------------------------------------------------------------------------
1 | From: 向左
2 | To: 189佑
3 | Subject: 哈哈
4 | Date: December 23, 2014 at 12:09:33 PM PST
5 |
6 | 哈哈
7 |
--------------------------------------------------------------------------------
/unittest/data/summary/output/1798-korean.txt:
--------------------------------------------------------------------------------
1 | From: EarlyShop
2 | To: dhjang@teramail.com
3 | Subject: [주말특가] 일본정품 후끈후끈 핫팩, 손난로 주말특가!
4 | Date: January 6, 2011 at 10:04:21 PM PST
5 |
6 |
--------------------------------------------------------------------------------
/unittest/data/summary/output/1808-winmail-dat.txt:
--------------------------------------------------------------------------------
1 | From: Noureddine Rhallam
2 | To: prout@prout.com
3 | Subject: RE : TR : Installation Hyperion sous Linux
4 | Date: January 11, 2011 at 5:34:52 AM PST
5 |
6 | Bonjou:
7 | r voilà les print ecran :en fichier joint.
8 |
9 | Qu'elle est la procédure pour exporter la base ves Linux SVP.
10 |
11 | Je pense mr Giaume que vous avec une connection SSL chez nous ????
12 |
13 | Noureddine
14 |
15 | - winmail.dat, 203 KB
--------------------------------------------------------------------------------
/unittest/data/summary/output/2765-korean.txt:
--------------------------------------------------------------------------------
1 | From: =?ks_c_5601-1987?B?wMy8urz2?=ss.lee@gph.me
2 | To: =?ks_c_5601-1987?B?J7Czud/GwCc=?=dev@gph.me
3 | Subject: errorlog 정리
4 | Date: December 31, 2000 at 4:00:00 PM PST
5 |
6 | sdf sakhjasgsdfg
7 | dfsg kjsdfg kslfg
8 |
--------------------------------------------------------------------------------
/unittest/data/summary/output/2977-chinese.txt:
--------------------------------------------------------------------------------
1 | From: Chris Yip