Gravar-mail: Immune response from a resource allocation perspective