[PATCH] Catch smtp exceptions
Matt Mackall
mpm at selenic.com
Fri Oct 19 18:43:32 UTC 2007
On Fri, Sep 07, 2007 at 04:50:25PM +0200, Christian Ebert wrote:
> # HG changeset patch
> # User Christian Ebert <blacktrash at gmx.net>
> # Date 1189176522 -7200
> # Node ID 65b3553e7b8bd3705a3e96446a0491d11e8511dc
> # Parent 18091102a6333d38c68fd6e590e6bfea0970b771
> Catch smtp exceptions
>
> diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
> --- a/hgext/patchbomb.py
> +++ b/hgext/patchbomb.py
> @@ -411,7 +411,8 @@ def patchbomb(ui, repo, *revs, **opts):
> ui.status('Sending ', m['Subject'], ' ...\n')
> # Exim does not remove the Bcc field
> del m['Bcc']
> - mailer.sendmail(sender, to + bcc + cc, m.as_string(0))
> + mail.sendmail(ui, sender, to + bcc + cc, m.as_string(0),
> + mailer=mailer)
This change looks suspicious?
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list