[fix bug 879759] Core and mail functionality for the swag/budget automation.