Public bug reported:

Binary package hint: python-uno

Ubuntu: 8.04
OpenOffice.org: 2.4.1

When using OpenOffice.org mail merge for sending e-mails, Writer seems
to freeze when the SMTP connection fails. This occurs at two places:
First, in the "Mail Merge E-mail" settings, there is a button "Test
Settings". Second, when sending the final mail via the "send documents"
button.

The problem is caused by /usr/lib/openoffice/program/mailmerge.py. It
uses Pythons's smtplib to establish an SMTP connection to the server.
smtplib uses sockets. But the default timeout value for sockets is very
high, so Writer seems to freeze before an error message is displayed
several minutes later. The very sense of a "test settings" function is
pointless when the programm freezes instead of displaying an error
message in a reasonable span of time.

I wrote a simple patch againts mailmerge.py that sets the timeout to 10
seconds and catches exceptions raised while trying to connect to the
SMTP server. Maybe it can be useful for fixing this bug.

** Affects: openoffice.org (Ubuntu)
     Importance: Undecided
         Status: New

-- 
mailmerge hangs too long when SMTP connection fails
https://bugs.launchpad.net/bugs/249475
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to