Archived:E-mail fetch limit in e-mail service settings on S60 2nd Edition (Known Issue)
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:
EHeadersOnly = -2,
EFullBody = -1,
EUserDefinedKB = 0
So everything greater than (and equal to) EUserDefinedKB will set the fetch limit to a manual setting.