Envoyer la notice par courriel: Optimization of an irreversible Carnot engine in finite time and finite size