equal
deleted
inserted
replaced
41 // when flag is removed |
41 // when flag is removed |
42 #include "ipsplgsosbaseplugin.hrh" |
42 #include "ipsplgsosbaseplugin.hrh" |
43 |
43 |
44 //CONSTANTS |
44 //CONSTANTS |
45 const TInt KMaxMailboxes = 10; |
45 const TInt KMaxMailboxes = 10; |
|
46 const TInt KImapDefFoldersRetrieve = 50; // Default value for retrieve From other folders |
46 |
47 |
47 // security enums in fs wizard cenrep cenrep |
48 // security enums in fs wizard cenrep cenrep |
48 // Security protocol (0 = OFF, 1 = StartTLS, 2 = SSL/TLS) |
49 // Security protocol (0 = OFF, 1 = StartTLS, 2 = SSL/TLS) |
49 const TInt KWizardDataSecurityOff = 0; |
50 const TInt KWizardDataSecurityOff = 0; |
50 const TInt KWizardDataSecurityTLS = 1; |
51 const TInt KWizardDataSecurityTLS = 1; |
380 aSetData.SetDownloadSizeL( CIpsSetData::EHeaders,KIpsSetDataHeadersOnly); |
381 aSetData.SetDownloadSizeL( CIpsSetData::EHeaders,KIpsSetDataHeadersOnly); |
381 } |
382 } |
382 else |
383 else |
383 { |
384 { |
384 aSetData.SetDownloadSizeL( CIpsSetData::EHeadersPlus, KIpsSetDataDefaultDownloadSizeKb ); |
385 aSetData.SetDownloadSizeL( CIpsSetData::EHeadersPlus, KIpsSetDataDefaultDownloadSizeKb ); |
|
386 |
|
387 TInt retImFolders = aSetData.RetrieveLimit(CIpsSetData::EImap4Folders); //TRetrieveLimit |
|
388 if(retImFolders==-1) |
|
389 { |
|
390 TInt retPopInbox = aSetData.RetrieveLimit(CIpsSetData::EPop3Limit); |
|
391 TInt retImInbox = aSetData.RetrieveLimit(CIpsSetData::EImap4Inbox); |
|
392 aSetData.SetRetrieveLimit(retPopInbox,retImInbox,KImapDefFoldersRetrieve); |
|
393 } |
385 } |
394 } |
386 //</cmail> |
395 //</cmail> |
387 aSetData.SetEmailAddressL( iEmailAddress ); |
396 aSetData.SetEmailAddressL( iEmailAddress ); |
388 aSetData.SetUserNameL( iUsername, iUsername ); |
397 aSetData.SetUserNameL( iUsername, iUsername ); |
389 aSetData.SetUserPwdL( iPassword, iPassword ); |
398 aSetData.SetUserPwdL( iPassword, iPassword ); |