Compare commits

...
1 Commits
Author SHA1 Message Date
Carlo Baratto c738aa5fc4 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.
2026-11-19 20:49:29 +01:00
5 changed files with 13 additions and 5 deletions

No files matched your search

+2 -1
View File
@@ -269,8 +269,9 @@ with Mail_Log;''',
Free (Box);
if Done /= 0 and then Ada.Directories.Exists (Dir) then
declare
use GNAT.OS_Lib;
Mark : constant String := Dir & "/.grumpydove-unsubscribed";
Fd : GNAT.OS_Lib.File_Descriptor;
Fd : File_Descriptor;
Gone : Boolean;
begin
if Op = "SUBSCRIBE" then
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
Name: harbour-grumpydove
Summary: Eudora-style mail interface, mobile prototype
Version: 0.23.3
Version: 0.23.4
Release: 1
Group: Qt/Qt
# Codice EUPL-1.2; le icone vengono dagli sprite di Eudora, BSD 3-Clause
+8 -1
View File
@@ -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
View File
@@ -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