Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Plugins/Modules/Addons

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd October 2013, 12:53
kokez kokez is offline
Junior Member
 
Join Date: Dec 2005
Location: Italy
Posts: 14
Thanks: 6
Thanked 2 Times in 2 Posts
Send a message via Skype™ to kokez
 
Default roundcube plugin ispconfig3_account

I only recently discovered that with the new version of ispconfig3, an user can access the mailserver with the email address and with the username, and this also from roundcube webmail.

This makes the migration from an ispconfig2 a lot easier. For this reason, I feel that I have to thank Till, Falko and the rest of the development team.

But once activated this possibility, I noticed that roundcube, logging in with the email, it fails to identify the user. Then I made some changes in: plugins/ispconfig3_account/ispconfig3_account.php

Line 67, from:
$mail_user = $this->soap->mail_user_get($session_id, array('login' => $this->rcmail_inst->user->data['username']));

in this way:
$username = $this->rcmail_inst->user->data['username'];
$field = strpos($username,'@') ? 'email' : 'login';
$mail_user = $this->soap->mail_user_get($session_id, array($field => $username));

Line 136 (now 138), from:
$this->rcmail_inst->output->set_env('framed', TRUE);

in this way:
$username = $this->rcmail_inst->user->data['username'];
$field = strpos($username,'@') ? 'email' : 'login';

$this->rcmail_inst->output->set_env('framed', TRUE);

Line 140 (now 145), from:
$table->add('', Q($this->rcmail_inst->user->data['username']));

in this way:
$table->add('', Q($username));

Line 155 (now 160), from:
$mail_user = $this->soap->mail_user_get($session_id, array('login' => $this->rcmail_inst->user->data['username']));

in this way:
$mail_user = $this->soap->mail_user_get($session_id, array($field => $username));


Trivial but effective for my needs, to check the presence of the "@" character. If you think that it is useful, I propose a change to the plugin developer to implement it in the repository, so it becomes for the benefit of all.

Ciao!
__________________
Luigi Cocconcelli
+393931792932
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RoundCube plugins : Soap Error: Could not connect to host daggett Plugins/Modules/Addons 9 20th August 2013 18:38
Spamassasin markasjunk2 roundcube plugin HyperAtom General 1 17th November 2012 20:19
How to upgrade Roundcube 0.3 to 0.7 on Ubuntu 10.04 LTS cbj4074 Tips/Tricks/Mods 1 19th January 2012 19:50
roundcube plugin jgv Installation/Configuration 1 14th June 2011 16:53
Spamassassin not working hairydog2 General 7 12th July 2008 21:15


All times are GMT +2. The time now is 20:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.