diff -r cc58c228503e -r ca572e94d8e7 mercurial/mail.py --- a/mercurial/mail.py Wed Nov 23 02:11:24 2011 +0100 +++ b/mercurial/mail.py Wed Nov 23 02:36:33 2011 +0100 @@ -114,8 +114,8 @@ return _smtp(ui) return lambda s, r, m: _sendmail(ui, s, r, m) -def sendmail(ui, sender, recipients, msg): - send = connect(ui) +def sendmail(ui, sender, recipients, msg, mbox=None): + send = connect(ui, mbox=mbox) return send(sender, recipients, msg) def validateconfig(ui):