POP3 mail add-on: fix fetching mail bodies without limit

* "No limit set" is signaled by a negative value in fFetchBodyLimit
  (cf. logic in POP3Protocol::SyncMessages())
This commit is contained in:
Julian Harnath 2015-03-01 20:28:33 +01:00
parent c4be934261
commit 3d5b1581ac

View File

@ -82,7 +82,7 @@ POP3Protocol::POP3Protocol(const BMailAccountSettings& settings)
create_directory(fDestinationDir, 0777); create_directory(fDestinationDir, 0777);
fFetchBodyLimit = 0; fFetchBodyLimit = -1;
if (fSettings.HasInt32("partial_download_limit")) if (fSettings.HasInt32("partial_download_limit"))
fFetchBodyLimit = fSettings.FindInt32("partial_download_limit"); fFetchBodyLimit = fSettings.FindInt32("partial_download_limit");
} }