Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
396f70703e | ||
|
|
c738aa5fc4 |
No files matched your search
@@ -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.
+33
-24
@@ -142,13 +142,12 @@ Page {
|
||||
onClicked: { page.soloNonLetti = !page.soloNonLetti; page.carica() }
|
||||
}
|
||||
MenuItem {
|
||||
// Il cestino si svuota da qui, dove lo si sta guardando.
|
||||
// Due tocchi invece di un dialog: e' irreversibile, e cosi'
|
||||
// la pagina non dipende da altri componenti per caricarsi.
|
||||
text: page.confermaSvuota ? qsTr("Tocca di nuovo per svuotare")
|
||||
: qsTr("Svuota il cestino")
|
||||
// Il cestino si svuota da qui, dove lo si sta guardando. La
|
||||
// conferma e' un dialogo: armare un secondo tocco non funziona
|
||||
// perche' il menu si chiude al primo.
|
||||
text: qsTr("Svuota il cestino")
|
||||
visible: engine.eCestino(page.cartella)
|
||||
onClicked: page.toccaSvuota()
|
||||
onClicked: page.chiediSvuota()
|
||||
}
|
||||
MenuItem {
|
||||
// I filtri guardano i messaggi di questa cartella: il motore
|
||||
@@ -347,19 +346,35 @@ Page {
|
||||
}
|
||||
}
|
||||
|
||||
// Conferma in due tocchi: il primo arma, il secondo esegue, il timer
|
||||
// disarma dopo qualche secondo.
|
||||
property bool confermaSvuota: false
|
||||
|
||||
function toccaSvuota() {
|
||||
engine.notaLog("svuota: tocco");
|
||||
if (!page.confermaSvuota) {
|
||||
page.confermaSvuota = true;
|
||||
timerConferma.restart();
|
||||
return;
|
||||
// Conferma vera, in un dialogo: e' irreversibile e il menu si chiude.
|
||||
Component {
|
||||
id: confermaSvuota
|
||||
Dialog {
|
||||
title: qsTr("Svuotare il cestino?")
|
||||
acceptText: qsTr("Svuota")
|
||||
rejectText: qsTr("Annulla")
|
||||
onAccepted: page.svuota()
|
||||
Column {
|
||||
width: parent.width
|
||||
DialogHeader { }
|
||||
Label {
|
||||
x: Theme.horizontalPageMargin
|
||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
||||
text: qsTr("I messaggi nel cestino vengono eliminati e non si recuperano.")
|
||||
wrapMode: Text.Wrap
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
color: Theme.secondaryColor
|
||||
}
|
||||
}
|
||||
}
|
||||
page.confermaSvuota = false;
|
||||
timerConferma.stop();
|
||||
}
|
||||
|
||||
function chiediSvuota() {
|
||||
pageStack.push(confermaSvuota);
|
||||
}
|
||||
|
||||
function svuota() {
|
||||
engine.notaLog("svuota: confermato");
|
||||
var tolti = engine.emptyTrash(page.cartella);
|
||||
page.carica();
|
||||
avviso.text = tolti > 0 ? qsTr("%1 messaggi rimossi").arg(tolti)
|
||||
@@ -368,12 +383,6 @@ Page {
|
||||
avvisoTimer.restart();
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: timerConferma
|
||||
interval: 5000
|
||||
onTriggered: page.confermaSvuota = false
|
||||
}
|
||||
|
||||
Label {
|
||||
id: avviso
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name: harbour-grumpydove
|
||||
Summary: Eudora-style mail interface, mobile prototype
|
||||
Version: 0.23.3
|
||||
Version: 0.23.5
|
||||
Release: 1
|
||||
Group: Qt/Qt
|
||||
# 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
|
||||
{
|
||||
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
@@ -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.5"));
|
||||
|
||||
qDebug() << "harbour-grumpydove v0.23.3 build" << __DATE__ << __TIME__;
|
||||
qDebug() << "harbour-grumpydove v0.23.5 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