Your message dated Fri, 27 Dec 2019 10:49:56 +0000
with message-id <[email protected]>
and subject line Bug#947320: fixed in roundcube 1.4.1+dfsg.1-2
has caused the Debian Bug report #947320,
regarding roundcube-core: Retry to connect to IMAP server
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.)


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

Hey,

An IMAP server may have temporally issues, like to much load and roundcube 
fails with
"Empty startup gretting".

Hefee


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'oldstable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), 
(500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en_US 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages roundcube-core depends on:
ii  dbconfig-common                                 2.0.13
ii  debconf [debconf-2.0]                           1.5.73
ii  dpkg                                            1.19.7
ii  libapache2-mod-php                              2:7.3+69
ii  libapache2-mod-php7.3 [libapache2-mod-php]      7.3.12-1
pn  libjs-bootstrap4                                <none>
ii  libjs-codemirror                                5.49.2-1
ii  libjs-jquery                                    3.3.1~dfsg-3
pn  libjs-jquery-minicolors                         <none>
ii  libjs-jquery-ui                                 1.12.1+dfsg-5
pn  libjs-jstimezonedetect                          <none>
ii  libmagic1                                       1:5.37-6
pn  php-auth-sasl                                   <none>
ii  php-cli                                         2:7.3+69
ii  php-common                                      2:69
pn  php-intl                                        <none>
pn  php-mail-mime                                   <none>
pn  php-masterminds-html5                           <none>
pn  php-mbstring                                    <none>
pn  php-mcrypt                                      <none>
pn  php-net-sieve                                   <none>
pn  php-net-smtp                                    <none>
pn  php-net-socket                                  <none>
ii  php-pear                                        1:1.10.9+submodules+notgz-1
ii  php7.0-cli [php-cli]                            7.0.33-0+deb9u6
ii  php7.0-json [php-json]                          7.0.33-0+deb9u6
ii  php7.2-cli [php-cli]                            7.2.9-1
ii  php7.2-json [php-json]                          7.2.9-1
ii  php7.3-cli [php-cli]                            7.3.12-1
ii  php7.3-json [php-json]                          7.3.12-1
pn  roundcube-mysql | roundcube-sqlite3 | roundcub  <none>
ii  ucf                                             3.0038+nmu1

Versions of packages roundcube-core recommends:
ii  apache2 [httpd-cgi]  2.4.41-1
pn  php-gd               <none>
pn  php-pspell           <none>

Versions of packages roundcube-core suggests:
pn  php-crypt-gpg             <none>
pn  php-mkopinsky-zxcvbn-php  <none>
pn  php-net-ldap2             <none>
pn  php-net-ldap3             <none>
pn  roundcube-plugins         <none>
Description: Retries to connect to IMAP server.
  As it may happen, that an IMAP server will have temporally issues and answers
  with "Empty startup greeting".
Author: Hefee <[email protected]>
Last-Update: 2019-12-24

---
--- a/program/lib/Roundcube/rcube_imap.php
+++ b/program/lib/Roundcube/rcube_imap.php
@@ -144,7 +144,11 @@ class rcube_imap extends rcube_storage
 
         $attempt = 0;
         do {
-            $data = $this->plugins->exec_hook('storage_connect',
+                if ($attempt > 0) {
+                    usleep(rand(1000, 100000));
+                }
+                rcube::write_log('imap','Connecting to IMAP server 
attempt:'.$attempt);
+                $data = $this->plugins->exec_hook('storage_connect',
                 array_merge($this->options, array('host' => $host, 'user' => 
$user,
                     'attempt' => ++$attempt)));
 
@@ -156,7 +160,7 @@ class rcube_imap extends rcube_storage
             rcube_utils::parse_socket_options($data['socket_options'], 
$data['host']);
 
             $this->conn->connect($data['host'], $data['user'], $pass, $data);
-        } while(!$this->conn->connected() && $data['retry']);
+        } while(!$this->conn->connected() && $data['attempt'] < 6);
 
         $config = array(
             'host'     => $data['host'],

--- End Message ---
--- Begin Message ---
Source: roundcube
Source-Version: 1.4.1+dfsg.1-2

We believe that the bug you reported is fixed in the latest version of
roundcube, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guilhem Moulin <[email protected]> (supplier of updated roundcube package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 27 Dec 2019 11:14:20 +0100
Source: roundcube
Architecture: source
Version: 1.4.1+dfsg.1-2
Distribution: unstable
Urgency: low
Maintainer: Debian Roundcube Maintainers 
<[email protected]>
Changed-By: Guilhem Moulin <[email protected]>
Closes: 947320
Changes:
 roundcube (1.4.1+dfsg.1-2) unstable; urgency=low
 .
   [ Sandro Knauß ]
   * Add patch to Fix "Retry to connect to IMAP server" (Closes: #947320)
Checksums-Sha1:
 1f6c306bd3e4fe75737407676f1d7dc2593a5eb8 2443 roundcube_1.4.1+dfsg.1-2.dsc
 08b28dc9edfb417be7e61e868c385a85621e5444 1224704 
roundcube_1.4.1+dfsg.1-2.debian.tar.xz
 18c2fa38e38880b0455e0b340010840b0b2b039f 9376 
roundcube_1.4.1+dfsg.1-2_amd64.buildinfo
Checksums-Sha256:
 83d4dca3951d379014b4845e4ab2903cc9c70c55575919e7334d0d35b72cc915 2443 
roundcube_1.4.1+dfsg.1-2.dsc
 c0bf78754557af578c339d157ea673a953de855a18b9aba3f53f228667190fc6 1224704 
roundcube_1.4.1+dfsg.1-2.debian.tar.xz
 a5139a191f3eeb1f64fc61a7278e6420f2e38ecac2b9a09c6f4261d0d20b8713 9376 
roundcube_1.4.1+dfsg.1-2_amd64.buildinfo
Files:
 29d616a38e4294b0979055fe948bfedc 2443 web optional roundcube_1.4.1+dfsg.1-2.dsc
 49a43737f52bb77aec9e3b30079245c7 1224704 web optional 
roundcube_1.4.1+dfsg.1-2.debian.tar.xz
 e75581b22c159ddb4e5756a96d9bf651 9376 web optional 
roundcube_1.4.1+dfsg.1-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERpy6p3b9sfzUdbME05pJnDwhpVIFAl4F2n4ACgkQ05pJnDwh
pVJxThAAjNpR7N6w+NQvH7Z5elsZ2mwaWzDPehxH1sTPSF6vgvya8ToUaaWqDqK3
7XD/OoIB7yW0XBReHUGGqnWbyJpfepQMnPoaQDBmmtNWgzAK7nC6T4fQodyp1GaN
BTRYtcySHw6bO3keyD0jU+3iyYmQ3tcznCZDDcE3NszRZeLNqLzbh648B/6YRq11
RWNwRqs2u2SjVTfCdJh03HHB7yk8od0qhSo9oOZrFb7haLTyswDyFi6f+22pGHoy
pNIH/DmhnTsS0yP75b5ehYLaNLXqpVJ509j+9UOPwCMGUgnLjokhX/PRAbPG7xwL
5w8R4ZGywNStgrjiggMm0S0GSl4DCENNPrpFDhCvezEUjDdV59CrOIIhGdYcZXYW
M7wi8ADETuysH/JNgL0ueg+ZKQ6CsTe2Qvzw1M/Qp31uw+mv7NZ3YH2taRnokxVJ
URmIzz9wPDnKLqnBIfMB5vudMJy7M2nOz10UxrY4AXxkl9ArNycEVwRMhPx2K7Rx
LdK/K8reKmHXOAmPSmkQhl9uTvyw+IA8qF5gCVtUwedV7mBNqBepCR3tX0diHNVV
RHLUy37xDguQ+fFsGk6v5rZYxg7i7t7ceZ6nYpa6q00EYGAdWJbMLJrayYPLJCZn
+NWnfRpOCM1XiB/UdecGQPYNO2RD/9jNMB7UzoeRaKNTZmrftt0=
=7kpj
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to