Bug 166621 - Broken error messages coming from KIO slaves
Summary: Broken error messages coming from KIO slaves
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: sending (show other bugs)
Version: 1.10.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2008-07-15 14:35 UTC by Malte S. Stretz
Modified: 2015-04-12 10:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malte S. Stretz 2008-07-15 14:35:03 UTC
Version:           1.10.0 (using 4.00.98 (KDE 4.0.98 (4.1 RC1)), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-19-generic

Seems like I mistyped my password in the account wizard.  Took me a while to find that out because, at some point I suddenly got a message

"Authorization failed, Unable to authenticate via PLAIN.
The server mail.layer0.de replied:
Authentication failed. authentication not supported"

When I tried to actually send a mail, I got

"Sending failed:
Your SMTP server does not support The server responded: "Error: authentication failed".
Choose a different authentication method.
The server responded: "Error: authentication failed"
The message will stay in the 'outbox' folder until you either fix the problem (e.g. a broken address) or remove the message from the 'outbox' folder.
The following transport was used:
 layer0.de"

Please notice that broken error string in line 2 ("does not support " what?).  It then told me to choose a different authentication method.  Why?  I just mistyped my password and it took me 15 minutes to track down a bug in KMail which wasn't one in the end :-/
Comment 1 Thomas McGuire 2008-07-15 21:41:14 UTC
Indeed, some of the error messages are pretty broken, like the second one. It's on my plan to fix them eventually.

Where did the first message come from? Also from sending? Was the second error message your second sending attempt? Did you do something in between the two steps?
Comment 2 Malte S. Stretz 2008-07-15 22:20:13 UTC
The first one appeared shortly after I set up my accounts via the wizard, I think when I opened the config dialog.  Or when I accessed my IMAP inbox for the first time, which didn't work.  I restarted KMail and it worked.

The weird thing is that my password was correct, just all-lowercase (I ran the AUTH PLAIN string from my .xsession-errors thru base64 -d).  Maybe I didn't hit the shift key correctly, still weird though.

Sorry, don't know exactly, I'll might try to wipe my KMail config and try again tomorrow though.
Comment 3 Thomas McGuire 2008-07-15 22:30:26 UTC
Ah, the first message is not from a SMTP server, but from an IMAP.

BTW, in that message, it was the server who said that PLAIN is not supported:
> The server mail.layer0.de replied: 
> Authentication failed. authentication not supported" 
Comment 4 Malte S. Stretz 2008-07-15 22:55:42 UTC
But it works with PLAIN.  The server didn't tell which authentication isn't supported, so maybe KMail thought it used PLAIN but used LOGIN or something?  Or it didn't use SSL, which is mandatory on that IMAP server.  But after a KMail restart everything worked fine.

I'll try with a clean config tomorrow.
Comment 5 FiNeX 2009-04-04 18:45:37 UTC
A lot of changes has been done on the first KDE 4 versions of Kmail. Can you still reproduce this problem on KDE 4.2.2?
Comment 6 Malte S. Stretz 2009-04-05 14:20:33 UTC
Dunno, as this was a one-time setup issue. Thomas wrote he planned to change the error messages, he should know if this is fixed. A grep on the sources for the messages I got might help as well.
Comment 7 Torgny Nyblom 2009-10-23 20:11:26 UTC
SVN commit 1039529 by tnyblom:

Change KIO::ERR_ values to better fit the messages given.

CCBUG: 166621
CCBUG: 211050


 M  +6 -6      imap4.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1039529
Comment 8 Torgny Nyblom 2009-10-24 14:30:32 UTC
SVN commit 1039720 by tnyblom:

Improve error messages.

CCBUG: 166621


 M  +5 -5      smtp.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1039720
Comment 9 Laurent Montel 2015-04-12 10:23:00 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.