Opened 3 years ago

Closed 3 years ago

#1486750 closed Feature Patches (fixed)

Extended virtuser_query plugin

Reported by: steffenvogel Owned by:
Priority: 3 Milestone: 0.5-beta
Component: Plugins Version: 0.4-beta
Severity: normal Keywords:
Cc: info@…, ck@…

Description

Hi,
I've made a patch to the virtuser_query plugin.
It implements now the 'email2user' hook too.
So you can login by entering your username or your email address.

I've also added the 'authenticate' hook to the plugin. So you do not have to select the imap server manually.

I'm new to roundcube hacking. It would be nice to find someone who will commit my patch to the trunk repo. Thank you :)

Attachments (5)

postfix_configuration.txt (306 bytes) - added by steffenvogel 3 years ago.
Postfix configuration
roundcube_configuration.txt (499 bytes) - added by steffenvogel 3 years ago.
Roundcube configuration
db_scheme.sql (209 bytes) - added by steffenvogel 3 years ago.
Database scheme for mySQL
virtuser_query.php (2.7 KB) - added by steffenvogel 3 years ago.
new plugin
virtuser_query.patch (5.0 KB) - added by steffenvogel 3 years ago.
my patch

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by steffenvogel

Postfix configuration

Changed 3 years ago by steffenvogel

Roundcube configuration

Changed 3 years ago by steffenvogel

Database scheme for mySQL

Changed 3 years ago by steffenvogel

new plugin

Changed 3 years ago by steffenvogel

my patch

comment:1 Changed 3 years ago by steffenvogel

  • Cc info@… added

comment:2 Changed 3 years ago by Napsty

  • Cc ck@… added

Hi. Sorry to break the enthusiasm but I just tested your virtuser_query.php and it doesn't work. My virtuser_query in main.inc.php is the following:

$rcmail_config['virtuser_query'] = 'SELECT concat( prefix, "@", domain ) AS address FROM confixx.email, confixx.email_forward WHERE ident = email_ident AND pop3 = "%u" AND prefix <> "*";';

At the first login with your version I don't have any e-mail addresses. With the original one it works.

comment:3 Changed 3 years ago by alec

  • Milestone changed from 0.4.2 to 0.5-beta
  • Resolution set to fixed
  • Status changed from new to closed

Fixed and applied in r4018/svn.

Note: See TracTickets for help on using tickets.