Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Collect sender addresses from incoming messages for autocomplete

Aperta
#13,702 1 commento 0 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Inizia tracciando AddressCollectionListener, AddressCollector, MessageSentEvent e NewMessagesSynchronized, quindi esamina come vengono utilizzati la collect-data preference e lo storage mail_coll_addresses. Gestisci i messaggi INBOX appena sincronizzati raccogliendo i relativi indirizzi From, preservando al contempo la deduplicazione esistente e il comportamento di raccolta dei messaggi in uscita. Il lavoro è completo quando i mittenti appena ricevuti compaiono in autocomplete senza raccogliere indirizzi quando la preferenza è disabilitata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

0. to triage enhancement needs info
Is your feature request related to a problem? Please describe.

Nextcloud Mail currently collects addresses from outgoing messages, using the To/Cc/Bcc recipients of sent mail.

This means that people who only send mail to the user, but have never received a message from the user, may not appear in Mail's address autocomplete.

For example, when using the advanced search "From" field, many valid senders are missing from the autocomplete suggestions even though the user has received many messages from them.

Describe the solution you'd like

Collect the From address of newly synchronized incoming messages, preferably for messages synchronized into the INBOX.

The existing AddressCollector and mail_coll_addresses mechanism could be reused.

The feature should also respect the existing collect-data user preference, just like outgoing address collection does.

Conceptually:

  • MessageSentEvent
    • continue collecting To/Cc/Bcc addresses
  • NewMessagesSynchronized
    • if mailbox is INBOX
    • collect the From addresses of the newly synchronized messages

The existing deduplication logic in AddressCollector can prevent duplicate entries.

So, if a user receives a message from:

John Example [email protected]

then [email protected] should become available in Mail address autocomplete even if the user has never sent an email to that address.

Describe alternatives you've considered

No response

Additional context

We implemented and tested this locally with Nextcloud Mail 5.12.0 by registering AddressCollectionListener for NewMessagesSynchronized and passing each incoming message's From address to the existing AddressCollector.

The feature works correctly with the existing collected-address autocomplete mechanism.

This request is primarily about collecting addresses from newly synchronized incoming messages. Historical backfilling of already-synchronized messages could be considered separately.

Nextcloud version: 34.0.2
Mailserver or service: Gmail / IMAP
Operating system: Debian GNU/Linux 13 (trixie)
PHP: 8.5.10
Web server: Apache 2.4.68
Database: PostgreSQL
Lingua principale
JavaScript
Stelle
1k
Fork
348
Merge medio
1g 22h
PR unite (30g)
66

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/mail

Tutte le issue di nextcloud/mail

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.