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
@@ -269,8 +269,9 @@ with Mail_Log;''',
|
|||||||
Free (Box);
|
Free (Box);
|
||||||
if Done /= 0 and then Ada.Directories.Exists (Dir) then
|
if Done /= 0 and then Ada.Directories.Exists (Dir) then
|
||||||
declare
|
declare
|
||||||
|
use GNAT.OS_Lib;
|
||||||
Mark : constant String := Dir & "/.grumpydove-unsubscribed";
|
Mark : constant String := Dir & "/.grumpydove-unsubscribed";
|
||||||
Fd : GNAT.OS_Lib.File_Descriptor;
|
Fd : File_Descriptor;
|
||||||
Gone : Boolean;
|
Gone : Boolean;
|
||||||
begin
|
begin
|
||||||
if Op = "SUBSCRIBE" then
|
if Op = "SUBSCRIBE" then
|
||||||
|
|||||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
Name: harbour-grumpydove
|
Name: harbour-grumpydove
|
||||||
Summary: Eudora-style mail interface, mobile prototype
|
Summary: Eudora-style mail interface, mobile prototype
|
||||||
Version: 0.23.3
|
Version: 0.23.4
|
||||||
Release: 1
|
Release: 1
|
||||||
Group: Qt/Qt
|
Group: Qt/Qt
|
||||||
# Codice EUPL-1.2; le icone vengono dagli sprite di Eudora, BSD 3-Clause
|
# Codice EUPL-1.2; le icone vengono dagli sprite di Eudora, BSD 3-Clause
|
||||||
|
|||||||
@@ -117,9 +117,16 @@ QString AccountSettings::imapLine() const
|
|||||||
QString AccountSettings::smtpLine() const
|
QString AccountSettings::smtpLine() const
|
||||||
{
|
{
|
||||||
if (m_smtpHost.isEmpty() || m_user.isEmpty()) return QString();
|
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")
|
return QString("%1\t%2\t%3\t%4\t%5")
|
||||||
.arg(m_smtpHost, QString::number(m_smtpPort),
|
.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
|
bool AccountSettings::configured() const
|
||||||
|
|||||||
+2
-2
@@ -32,9 +32,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
|||||||
|
|
||||||
app->setOrganizationName(QStringLiteral("harbour"));
|
app->setOrganizationName(QStringLiteral("harbour"));
|
||||||
app->setApplicationName(QStringLiteral("grumpydove"));
|
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:
|
// Maildir, log, rubrica e liste dei filtri nella cartella dati dell'app:
|
||||||
// la sandbox non lascia vedere ~/Mail né scrivere sotto HOME, e cambiare
|
// la sandbox non lascia vedere ~/Mail né scrivere sotto HOME, e cambiare
|
||||||
|
|||||||
Reference in new issue
Block a user