651bb19d053acf60a8c4a867b30dedb9b63eaf26
Extract business logic into dedicated classes under lib/: - IdentSwitchForm: form building, validation, and persistence - IdentSwitchSwitcher: account switching, SMTP config, special folders - IdentSwitchPreconfig: domain-based preconfiguration The main plugin class remains the orchestrator, registering hooks and delegating to the appropriate handler. Constants changed from private to public to allow cross-class access.
ident_switch
ident_switch plugin for Roundcube
This plugin allows users to switch between different accounts (including remote) in single Roundcube session like this:
Inspired by identities_imap plugin that is no longer supported.
Where to start
- In settings interface create new identity.
- For all identities except default you will see new section of settings - "Plugin ident_switch" (see screenshot below). Enter data required to connect to remote server. Don't forget to check Enabled check box.
- After you have created at least one identity with active plugin you will see combobox in the top right corner instead of plain text field with account name. It will allows you to switch to another account.
Settings
- Enabled - enables plugin (i.e. account switcing) for this identity.
- Label - text that will be displayed in drop down list for this identity. If left blank email will be used.
- IMAP
- Server host name - host name for imap server. If left blank 'localhost' will be used.
- Port - port on server to connect to. If left blank 143 will be used.
- Secure connection - enabled secure connection (TLS) for both IMAP and SMTP.
- Username - login used for IMAP and SMTP servers.
- Password - password used for IMAP and SMTP servers. It's stored encrypted in database.
- SMTP
- Server host name - host name for imap server. If left blank 'localhost' will be used.
- Port - port on server to connect to. If left blank 587 will be used.
Version compatibility
- Versions 1.X (not supported any more) - for Roundcube v1.1
- Versions 2.X (not supported any more) - for Roundcube v1.2
- Versions 3.X (not supported any more) - for Roundcube v1.3
- Versions 4.x - for Roundcube v1.3, 1.4 and 1.5.
- Versions 5.x - for Roundcube v1.6+ (PHP 8.1+)
This is a fork of the original plugin by Boris Gulay, maintained at Gecka-apps/ident_switch.
Contributors
- Boris Gulay - Original developer (2016-2022)
- Christian Landvogt - Special folders support (2019)
- Gergely Papp - Bug fixes (2021)
- Mickael - SMTP compatibility fix (2022)
- Laurent Dinclaux - Gecka - Current maintainer (2026)
Languages
PHP
86%
JavaScript
12.1%
CSS
1.9%

