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

[FR] IMAP: Allow use of subdomain only as host

Aperta
#275 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start at the IMAP external authentication backend and trace how the first user-backend argument is used as the IMAP host. Verify the proposed behavior for a host ending in a dot, using the username domain to form the host, and confirm that existing fixed-host configuration continues to work.

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

Descrizione

0. Needs triage enhancement

Is your feature request related to a problem? Please describe.
I'm hosting Nextcloud for CardDAV/CalDAV logins from IMAP authentication, but this NC instance needs to host accounts from different mail services.
I can configure:

 'user_backends' => 
 array (
   0 => 
   array (
     'class' => '\\OCA\\UserExternal\\IMAP',
     'arguments' => 
     array (
       0 => 'imap.example.net',
       1 => 993,
       2 => 'ssl',
       3 => ,
       4 => false,
       5 => false,
     ),
   ),
 ),

to [email protected] that authenticate to imap.example.net
but I can't configure [email protected] that need to authenticate to imap.example.COM

Describe the solution you'd like
My proposal is to allow specify only subdomain as IMAP server:

 'user_backends' => 
 array (
   0 => 
   array (
     'class' => '\\OCA\\UserExternal\\IMAP',
     'arguments' => 
     array (
       0 => 'imap.',
       1 => 993,
       2 => 'ssl',
       3 => ,
       4 => false,
       5 => false,
     ),
   ),
 ),

This way, when External user authentication extension finds first argument ending with a dot '.' it should append e-mail address FQDN to argument:
On 0 => 'sub.', and username is "[email protected]" concatenate "sub." + "example.net" to get "sub.example.net" as IMAP host.

Lingua principale
JavaScript
Stelle
120
Fork
72
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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/user_external

Tutte le issue di nextcloud/user_external

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.