Bug 153932 - OPTIONS DIALOG: hang and imaplib.IMAP4.abort socket error when testing settings in Mail Merge Email
Summary: OPTIONS DIALOG: hang and imaplib.IMAP4.abort socket error when testing settin...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Mail-Merge Options-Dialog-Writer
  Show dependency treegraph
Reported: 2023-03-02 19:26 UTC by Strawberry Fields
Modified: 2023-04-12 06:30 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Strawberry Fields 2023-03-02 19:26:07 UTC
When I fill out the form to connect with the IMAP server (SMTP the same) LibreOffice is not able to connect to the provider's server.

Even after setting up an App-Password with the provider, Yahoo!, it is impossible to log in their server.

Steps to Reproduce:
1. Options → LibreOffice Writer → Serial e-mail
2. Setting up SMTP and IMAP, adding e-mail address and password.
3. Testing

Actual Results:
No success. 

Expected Results:
Should connect and make me able to send serial e-mails.

Reproducible: Always

User Profile Reset: No

Additional Info:
LibreOffice konnte keine Verbindung zum Postausgangsserver herstellen. Bitte überprüfen Sie die Netzwerkeinstellungen Ihres Systems und die Einstellungen in LibreOffice. Überprüfen Sie den Servernamen, den Port und die Sicherheitseinstellungen.
<class 'imaplib.IMAP4.abort'>: socket error: EOF, traceback follows
  File "/opt/libreoffice7.5/program/mailmerge.py", line 304, in connect
    self.server = imaplib.IMAP4(server, port)
  File "/opt/libreoffice7.5/program/python-core-3.8.16/lib/imaplib.py", line 201, in __init__
  File "/opt/libreoffice7.5/program/python-core-3.8.16/lib/imaplib.py", line 243, in _connect
    self.welcome = self._get_response()
  File "/opt/libreoffice7.5/program/python-core-3.8.16/lib/imaplib.py", line 1050, in _get_response
    resp = self._get_line()
  File "/opt/libreoffice7.5/program/python-core-3.8.16/lib/imaplib.py", line 1160, in _get_line
    raise self.abort('socket error: EOF')
Comment 1 Dieter 2023-03-21 20:33:28 UTC
Yes, doesn't work

Version: (X86_64) / LibreOffice Community
Build ID: b5c3a7502f7ff6ccf0f829c1f3a2ba50b8584c41
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-GB
Calc: CL threaded
Comment 2 Strawberry Fields 2023-04-03 04:24:46 UTC
I updated LibreOffice to version at Debian Linux, still the same issue.
Comment 3 Stéphane Guillou (stragu) 2023-04-12 06:30:22 UTC
I can also see a very long hang (several minutes) followed by the same error message in:

Version: (X86_64) / LibreOffice Community
Build ID: 53bb9681a964705cf672590721dbc85eb4d0c3a2
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Using settings:

- Outgoing Email Server (SMTP only)
   - Port 465 or 587
   - Use secure connection
- Server authentication
   - The outgoing mail server requires authentication
   - The outgoing mail server uses the same authentication
      - Port 143 or 993 (always reverts back to 993)
      - Type IMAP

(using options listed for LibreOffice accounts, listed on https://wiki.documentfoundation.org/Website/MailAccounts)

Even if the settings are wrong, LO should not hang for that long without any feedback. At the very least, the Test Settings dialog should pop up, with some indication that a test is in progress and the option to stop.

Justin, what do you think?