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