Rispondi con l'indirizzo vero, rispondi a tutti (0.5.2)

- EngineBridge::senderOf/headerOf: il motore da' il mittente come
  Nome<TAB>indirizzo, gli header come valore grezzo
- Restare sulla colonna 4 (solo nome) lasciava il campo A vuoto
- qml/js/reply.js: estrazione indirizzi, dedupe, esclusione del proprio
  indirizzo; tests/test_reply.js (8 controlli)
This commit is contained in:
Carlo Baratto committed 2026-11-11 15:09:08 +01:00
1 parent a7b760f0bf
commit 355c059247
8 files changed
+169 -8

No files matched your search

+7 -1
View File
@@ -38,7 +38,8 @@ public:
gd_move_fn move, gd_commit_fn commit,
gd_find_start_fn imap_start, gd_find_poll_fn imap_poll,
gd_rescan_fn rescan, gd_text_fn attachments,
gd_sort_fn sort, gd_absorb_fn absorb);
gd_sort_fn sort, gd_absorb_fn absorb,
gd_text_fn sender, gd_header_fn header);
bool checking() const { return m_checking; }
QString lastResult() const { return m_lastResult; }
@@ -53,6 +54,9 @@ public:
Q_INVOKABLE void checkMail();
Q_INVOKABLE QVariantList attachments(int folder, int row);
Q_INVOKABLE QString saveAttachment(int folder, int row, int index);
// Per rispondere serve l'indirizzo, non solo il nome che sta in colonna.
Q_INVOKABLE QString senderOf(int folder, int row);
Q_INVOKABLE QString headerOf(int folder, int row, const QString &name);
signals:
void ready();
@@ -81,6 +85,8 @@ private:
static gd_text_fn s_attachments;
static gd_sort_fn s_sort;
static gd_absorb_fn s_absorb;
static gd_text_fn s_sender;
static gd_header_fn s_header;
AccountSettings *m_settings;
QTimer *m_poll;