Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:E-mail fetch limit in e-mail service settings on S60 2nd Edition (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Platform(s): S60 2nd Edition FP2
S60 2nd Edition FP2
Created: User:Technical writer 1 (25 Aug 2005)
Last edited: hamishwillee (19 Jun 2012)



The SetPopulationLimitL method should be used instead of SetMaxEmailSize.


When fetching new e-mail messages, the MaxEmailSize setting is not used to determine the size limit, but a value that has been set to the e-mail service settings by the SetPopulationLimitL method. This method is public but it has not been documented in the S60 2nd Edition, FP2 API reference.

How to reproduce

The problem arises only when programmatically creating a new e-mail service (and settings, e.g. by CImPop3Settings). Any e-mail maximum fetch size that has been set by the method CImPop3Settings::SetMaxEmailSize() will not be taken into account when the fetch is run.


Instead of SetMaxEmailSize use
CImPop3Settings::SetPopulationLimitL(const TInt32 aPopulationLimit).
The parameter aPopulationLimit could be defined as an enumeration as follows:
enum TEmailFetchedParts
EHeadersOnly = -2,
EFullBody = -1,
EUserDefinedKB = 0
So everything greater than (and equal to) EUserDefinedKB will set the fetch limit to a manual setting.

This page was last modified on 19 June 2012, at 00:45.
40 page views in the last 30 days.