Fix count_pop_accounts. Returns number of all accounts regardless if it is a pop account or not (as before and in the whole file)...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40402 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -44,14 +44,8 @@ send_queued_mail(void)
|
|||||||
_EXPORT int32
|
_EXPORT int32
|
||||||
count_pop_accounts(void)
|
count_pop_accounts(void)
|
||||||
{
|
{
|
||||||
BPath path;
|
BMailAccounts accounts;
|
||||||
status_t status = find_directory(B_USER_SETTINGS_DIRECTORY,&path);
|
return accounts.CountAccounts();
|
||||||
if (status < B_OK)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
path.Append("Mail/chains/inbound");
|
|
||||||
BDirectory dir(path.Path());
|
|
||||||
return dir.CountEntries();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user