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:
parent
2e5122917d
commit
c608a3b2bc
@ -44,14 +44,8 @@ send_queued_mail(void)
|
||||
_EXPORT int32
|
||||
count_pop_accounts(void)
|
||||
{
|
||||
BPath path;
|
||||
status_t status = find_directory(B_USER_SETTINGS_DIRECTORY,&path);
|
||||
if (status < B_OK)
|
||||
return 0;
|
||||
|
||||
path.Append("Mail/chains/inbound");
|
||||
BDirectory dir(path.Path());
|
||||
return dir.CountEntries();
|
||||
BMailAccounts accounts;
|
||||
return accounts.CountAccounts();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user