(CC to tortoisehg-discuss. tortoisehg-issues is for issue notifications) On Sat, 11 Jan 2014 07:50:46 -0800, dave wrote: > By the way, my first attempts were with smtp.googlemail.com set as the > host and I get the same "connection unexpectedly closed" bug report. Do > I need to open a bug?
Can you test it with command-line "hg" ? Hopefully "hg email --debug" will provide more details. Regards, > On 01/11/2014 12:32 AM, Steve Barnes wrote: > > On 11/01/14 00:01, dave wrote: > >> I am trying to set up tortoisehg so that I can send an email patch > >> but after about 10 minutes I get the "connection unexpectedly closed" > >> bug report. > >> > >> from my .hgrc > >> > >> [smtp] > >> host = imap.googlemail.com > >> port = 465 > >> tls = True > >> username = [email protected] > >> local_hostname = > >> > >> [ui] > >> username =Dave <[email protected]> > >> > >> [email] > >> from = [email protected] > >> to = [email protected] > >> method = smtp > >> > >> I have tried with the password and local_hostname set in settings and > >> without setting it. When password is not set it doesn't ask me for it. > >> > >> with tls set to false and port set to 25 it simply times out with no > >> bug report. > >> > >> This the hg command tortoisehg is running > >> > >> % hg email --body --from [email protected] --to [email protected] --cc "" > >> --rev 5812 --flag "" --in-reply-to "" > >> this patch series consists of 1 patches. > >> > >> > >> Here is the bug report > >> > >> #!python > >> ** Mercurial version (2.8.2). TortoiseHg version (2.10) > >> ** Command: --nofork > >> ** CWD: /home/myhome/Development/myproject > >> ** Encoding: UTF-8 > >> ** Extensions loaded: strip, mq, patchbomb > >> ** Python version: 2.7.6 (default, Dec 30 2013, 14:37:40) [GCC 4.8.2] > >> ** System: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 > >> ** Qt-4.8.2 PyQt-4.9.3 QScintilla-2.6.2 > >> Traceback (most recent call last): > >> File "/usr/lib/python2.7/dist-packages/tortoisehg/hgqt/thread.py", > >> line 269, in run > >> self.ret = hglib.dispatch(ui, self.cmdline) or 0 > >> File "/usr/lib/python2.7/dist-packages/tortoisehg/util/hglib.py", > >> line 708, in dispatch > >> return hgdispatch._dispatch(req) > >> File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line > >> 806, in _dispatch > >> cmdpats, cmdoptions) > >> File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line > >> 585, in runcommand > >> ret = _runcommand(ui, options, cmd, d) > >> File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line > >> 897, in _runcommand > >> return checkargs() > >> File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line > >> 868, in checkargs > >> return cmdfunc() > >> File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line > >> 803, in <lambda> > >> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) > >> File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line > >> 512, in check > >> return func(*args, **kwargs) > >> File "/usr/lib/python2.7/dist-packages/hgext/patchbomb.py", line > >> 551, in patchbomb > >> sendmail = mail.connect(ui, mbox=mbox) > >> File "/usr/lib/python2.7/dist-packages/mercurial/mail.py", line > >> 189, in connect > >> return _smtp(ui) > >> File "/usr/lib/python2.7/dist-packages/mercurial/mail.py", line > >> 125, in _smtp > >> s.connect(host=mailhost, port=mailport) > >> File "/usr/lib/python2.7/smtplib.py", line 312, in connect > >> (code, msg) = self.getreply() > >> File "/usr/lib/python2.7/smtplib.py", line 363, in getreply > >> raise SMTPServerDisconnected("Connection unexpectedly closed") > >> SMTPServerDisconnected: Connection unexpectedly closed > >> > >> I suspect I don't have it configured correctly and not a bug in > >> tortoisehg. > >> > >> I am running debian xfce wheezy but upgraded tortoisehg to that of > >> debian jessie which is 2.10-1. > >> > >> Oddly, while I have 2.10-1 installed according to dpkg-query, > >> help->about tortoisehg tells me I am running 2.10 and that I should > >> upgrade to 2.10-1. Also, the email preview is blank. > >> > >> Any help would be greatly appreciated. > >> > >> Dave ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Tortoisehg-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

