Adding Per Bearer-Type Download Rules

This tutorial explains how to add the download rules.


  1. Create an instance of the CEmailAccounts class.

  2. Create an instance of the CImapSyncDownloadRules class, and populate it with required download rules, for example, EFolderRulesType and EInboxRulesType.

  3. Obtain the account ID using the TImapAccount class for the IMAP account that has to be updated.

  4. Save the download rules to central repository using the CEmailAccounts::SaveImapSyncDownloadRulesL() function, passing the IMAP account ID and the newly created download rules.