{if $result_msg == -1}
{t}An error occurred while trying to run your query{/t}
{elseif $result_msg == 1}
{if $smarty.post.cat == 'remove'}
{t}Thank you, the emails were removed successfully{/t}
{else}
{t}Thank you, the emails were restored successfully{/t}
{/if}
{/if}