Your message dated Thu, 27 May 2021 01:48:22 +0200
with message-id <YK7eRp6ye/[email protected]>
and subject line Re: Bug#935305: roundcube: comments in defaults.inc.php 
specify incorrect IMAP domain replacement variable %z
has caused the Debian Bug report #935305,
regarding roundcube: comments in defaults.inc.php specify incorrect IMAP domain 
replacement variable %z
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
935305: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935305
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: roundcube
Version: 1.3.8+dfsg.1-2
Severity: minor
Tags: upstream

More or less just a documentation issue:

Comments in /etc/roundcube/defaults.inc.php (as well as
/usr/share/doc/roundcube-core/config.inc.php.sample) say:
// SMTP server host (for sending mails).
...
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld

i.e. the comment claims %z is the IMAP domain, but the example says %t.
In fact, %z does not work, while %t does.

-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.8milan2 (SMP w/6 CPU cores)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages roundcube depends on:
ii  dpkg            1.19.7
ii  roundcube-core  1.3.8+dfsg.1-2

roundcube recommends no packages.

roundcube suggests no packages.

Versions of packages roundcube-core depends on:
ii  dbconfig-common                             2.0.11
ii  debconf [debconf-2.0]                       1.5.71
ii  dpkg                                        1.19.7
ii  libapache2-mod-php                          2:7.3+69
ii  libapache2-mod-php7.0 [libapache2-mod-php]  7.0.33-0+deb9u3
ii  libapache2-mod-php7.3 [libapache2-mod-php]  7.3.4-2
ii  libmagic1                                   1:5.35-4
ii  php-auth-sasl                               1.0.6-3
ii  php-common                                  2:69
ii  php-intl                                    2:7.3+69
ii  php-mail-mime                               1.10.2-0.1
ii  php-net-sieve                               1.4.1-1
ii  php-net-smtp                                1.8.0-1
ii  php-net-socket                              1.0.14-2
ii  php-pear                                    1:1.10.6+submodules+notgz-1.1
ii  php7.0-cli [php-cli]                        7.0.33-0+deb9u3
ii  php7.0-intl [php-intl]                      7.0.33-0+deb9u3
ii  php7.0-json [php-json]                      7.0.33-0+deb9u3
ii  php7.3-cli [php-cli]                        7.3.4-2
ii  php7.3-intl [php-intl]                      7.3.4-2
ii  php7.3-json [php-json]                      7.3.4-2
ii  roundcube-sqlite3                           1.3.8+dfsg.1-2
ii  ucf                                         3.0038+nmu1

Versions of packages roundcube-core recommends:
ii  lighttpd [httpd-cgi]  1.4.53-4
pn  php-gd                <none>
pn  php-pspell            <none>
ii  spawn-fcgi            1.6.4-2

Versions of packages roundcube-core suggests:
pn  php-crypt-gpg      <none>
pn  php-net-ldap2      <none>
pn  php-net-ldap3      <none>
pn  roundcube-plugins  <none>

-- debconf information excluded

--- End Message ---
--- Begin Message ---
On Wed, 18 Dec 2019 at 00:02:44 +0100, Sandro Knauß wrote:
> I am also a little bit puzzled what is the difference between %z and %t.

%n is the value of $_SERVER['SERVER_NAME'] while %h is the IMAP hostname
(from $config['default_host']).  %z is to %h what %t is to %n.  So if
Roundcube is hosted at https://webmail.example.net/ and
$config['default_host'] = 'ssl://imap.mail.com', then %z and %t are
respectively ‘example.net’ and ‘mail.com’.

>> // %z - IMAP domain (IMAP hostname without the first part)
>> // For example %n = mail.domain.tld, %t = domain.tld
>> 
>> i.e. the comment claims %z is the IMAP domain, but the example says %t.

The example says that if the *HTTP* hostname %n is mail.domain.tld then
its second-level domain %t is domain.tld.

>> In fact, %z does not work, while %t does.

Works for me with 1.3.16+dfsg.1-1~deb10u1.  That said %z resp. %t won't
work for IP literals because trimming leftmost labels is done with
preg_replace('/^[^.]+\.(?![^.]+$)/', …).

-- 
Guilhem.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to