mail icon indicating copy to clipboard operation
mail copied to clipboard

[Feature Request] Support RFC2971, IMAP ID extension.

Open Catty2014 opened this issue 2 months ago • 2 comments

Is your feature request related to a problem? Please describe.

I attempted to connect Nextcloud Mail with my Netease Mail(163.com), however it gets hung at inbox page, like #10219. Information "Unsafe Login. Please contact [email protected] for help" is in the debug log.

Describe the solution you'd like

According to this page, RFC2917(IMAP ID Extension) should be used to communicate with server. Thus I'd expect Nextcloud Mail to support IMAP ID.

Describe alternatives you've considered

No response

Additional context

I'd like to inspect if horde-imap_client supports IMAP ID or relevant.

Catty2014 avatar Dec 09 '25 12:12 Catty2014

Thanks for your feature request 👍

Horde does support the RFC 2971 / IMAP4 ID extension.

You can try patching your instance like that and see if it's already enough. My understanding of 2917 is that a client may send an ID, but a server should not require it.

Index: lib/IMAP/IMAPClientFactory.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/IMAP/IMAPClientFactory.php b/lib/IMAP/IMAPClientFactory.php
--- a/lib/IMAP/IMAPClientFactory.php	(revision 0caf8e0c8e75fc1e4d589ec135585567ed9a5003)
+++ b/lib/IMAP/IMAPClientFactory.php	(date 1765313288260)
@@ -137,6 +137,10 @@
 			$client->enableRateLimiter($rateLimitingCache, $paramHash, $this->timeFactory);
 		}
 
+		if($client->capability->query('ID')) {
+			$client->sendID();
+		}
+
 		return $client;
 	}
 }

kesselb avatar Dec 09 '25 20:12 kesselb

Tested and confirmed it works for the reported issue. Thanks!

Catty2014 avatar Dec 10 '25 02:12 Catty2014