This tutorial explains how to add the download rules.
Create an instance of the CEmailAccounts class.
Create an instance of the CImapSyncDownloadRules class, and populate it with required download rules, for example, EFolderRulesType and EInboxRulesType.
Obtain the account ID using the TImapAccount class for the IMAP account that has to be updated.
Save the download rules to central repository using the CEmailAccounts::SaveImapSyncDownloadRulesL() function, passing the IMAP account ID and the newly created download rules.
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.