This tutorial explains how to delete the specified per-bearer-type download rules of an IMAP account.
Create an instance of the CEmailAccounts class.
Obtain the account ID using the TImapAccount class for the IMAP account to be updated.
Create an instance of the CImapSyncDownloadRules class.
Populate the download rules from the central repository (CenRep) using the CEmailAccounts::LoadImapSyncDownloadRules() function, and by passing the IMAP account ID.
Call the CImapSyncDownloadRules::DeleteBearerTypesL() function specifying Inbox or other folders, and the bearer type for which download rules are to be deleted.
Save the download rules to CenRep using the CEmailAccounts::SaveImapSyncDownloadRulesL() function, passing the IMAP account ID and the newly created 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.