SMTP: indirizzo completo come utente quando serve (0.23.4)
Se l'utente non ha la chiocciola e il mittente si', l'autenticazione SMTP usa il mittente: alcuni server accettano l'utente corto per IMAP e rispondono 421 login denied in SMTP.
This commit is contained in:
1 parent
11bd26dd86
commit
c738aa5fc4
5 files changed
+13
-5
No files matched your search
@@ -117,9 +117,16 @@ QString AccountSettings::imapLine() const
|
||||
QString AccountSettings::smtpLine() const
|
||||
{
|
||||
if (m_smtpHost.isEmpty() || m_user.isEmpty()) return QString();
|
||||
// Alcuni server (tophost fra questi) accettano l'utente corto per IMAP ma
|
||||
// per SMTP vogliono l'indirizzo completo: con "carlo" rispondono
|
||||
// "421 login denied". Se l'utente non ha la chiocciola e il mittente sì,
|
||||
// all'autenticazione SMTP si manda il mittente; l'IMAP resta com'è.
|
||||
const QString utenteSmtp =
|
||||
(m_user.contains(QLatin1Char('@')) || !m_mittente.contains(QLatin1Char('@')))
|
||||
? m_user : m_mittente;
|
||||
return QString("%1\t%2\t%3\t%4\t%5")
|
||||
.arg(m_smtpHost, QString::number(m_smtpPort),
|
||||
QString::number(m_smtpSecurity), m_user, m_smtpPassword);
|
||||
QString::number(m_smtpSecurity), utenteSmtp, m_smtpPassword);
|
||||
}
|
||||
|
||||
bool AccountSettings::configured() const
|
||||
|
||||
+2
-2
@@ -32,9 +32,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||
|
||||
app->setOrganizationName(QStringLiteral("harbour"));
|
||||
app->setApplicationName(QStringLiteral("grumpydove"));
|
||||
app->setApplicationVersion(QStringLiteral("0.23.3"));
|
||||
app->setApplicationVersion(QStringLiteral("0.23.4"));
|
||||
|
||||
qDebug() << "harbour-grumpydove v0.23.3 build" << __DATE__ << __TIME__;
|
||||
qDebug() << "harbour-grumpydove v0.23.4 build" << __DATE__ << __TIME__;
|
||||
|
||||
// Maildir, log, rubrica e liste dei filtri nella cartella dati dell'app:
|
||||
// la sandbox non lascia vedere ~/Mail né scrivere sotto HOME, e cambiare
|
||||
|
||||
Reference in new issue
Block a user