+-------------------------------------------------------------------------+
|
|  Author:  Roland 'rosali' Liebl (myroundcube@mail4us.net)
|  Plugin:  impersonate based on dovecot_impersonate by Cor Bosman (roundcube@wa.ter.net)

|  Version: 1.0
|  Purpose: Impersonate another user using
|
+-------------------------------------------------------------------------+

This plugin lets you impersonate another user using the master user.

REQUIREMENTS: 'savepassword' plugin (http://myroundcube.googlecode.com)

WARNING:  please only use for user support or similar operational issues.
          I recommend you always get the user's approval.
          Using this without consent may be illegal in some countries.
          
The default separator character used is '*', but you can set a different one
using the plugin config file.

How it works:

When you login to roundcube, you have to use your master user information:

Login: user*master
Password: password_of_master

The plugin then strips the master info from the form, so all preferences are correctly
fetched for the user. (else it would try to find preferences for user*master). If you use
any other plugins that use the authenticate hook, you might want to make this plugin the
first plugin.

When roundcube authenticates with the imap server, the master user information is added
again.