Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c738aa5fc4 | ||
|
|
11bd26dd86 |
No files matched your search
@@ -252,6 +252,44 @@ with Mail_Log;''',
|
||||
end;
|
||||
elsif Kind = "delete" then''',
|
||||
"ramo mkdir nel Flush"),
|
||||
|
||||
# Dopo SUBSCRIBE/UNSUBSCRIBE il segno locale va aggiornato subito: il
|
||||
# motore marca le cartelle non sottoscritte con un file nella loro
|
||||
# directory, e senza questo la cartella resta "(unsubscribed)" finche' un
|
||||
# controllo completo non riscarica la lista dal server.
|
||||
("mail_imap.adb",
|
||||
''' begin
|
||||
Check (Done, Name);
|
||||
Free (Box);
|
||||
end;
|
||||
end if;
|
||||
end Server_Op;''',
|
||||
''' begin
|
||||
Check (Done, Name);
|
||||
Free (Box);
|
||||
if Done /= 0 and then Ada.Directories.Exists (Dir) then
|
||||
declare
|
||||
use GNAT.OS_Lib;
|
||||
Mark : constant String := Dir & "/.grumpydove-unsubscribed";
|
||||
Fd : File_Descriptor;
|
||||
Gone : Boolean;
|
||||
begin
|
||||
if Op = "SUBSCRIBE" then
|
||||
if Ada.Directories.Exists (Mark) then
|
||||
GNAT.OS_Lib.Delete_File (Mark, Gone);
|
||||
end if;
|
||||
elsif not Ada.Directories.Exists (Mark) then
|
||||
Fd := GNAT.OS_Lib.Create_File (Mark, GNAT.OS_Lib.Binary);
|
||||
if Fd /= GNAT.OS_Lib.Invalid_FD then
|
||||
GNAT.OS_Lib.Close (Fd);
|
||||
end if;
|
||||
end if;
|
||||
end;
|
||||
end if;
|
||||
end;
|
||||
end if;
|
||||
end Server_Op;''',
|
||||
"segno non sottoscritta aggiornato dopo SUBSCRIBE"),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -68,6 +68,14 @@ Page {
|
||||
onClicked: page.sottoscrivi()
|
||||
}
|
||||
|
||||
Button {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
visible: page.rinomina >= 0
|
||||
text: qsTr("Annulla la sottoscrizione")
|
||||
preferredWidth: Theme.buttonWidthMedium
|
||||
onClicked: page.annullaSottoscrizione()
|
||||
}
|
||||
|
||||
Button {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
visible: page.rinomina >= 0
|
||||
@@ -114,6 +122,12 @@ Page {
|
||||
pageStack.pop();
|
||||
}
|
||||
|
||||
function annullaSottoscrizione() {
|
||||
page.errore = engine.annullaSottoscrizione(page.rinomina);
|
||||
if (page.errore.length === 0)
|
||||
pageStack.pop();
|
||||
}
|
||||
|
||||
function elimina() {
|
||||
if (!page.confermaElimina) {
|
||||
page.confermaElimina = true;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name: harbour-grumpydove
|
||||
Summary: Eudora-style mail interface, mobile prototype
|
||||
Version: 0.23.2
|
||||
Version: 0.23.4
|
||||
Release: 1
|
||||
Group: Qt/Qt
|
||||
# Codice EUPL-1.2; le icone vengono dagli sprite di Eudora, BSD 3-Clause
|
||||
@@ -27,6 +27,12 @@ Icons come from the original project's Eudora bitmaps (BSD 3-Clause,
|
||||
Computer History Museum).
|
||||
|
||||
%changelog
|
||||
* Tue Nov 17 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.23.3-1
|
||||
- Sottoscrivere non cambiava niente a schermo: il motore aggiornava il server
|
||||
ma non il segno locale ".grumpydove-unsubscribed", quindi la cartella restava
|
||||
marcata finche' un controllo completo non riscaricava la lista
|
||||
- Aggiunta "Annulla la sottoscrizione" (UNSUBSCRIBE), cosi' la prova si puo'
|
||||
fare e disfare
|
||||
* Tue Nov 17 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.23.2-1
|
||||
- Marcatori: si lavora sulla stringa invece di insert(). Sul componente di
|
||||
Sailfish insert() non produceva niente e i pulsanti sembravano morti
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -663,6 +663,11 @@ QString EngineBridge::sottoscrivi(int folder)
|
||||
return comandoServer(QStringLiteral("SUBSCRIBE"), folder, QString());
|
||||
}
|
||||
|
||||
QString EngineBridge::annullaSottoscrizione(int folder)
|
||||
{
|
||||
return comandoServer(QStringLiteral("UNSUBSCRIBE"), folder, QString());
|
||||
}
|
||||
|
||||
// Se una cartella è un cestino, chiesto direttamente al motore. Non passa per
|
||||
// folders(): quella è la vista, e se per un attimo nasconde una cartella la
|
||||
// voce "Svuota il cestino" sparisce senza che sia cambiato niente.
|
||||
|
||||
@@ -120,6 +120,7 @@ public:
|
||||
Q_INVOKABLE QString comandoServer(const QString &op, int folder,
|
||||
const QString &argomento);
|
||||
Q_INVOKABLE QString sottoscrivi(int folder);
|
||||
Q_INVOKABLE QString annullaSottoscrizione(int folder);
|
||||
// Controllo automatico della posta: ogni quanti minuti (0 = spento).
|
||||
// Dimensione del testo in lettura (pinch): 0,8 - 2,4.
|
||||
Q_INVOKABLE qreal zoomLettura() 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.2"));
|
||||
app->setApplicationVersion(QStringLiteral("0.23.4"));
|
||||
|
||||
qDebug() << "harbour-grumpydove v0.23.2 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