Archived:E-mail fetch limit in e-mail service settings on S60 2nd Edition (Known Issue)
The article is believed to be still valid for the original topic scope.
Article Metadata
Compatibility
Article
Contents |
Overview
The SetPopulationLimitL method should be used instead of SetMaxEmailSize.
Description
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.
Solution
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.


(no comments yet)