cypht-org / cypht

Cypht: Lightweight Open Source webmail aggregator [PHP, JS]. Supports IMAP/SMTP, JMAP and soon EWS
http://cypht.org
GNU Lesser General Public License v2.1
1.01k stars 164 forks source link

make sieve data format automatic on connect #1331

Closed Shadow243 closed 1 week ago

Shadow243 commented 2 weeks ago

Related comment from @marclaporte : https://avan.tech/item119173#threadId81209

To support both Cypht 1.4 (which uses tls:// prefixes for Sieve hostnames) and newer versions (which omit tls://), we’ve implemented an automated way to determine the correct Sieve hostname format using Nux_Quick_Services. Here's how it works:

  1. Automatic Host Detection: The code checks Nux_Quick_Services to retrieve the correct Sieve host for each service. For example, for migadu, it will use domain.com:port.

  2. Version Compatibility: If the running version is Cypht 1.4, it will prepend tls:// to the hostname (e.g., tls://domain.com:port). For newer versions, it uses the plain hostname format (domain.com:port).

  3. Seamless Integration: This ensures compatibility with both Cypht 1.4 and newer versions without manual configuration changes, reducing user setup errors and simplifying support.