diff --git a/engine/patch_engine.py b/engine/patch_engine.py index 48666ba..ba6da37 100644 --- a/engine/patch_engine.py +++ b/engine/patch_engine.py @@ -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 diff --git a/engine/prebuilt/libgrumpydove.so b/engine/prebuilt/libgrumpydove.so index 4fcc09c..7525009 100755 Binary files a/engine/prebuilt/libgrumpydove.so and b/engine/prebuilt/libgrumpydove.so differ diff --git a/rpm/harbour-grumpydove.spec b/rpm/harbour-grumpydove.spec index 7721f77..cfafbaf 100644 --- a/rpm/harbour-grumpydove.spec +++ b/rpm/harbour-grumpydove.spec @@ -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 diff --git a/src/accountsettings.cpp b/src/accountsettings.cpp index fbfb5ff..0953fc0 100644 --- a/src/accountsettings.cpp +++ b/src/accountsettings.cpp @@ -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 diff --git a/src/main.cpp b/src/main.cpp index 5fe8e38..18de291 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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