Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.26
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
webuzo-data /
roundcube /
plugins /
reconnect /
Delete
Unzip
Name
Size
Permission
Date
Action
composer.json
533
B
-rw-r--r--
2026-02-08 09:33
config.inc.php.dist
98
B
-rw-r--r--
2026-02-08 09:33
readme.md
517
B
-rw-r--r--
2026-02-08 09:33
reconnect.php
1.22
KB
-rw-r--r--
2026-02-08 09:33
Save
Rename
<?php /** * Roundcube Reconnect Plugin * * @version 0.2 * @author Sandro Knauß <hefee@debian.org> * @license GPLv3+ */ class reconnect extends rcube_plugin { private $imap_max_attempts; /** * Plugin initialization */ function init() { $this->add_hook('storage_connect', [$this, 'storage_connect']); } /** * Storage_connect hook handler */ function storage_connect($args) { $rcmail = rcmail::get_instance(); $this->load_config(); $this->imap_max_attempts = $rcmail->config->get('reconnect_imap_max_attempts', 5); $args['retry'] = ($args['attempt'] <= $this->imap_max_attempts); if ($args['attempt'] == 1) { return $args; } $storage = rcmail::get_instance()->get_storage(); switch ($storage->get_error_code()) { case rcube_imap_generic::ERROR_NO: case rcube_imap_generic::ERROR_BAD: case rcube_imap_generic::ERROR_BYE: $args['retry'] = false; break; } if ($args['retry']) { // if we do a new attempt, sleep 50 to 150ms before retry. usleep(rand(50*1000, 150*1000)); } return $args; } }