Skip to content

Commit

Permalink
Add rcube_imap_generic::getUser() method
Browse files Browse the repository at this point in the history
It's sometimes useful when all we have is the connection object
  • Loading branch information
alecpl committed Jan 17, 2025
1 parent dbbde75 commit 2f051c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*
Expand Down

0 comments on commit 2f051c0

Please sign in to comment.