Skip to content

Commit 2f051c0

Browse files
committed
Add rcube_imap_generic::getUser() method
It's sometimes useful when all we have is the connection object
1 parent dbbde75 commit 2f051c0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

program/lib/Roundcube/rcube_imap_generic.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,16 @@ public function closeConnection()
11771177
$this->clearCapability();
11781178
}
11791179

1180+
/**
1181+
* Get crrent user.
1182+
*
1183+
* @return string|null Current username set for the connection
1184+
*/
1185+
public function getUser()
1186+
{
1187+
return $this->user;
1188+
}
1189+
11801190
/**
11811191
* Executes SELECT command (if mailbox is already not in selected state)
11821192
*

0 commit comments

Comments
 (0)