Cartelle (rinomina/elimina), inoltro come allegato, redirect, invia di nuovo (0.18.0)
Change_Folder fa tre cose con lo stesso comando: rinomina con Length>0, sposta con Target>=0, elimina con Length 0 e Target -1. Forget ripulisce quello che il motore teneva della cartella. Redirect usa Kind=3 e l'origine: il motore ricompone l'originale con Resent-*. L'inoltro come allegato allega il file originale, perche' il motore non ha un forward-come-allegato.
This commit is contained in:
1 parent
9d423bda95
commit
55df005afb
9 files changed
+251
-16
No files matched your search
@@ -24,6 +24,12 @@ Page {
|
|||||||
property int bozzaCartella: -1
|
property int bozzaCartella: -1
|
||||||
property int bozzaRiga: -1
|
property int bozzaRiga: -1
|
||||||
property int bozzaId: -1
|
property int bozzaId: -1
|
||||||
|
// Messaggio d'origine: inoltro come allegato, redirect, invia di nuovo.
|
||||||
|
property int origineCartella: -1
|
||||||
|
property int origineRiga: -1
|
||||||
|
property bool comeAllegato: false
|
||||||
|
property bool redirectMode: false
|
||||||
|
property bool comeNuovo: false
|
||||||
|
|
||||||
// Il "Da" si vede e si può correggere qui: se il campo in Account non è
|
// Il "Da" si vede e si può correggere qui: se il campo in Account non è
|
||||||
// stato salvato, l'invio non resta bloccato senza spiegazione.
|
// stato salvato, l'invio non resta bloccato senza spiegazione.
|
||||||
@@ -33,6 +39,27 @@ Page {
|
|||||||
else if (account.persona.indexOf("@") > 0)
|
else if (account.persona.indexOf("@") > 0)
|
||||||
page.mittente = account.persona;
|
page.mittente = account.persona;
|
||||||
if (page.bozzaRiga >= 0) page.riprendi();
|
if (page.bozzaRiga >= 0) page.riprendi();
|
||||||
|
if (page.comeAllegato && page.origineRiga >= 0) page.preparaInoltro();
|
||||||
|
if (page.comeNuovo && page.origineRiga >= 0) page.preparaNuovo();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inoltro come allegato: non è un forward del motore (che non lo prevede),
|
||||||
|
// è il file originale allegato al messaggio nuovo.
|
||||||
|
function preparaInoltro() {
|
||||||
|
page.oggetto = "Fwd: " + engine.headerOf(page.origineCartella,
|
||||||
|
page.origineRiga,
|
||||||
|
"Subject");
|
||||||
|
var percorso = engine.percorsoMessaggio(page.origineCartella,
|
||||||
|
page.origineRiga);
|
||||||
|
if (percorso.length > 0) page.allegati = [percorso];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Invia di nuovo: gli stessi destinatari e lo stesso testo, come nuovo.
|
||||||
|
function preparaNuovo() {
|
||||||
|
page.destinatario = engine.headerOf(page.origineCartella, page.origineRiga, "To");
|
||||||
|
page.copia = engine.headerOf(page.origineCartella, page.origineRiga, "Cc");
|
||||||
|
page.oggetto = engine.headerOf(page.origineCartella, page.origineRiga, "Subject");
|
||||||
|
page.corpo = engine.body(page.origineCartella, page.origineRiga);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Riprendere una bozza: i campi tornano come erano, allegati compresi.
|
// Riprendere una bozza: i campi tornano come erano, allegati compresi.
|
||||||
@@ -315,6 +342,17 @@ Page {
|
|||||||
|
|
||||||
function invia() {
|
function invia() {
|
||||||
page.errore = "";
|
page.errore = "";
|
||||||
|
// Il redirect non passa dal foglio normale: ricompone l'originale.
|
||||||
|
if (page.redirectMode && page.origineRiga >= 0) {
|
||||||
|
var r = engine.redirect(page.origineCartella, page.origineRiga,
|
||||||
|
campoA.text, campoDa.text);
|
||||||
|
if (r.length > 0) {
|
||||||
|
page.errore = r;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
page.inviando = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
const motivo = engine.sendMessage(campoA.text, campoCc.text,
|
const motivo = engine.sendMessage(campoA.text, campoCc.text,
|
||||||
campoBcc.text,
|
campoBcc.text,
|
||||||
campoDa.text,
|
campoDa.text,
|
||||||
|
|||||||
@@ -73,6 +73,12 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pressione lunga su una cartella: rinominarla o eliminarla.
|
||||||
|
function cartellaAzioni(folder, nome) {
|
||||||
|
pageStack.push(Qt.resolvedUrl("NewFolderPage.qml"),
|
||||||
|
{ "rinomina": folder, "nomeIniziale": nome });
|
||||||
|
}
|
||||||
|
|
||||||
// La cartella si crea sotto l'account: il primo che compare nell'albero.
|
// La cartella si crea sotto l'account: il primo che compare nell'albero.
|
||||||
function nuovaCartella() {
|
function nuovaCartella() {
|
||||||
var account = 0;
|
var account = 0;
|
||||||
@@ -166,6 +172,8 @@ Page {
|
|||||||
|
|
||||||
height: Math.max(Theme.itemSizeMedium, etichetta.implicitHeight + Theme.paddingLarge)
|
height: Math.max(Theme.itemSizeMedium, etichetta.implicitHeight + Theme.paddingLarge)
|
||||||
onClicked: page.apriCartella(model.folder, model.nome)
|
onClicked: page.apriCartella(model.folder, model.nome)
|
||||||
|
// Pressione lunga: rinominare o eliminare la cartella.
|
||||||
|
onPressAndHold: page.cartellaAzioni(model.folder, model.nome)
|
||||||
|
|
||||||
// Rientro per profondita': la gerarchia si vede dall'icona.
|
// Rientro per profondita': la gerarchia si vede dall'icona.
|
||||||
Image {
|
Image {
|
||||||
|
|||||||
@@ -317,6 +317,28 @@ Page {
|
|||||||
visible: page.allegati.length > 1
|
visible: page.allegati.length > 1
|
||||||
onClicked: page.salvaTutti()
|
onClicked: page.salvaTutti()
|
||||||
}
|
}
|
||||||
|
MenuItem {
|
||||||
|
text: qsTr("Inoltro come allegato")
|
||||||
|
onClicked: pageStack.push(Qt.resolvedUrl("ComposePage.qml"),
|
||||||
|
{ "origineCartella": page.cartella,
|
||||||
|
"origineRiga": page.riga,
|
||||||
|
"comeAllegato": true })
|
||||||
|
}
|
||||||
|
MenuItem {
|
||||||
|
text: qsTr("Redirect")
|
||||||
|
onClicked: pageStack.push(Qt.resolvedUrl("ComposePage.qml"),
|
||||||
|
{ "origineCartella": page.cartella,
|
||||||
|
"origineRiga": page.riga,
|
||||||
|
"redirectMode": true })
|
||||||
|
}
|
||||||
|
MenuItem {
|
||||||
|
text: qsTr("Invia di nuovo")
|
||||||
|
visible: engine.folderType(page.cartella) === "out"
|
||||||
|
onClicked: pageStack.push(Qt.resolvedUrl("ComposePage.qml"),
|
||||||
|
{ "origineCartella": page.cartella,
|
||||||
|
"origineRiga": page.riga,
|
||||||
|
"comeNuovo": true })
|
||||||
|
}
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: qsTr("È junk")
|
text: qsTr("È junk")
|
||||||
onClicked: page.segnaJunk(true)
|
onClicked: page.segnaJunk(true)
|
||||||
|
|||||||
+46
-11
@@ -1,13 +1,18 @@
|
|||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import Sailfish.Silica 1.0
|
import Sailfish.Silica 1.0
|
||||||
|
|
||||||
// Creare una cartella sotto l'account. Il motore crea una Maildir vera
|
// Creare, rinominare o eliminare una cartella.
|
||||||
// (tmp, new, cur), non un contenitore vuoto.
|
// Creare: il motore crea una Maildir vera (tmp, new, cur), non un contenitore.
|
||||||
|
// Eliminare porta via anche i messaggi che contiene: due tocchi, come per il
|
||||||
|
// cestino.
|
||||||
Page {
|
Page {
|
||||||
id: page
|
id: page
|
||||||
|
|
||||||
property int parent: 0
|
property int parent: 0
|
||||||
property int livello: 0
|
property int rinomina: -1 // >= 0: si sta rinominando quella cartella
|
||||||
|
property string nomeIniziale: ""
|
||||||
|
property string errore: ""
|
||||||
|
property bool confermaElimina: false
|
||||||
|
|
||||||
allowedOrientations: Orientation.All
|
allowedOrientations: Orientation.All
|
||||||
|
|
||||||
@@ -18,7 +23,8 @@ Page {
|
|||||||
spacing: Theme.paddingLarge
|
spacing: Theme.paddingLarge
|
||||||
|
|
||||||
PageHeader {
|
PageHeader {
|
||||||
title: qsTr("Nuova cartella")
|
title: page.rinomina >= 0 ? qsTr("Rinomina la cartella")
|
||||||
|
: qsTr("Nuova cartella")
|
||||||
description: qsTr("Dentro l'account")
|
description: qsTr("Dentro l'account")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28,17 +34,27 @@ Page {
|
|||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
label: qsTr("Nome")
|
label: qsTr("Nome")
|
||||||
placeholderText: qsTr("per esempio: Progetti")
|
placeholderText: qsTr("per esempio: Progetti")
|
||||||
|
text: page.nomeIniziale
|
||||||
inputMethodHints: Qt.ImhNoAutoUppercase
|
inputMethodHints: Qt.ImhNoAutoUppercase
|
||||||
EnterKey.enabled: true
|
EnterKey.enabled: true
|
||||||
EnterKey.text: qsTr("Crea")
|
EnterKey.text: qsTr("Conferma")
|
||||||
EnterKey.onClicked: page.crea()
|
EnterKey.onClicked: page.conferma()
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
text: qsTr("Crea")
|
text: page.rinomina >= 0 ? qsTr("Rinomina") : qsTr("Crea")
|
||||||
preferredWidth: Theme.buttonWidthSmall
|
preferredWidth: Theme.buttonWidthSmall
|
||||||
onClicked: page.crea()
|
onClicked: page.conferma()
|
||||||
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
visible: page.rinomina >= 0
|
||||||
|
text: page.confermaElimina ? qsTr("Tocca di nuovo per eliminare")
|
||||||
|
: qsTr("Elimina la cartella")
|
||||||
|
preferredWidth: Theme.buttonWidthMedium
|
||||||
|
onClicked: page.elimina()
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
@@ -53,10 +69,29 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
property string errore: ""
|
Timer {
|
||||||
|
id: timerConferma
|
||||||
|
interval: 5000
|
||||||
|
onTriggered: page.confermaElimina = false
|
||||||
|
}
|
||||||
|
|
||||||
function crea() {
|
function conferma() {
|
||||||
page.errore = engine.creaCartella(page.parent, nome.text);
|
page.errore = page.rinomina >= 0
|
||||||
|
? engine.rinominaCartella(page.rinomina, nome.text)
|
||||||
|
: engine.creaCartella(page.parent, nome.text);
|
||||||
|
if (page.errore.length === 0)
|
||||||
|
pageStack.pop();
|
||||||
|
}
|
||||||
|
|
||||||
|
function elimina() {
|
||||||
|
if (!page.confermaElimina) {
|
||||||
|
page.confermaElimina = true;
|
||||||
|
timerConferma.restart();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
page.confermaElimina = false;
|
||||||
|
timerConferma.stop();
|
||||||
|
page.errore = engine.eliminaCartella(page.rinomina);
|
||||||
if (page.errore.length === 0)
|
if (page.errore.length === 0)
|
||||||
pageStack.pop();
|
pageStack.pop();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.17.0
|
Version: 0.18.0
|
||||||
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
|
||||||
@@ -27,6 +27,14 @@ Icons come from the original project's Eudora bitmaps (BSD 3-Clause,
|
|||||||
Computer History Museum).
|
Computer History Museum).
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 17 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.18.0-1
|
||||||
|
- Rinominare ed eliminare una cartella (pressione lunga sull'albero): usa
|
||||||
|
Change_Folder, che rinomina con un nome, sposta con un bersaglio e toglie con
|
||||||
|
nome vuoto e bersaglio -1
|
||||||
|
- Inoltro come allegato: il motore non ha un forward come allegato, quindi si
|
||||||
|
allega il file originale del messaggio
|
||||||
|
- Redirect: ricomposizione con gli header Resent-*, fatta dal motore (Kind 3)
|
||||||
|
- Invia di nuovo: gli stessi destinatari e lo stesso testo, come messaggio nuovo
|
||||||
* Tue Nov 17 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.17.0-1
|
* Tue Nov 17 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.17.0-1
|
||||||
- Ordinamento per colonna (data, mittente, oggetto, dimensione) con verso
|
- Ordinamento per colonna (data, mittente, oggetto, dimensione) con verso
|
||||||
invertibile toccando di nuovo la stessa voce; l'ordine scelto vale per la
|
invertibile toccando di nuovo la stessa voce; l'ordine scelto vale per la
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ gd_text_fn EngineBridge::s_path = nullptr;
|
|||||||
gd_make_folder_fn EngineBridge::s_make_folder = nullptr;
|
gd_make_folder_fn EngineBridge::s_make_folder = nullptr;
|
||||||
gd_set_fn EngineBridge::s_priority = nullptr;
|
gd_set_fn EngineBridge::s_priority = nullptr;
|
||||||
gd_set_fn EngineBridge::s_label = nullptr;
|
gd_set_fn EngineBridge::s_label = nullptr;
|
||||||
|
gd_make_folder_fn EngineBridge::s_change = nullptr;
|
||||||
|
gd_can_hold_fn EngineBridge::s_forget = nullptr;
|
||||||
gd_read_fn EngineBridge::s_read = nullptr;
|
gd_read_fn EngineBridge::s_read = nullptr;
|
||||||
gd_id_of_fn EngineBridge::s_id_of = nullptr;
|
gd_id_of_fn EngineBridge::s_id_of = nullptr;
|
||||||
gd_move_fn EngineBridge::s_move = nullptr;
|
gd_move_fn EngineBridge::s_move = nullptr;
|
||||||
@@ -1242,6 +1244,117 @@ QString EngineBridge::segnalaJunk(int folder, int row, bool junk)
|
|||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Rinominare una cartella: Change_Folder con Length > 0 e Target -1.
|
||||||
|
QString EngineBridge::rinominaCartella(int folder, const QString &nome)
|
||||||
|
{
|
||||||
|
if (!s_change) return tr("Il motore non sa rinominare le cartelle");
|
||||||
|
const QString n = nome.trimmed();
|
||||||
|
if (n.isEmpty()) return tr("Scrivi il nome nuovo");
|
||||||
|
const QByteArray b = n.toUtf8();
|
||||||
|
const int r = s_change(folder, b.constData(), b.size(), -1);
|
||||||
|
if (r < 0) return tr("Non si può rinominare questa cartella");
|
||||||
|
if (r == 0) return tr("C'è già una cartella con questo nome");
|
||||||
|
if (s_forget) s_forget(folder);
|
||||||
|
if (s_rescan) s_rescan();
|
||||||
|
logInvio(QString("cartella %1 rinominata in %2").arg(folder).arg(n));
|
||||||
|
emit ready();
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Eliminare una cartella: Change_Folder con Length 0 e Target -1 la toglie
|
||||||
|
// con quello che contiene. Il motore rifiuta le cartelle di servizio.
|
||||||
|
QString EngineBridge::eliminaCartella(int folder)
|
||||||
|
{
|
||||||
|
if (!s_change) return tr("Il motore non sa eliminare le cartelle");
|
||||||
|
const int r = s_change(folder, QByteArray().constData(), 0, -1);
|
||||||
|
if (r < 0) return tr("Non si può eliminare questa cartella");
|
||||||
|
if (s_forget) s_forget(folder);
|
||||||
|
if (s_rescan) s_rescan();
|
||||||
|
logInvio(QString("cartella %1 eliminata").arg(folder));
|
||||||
|
emit ready();
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Il file del messaggio: serve ad allegarlo (inoltro come allegato).
|
||||||
|
QString EngineBridge::percorsoMessaggio(int folder, int row)
|
||||||
|
{
|
||||||
|
if (!s_path || !s_id_of) return QString();
|
||||||
|
const int id = s_id_of(folder, row);
|
||||||
|
if (id < 0) return QString();
|
||||||
|
char buf[4096];
|
||||||
|
const int n = s_path(folder, id, buf, int(sizeof buf) - 1);
|
||||||
|
if (n <= 0) return QString();
|
||||||
|
return QString::fromUtf8(buf, qMin(n, int(sizeof buf) - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Redirect: non è un inoltro, è la ricomposizione dell'originale con gli
|
||||||
|
// header Resent-*, e la fa il motore (Kind = 3). Il giro dopo il compose è
|
||||||
|
// lo stesso dell'invio normale.
|
||||||
|
QString EngineBridge::redirect(int folder, int row, const QString &a,
|
||||||
|
const QString &da)
|
||||||
|
{
|
||||||
|
if (!s_compose || !s_claim || !s_send_start || !s_send_poll)
|
||||||
|
return tr("Il motore non è pronto");
|
||||||
|
const int id = s_id_of ? s_id_of(folder, row) : -1;
|
||||||
|
if (id < 0) return tr("Messaggio non trovato");
|
||||||
|
if (a.trimmed().isEmpty()) return tr("Manca il destinatario");
|
||||||
|
|
||||||
|
const int out = folderOut();
|
||||||
|
if (out < 0) return tr("Manca la cartella di uscita");
|
||||||
|
const QString config = m_settings ? m_settings->smtpLine() : QString();
|
||||||
|
if (config.isEmpty()) return tr("SMTP non configurato: controlla l'account");
|
||||||
|
|
||||||
|
QString from = da.trimmed();
|
||||||
|
if (from.isEmpty() && m_settings) from = m_settings->mittente().trimmed();
|
||||||
|
if (from.indexOf(QLatin1Char('@')) < 1)
|
||||||
|
return tr("Manca l'indirizzo del mittente");
|
||||||
|
|
||||||
|
// Per il redirect il corpo non conta: il motore usa l'originale.
|
||||||
|
QString foglio;
|
||||||
|
foglio += QLatin1String("From: ") + from + QLatin1Char('\n');
|
||||||
|
foglio += QLatin1String("To: ") + a.trimmed() + QLatin1String("\nSubject: \n\n");
|
||||||
|
|
||||||
|
const QByteArray testo = foglio.toUtf8();
|
||||||
|
const QByteArray nessunHtml;
|
||||||
|
char stato[1024];
|
||||||
|
stato[0] = '\0';
|
||||||
|
const int salvato = s_compose(out, testo.constData(), testo.size(),
|
||||||
|
nessunHtml.constData(), 0,
|
||||||
|
1 /* in coda */, 0, 0,
|
||||||
|
3 /* redirect */, folder, id, -1,
|
||||||
|
stato, int(sizeof stato) - 1);
|
||||||
|
if (salvato < 0) {
|
||||||
|
const QString m = QString::fromUtf8(stato).trimmed();
|
||||||
|
logInvio("ERR redirect: " + m);
|
||||||
|
return m.isEmpty() ? tr("Il motore ha rifiutato il redirect") : m;
|
||||||
|
}
|
||||||
|
|
||||||
|
QByteArray coda(1 << 20, '\0');
|
||||||
|
const int usati = s_claim(out, coda.data(), coda.size());
|
||||||
|
if (usati <= 0) return tr("Niente in coda da mandare");
|
||||||
|
coda.truncate(usati);
|
||||||
|
|
||||||
|
QString persona = m_settings->persona().isEmpty() ? m_settings->user()
|
||||||
|
: m_settings->persona();
|
||||||
|
persona.replace(QRegularExpression(QStringLiteral("[^A-Za-z0-9._-]")),
|
||||||
|
QStringLiteral("-"));
|
||||||
|
m_sendFolder = out;
|
||||||
|
m_sendOk = 0;
|
||||||
|
m_sendKo = 0;
|
||||||
|
m_sendEsito.clear();
|
||||||
|
m_sendPersona = persona;
|
||||||
|
if (!m_sendTimer) {
|
||||||
|
m_sendTimer = new QTimer(this);
|
||||||
|
m_sendTimer->setInterval(200);
|
||||||
|
connect(m_sendTimer, &QTimer::timeout, this, &EngineBridge::pollSend);
|
||||||
|
}
|
||||||
|
const QByteArray cfg = config.toUtf8();
|
||||||
|
s_send_start(cfg.constData(), cfg.size(), coda.constData(), coda.size());
|
||||||
|
m_sendTimer->start();
|
||||||
|
logInvio(QString("redirect: cartella %1 riga %2 -> %3").arg(folder).arg(row).arg(a));
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
|
||||||
// Addestramento del junk: una riga per cartella, come vuole Mail_Junk.Train.
|
// Addestramento del junk: una riga per cartella, come vuole Mail_Junk.Train.
|
||||||
void EngineBridge::addestraJunk()
|
void EngineBridge::addestraJunk()
|
||||||
{
|
{
|
||||||
|
|||||||
+12
-1
@@ -56,7 +56,8 @@ public:
|
|||||||
gd_find_poll_fn book_poll,
|
gd_find_poll_fn book_poll,
|
||||||
gd_place_fn book_list, gd_text_fn path,
|
gd_place_fn book_list, gd_text_fn path,
|
||||||
gd_make_folder_fn make_folder,
|
gd_make_folder_fn make_folder,
|
||||||
gd_set_fn priority, gd_set_fn label);
|
gd_set_fn priority, gd_set_fn label,
|
||||||
|
gd_make_folder_fn change, gd_can_hold_fn forget);
|
||||||
|
|
||||||
bool checking() const { return m_checking; }
|
bool checking() const { return m_checking; }
|
||||||
QString lastResult() const { return m_lastResult; }
|
QString lastResult() const { return m_lastResult; }
|
||||||
@@ -130,6 +131,14 @@ public:
|
|||||||
Q_INVOKABLE void impostaPriorita(int folder, int row, int valore);
|
Q_INVOKABLE void impostaPriorita(int folder, int row, int valore);
|
||||||
Q_INVOKABLE void impostaEtichetta(int folder, int row, int valore);
|
Q_INVOKABLE void impostaEtichetta(int folder, int row, int valore);
|
||||||
Q_INVOKABLE QString segnalaJunk(int folder, int row, bool junk);
|
Q_INVOKABLE QString segnalaJunk(int folder, int row, bool junk);
|
||||||
|
// Cartelle: rinominare, eliminare; e il percorso del file di un messaggio
|
||||||
|
// (serve per inoltrarlo come allegato).
|
||||||
|
Q_INVOKABLE QString rinominaCartella(int folder, const QString &nome);
|
||||||
|
Q_INVOKABLE QString eliminaCartella(int folder);
|
||||||
|
Q_INVOKABLE QString percorsoMessaggio(int folder, int row);
|
||||||
|
// Redirect: il motore ricompone l'originale con gli header Resent-*.
|
||||||
|
Q_INVOKABLE QString redirect(int folder, int row, const QString &a,
|
||||||
|
const QString &da);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void ready();
|
void ready();
|
||||||
@@ -158,6 +167,8 @@ private:
|
|||||||
static gd_make_folder_fn s_make_folder;
|
static gd_make_folder_fn s_make_folder;
|
||||||
static gd_set_fn s_priority;
|
static gd_set_fn s_priority;
|
||||||
static gd_set_fn s_label;
|
static gd_set_fn s_label;
|
||||||
|
static gd_make_folder_fn s_change;
|
||||||
|
static gd_can_hold_fn s_forget;
|
||||||
static gd_read_fn s_read;
|
static gd_read_fn s_read;
|
||||||
static gd_id_of_fn s_id_of;
|
static gd_id_of_fn s_id_of;
|
||||||
static gd_move_fn s_move;
|
static gd_move_fn s_move;
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ int gd_run(gd_folder_fn folder, gd_open_fn open, gd_cell_fn cell,
|
|||||||
place, log, empty, plain, html,
|
place, log, empty, plain, html,
|
||||||
find_start, find_poll, find_cancel, id_named,
|
find_start, find_poll, find_cancel, id_named,
|
||||||
row_of, book_start, book_poll, book_list, path,
|
row_of, book_start, book_poll, book_list, path,
|
||||||
make_folder, priority, label);
|
make_folder, priority, label, change, forget);
|
||||||
return QCoreApplication::exec();
|
return QCoreApplication::exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+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.17.0"));
|
app->setApplicationVersion(QStringLiteral("0.18.0"));
|
||||||
|
|
||||||
qDebug() << "harbour-grumpydove v0.17.0 build" << __DATE__ << __TIME__;
|
qDebug() << "harbour-grumpydove v0.18.0 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