Allocation of Interest Earned on Uninvested Capital

Hi,
Is there any way to have the interest generated on uninvested capital credited to the same envelope that generated that interest? Currently, I have money in the expenses envelope earning interest, but the interest is being credited to the main envelope.