Summary: | Mailody does not show connect with cpanel or dovecot (SSL) imap server | ||
---|---|---|---|
Product: | [Unmaintained] mailody | Reporter: | David Bremner <bremner-keyword-kde.673b66> |
Component: | general | Assignee: | Tom Albers <toma> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.2.0-beta1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
David Bremner
2006-10-27 18:25:20 UTC
It might be that switching mailservers is not bug free, you might be bitten by that. I've just installed dovecot-imapd 1.0-rc2 and it works flawless for me. Op zo 29 okt 2006 14:18 schreef u:
> To check the switch mailservers idea, I did a clean install on
> a different debian testing machine, and still no luck connecting to
> dovecot over ssl.
>
> The debugging output looks like:
>
> [ 40 quixote ~ ] mailody
> [ 41 quixote ~ ] mailody: DB CONSTRUCTOR called
> mailody: TLS not supported!
> mailody: IMAPS Connecting to : 135567204
> QGDict::hashKeyString: Invalid null key
> QGDict::hashKeyString: Invalid null key
> QGDict::hashKeyString: Invalid null key
> QGDict::hashKeyString: Invalid null key
> [repeated many times]
>
> Could it be trying a TLS dialog even though I selected SSL in the
> setup?
The encryption of TLS is the same as for SSL. Your console shows that TLS is not supported. Did you compile Mailody manually? What was the end of the configure command? Did it tell you QCA was installed?
any news on this? SVN commit 602297 by toma: Properly detect if SSL/TLS is possible and warn about it. Disable the settings if needed. CLosing the bugs which I think are related to this. BUG:136391,136460 CCBUG: 136670 M +6 -0 global.cpp M +5 -0 global.h M +22 -4 setupaccount.cpp M +10 -6 socketsafe.cpp --- trunk/playground/pim/mailody/src/global.cpp #602296:602297 @@ -20,6 +20,7 @@ #include <kabc/stdaddressbook.h> #include <kapplication.h> #include <krun.h> +#include <qca.h> #include "../libkmime/kmime_headers.h" #include "global.h" @@ -88,3 +89,8 @@ } return address; } + +bool Global::cryptoConnectionSupported() +{ + return QCA::isSupported(QCA::CAP_TLS); +} --- trunk/playground/pim/mailody/src/global.h #602296:602297 @@ -60,6 +60,11 @@ */ static QString myEmail(); + /** + * will return true when it is possible to use SSL or TLS + */ + static bool cryptoConnectionSupported(); + private: static Global* m_instance; }; --- trunk/playground/pim/mailody/src/setupaccount.cpp #602296:602297 @@ -48,6 +48,7 @@ using KWallet::Wallet; // Local includes. +#include "global.h" #include "setupaccount.h" class SetupAccountPriv @@ -110,8 +111,8 @@ d->safeImap = new QButtonGroup(3, Qt::Horizontal, parent); d->safeImap->setExclusive(true); new QRadioButton(i18n("None"), d->safeImap); - new QRadioButton(i18n("SSL"), d->safeImap); - new QRadioButton(i18n("TLS"), d->safeImap); + QRadioButton* sslRadioI = new QRadioButton(i18n("SSL"), d->safeImap); + QRadioButton* tlsRadioI = new QRadioButton(i18n("TLS"), d->safeImap); m->addWidget(d->safeImap,3,1); l5->setBuddy(d->safeImap); @@ -151,8 +152,8 @@ d->safeSMTP = new QButtonGroup(3, Qt::Horizontal, parent); d->safeSMTP->setExclusive(true); new QRadioButton("None", d->safeSMTP); - new QRadioButton("SSL", d->safeSMTP); - new QRadioButton("TLS", d->safeSMTP); + QRadioButton* sslRadioS = new QRadioButton("SSL", d->safeSMTP); + QRadioButton* tlsRadioS = new QRadioButton("TLS", d->safeSMTP); m->addWidget(d->safeSMTP,7,1); l5->setBuddy(d->safeSMTP); @@ -165,6 +166,23 @@ l8->setBuddy(d->homePage); readSettings(); + + if(!Global::cryptoConnectionSupported()) + { + tlsRadioI->setEnabled(false); + tlsRadioS->setEnabled(false); + sslRadioI->setEnabled(false); + sslRadioS->setEnabled(false); + d->safeSMTP->setButton(0); + d->safeImap->setButton(0); + + KMessageBox::information(0,i18n("Your system does not seem to be " + "setup for TLS or SSL, these settings " + "are disabled. Install QCA and " + "recompile Mailody or contact your " + "distribution"), + QString::null, "TLS_SSL_DISABLED"); + } } SetupAccount::~SetupAccount() --- trunk/playground/pim/mailody/src/socketsafe.cpp #602296:602297 @@ -32,6 +32,7 @@ #include <qca.h> #include "db.h" +#include "global.h" #include "socketsafe.h" SocketSafe::SocketSafe(QObject* parent, const QString& server, @@ -44,12 +45,6 @@ , m_gather(false) , m_crypted(false) { - if(!QCA::isSupported(QCA::CAP_TLS)) - { - kdDebug() << "TLS not supported!" << endl; - return; - } - m_server = server; m_port = port; m_safe = safe; @@ -68,6 +63,15 @@ << "TLS: " << (m_safe == TLS) << endl; #endif + if(!Global::cryptoConnectionSupported()) + { + kdDebug() << "Crypto not supported!" << endl; + if (m_safe == TLS || m_safe == SSL) + emit error(i18n("You requested TLS/SSL, but your " + "system does not seem to be setup for that.")); + return; + } + m_crypted=false; if (!m_socket) |