This tutorial explains how to specify the download rules.
Create an instance of the CEmailAccounts class.
Create an instance of the CImIAPPreferences class to be used by the email service.
Create an instance of the CImSmtpSettings class, and populate it the PopulateDefaultSmtpSettingsL function with required access settings. For example, username, port, email address, password, SMTP authentication, and soon on.
Create an instance of the CImImap4Settings class, and populate it the PopulateDefaultImapSettingsL function with required access settings. For example, username, port, email address, password, SMTP authentication, and soon on.
Create an instance of the CImapSyncDownloadRules class, and populate with required download rules.
Create the associated IMAP accounts in central repository (CenRep) using the appropriate CEmailAccounts::CreateImapAccountL() function, which takes the CImapSyncDownloadRules reference.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.