It seems that when calling bitcoind via RPC, Immature transactions are handled inconsistently with respect to the getbalance method.
When calling getbalance with no parameters, Immature transactions are not included in the total returned however when calling getbalance with an account name or * as an argument, Immature transactions are included in the returned value.
ben$ bitcoind getbalance
3950.00000000
ben$ bitcoind getbalance "*"
8950.00000000
ben$ bitcoind listaccounts
{
"" : 5600.00000000,
"p2pool" : 3350.00000000
}
ben$ bitcoind getbalance ""
5600.00000000
ben$ bitcoind getbalance p2pool
3350.00000000
Is this the expected behavior?