diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index 7f8408fed3d..4f964f56f1a 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -1177,6 +1177,16 @@ public function closeConnection() $this->clearCapability(); } + /** + * Get crrent user. + * + * @return string|null Current username set for the connection + */ + public function getUser() + { + return $this->user; + } + /** * Executes SELECT command (if mailbox is already not in selected state) *