Registre de correu electrònic: Quasi-Herglotz functions and convex optimization