Mailuser interface

Discussion in 'Plugins/Modules/Addons' started by Horfic, Aug 23, 2009.

?

Would you like to see a mailuser interface for Roundcube & Squirrelmail?

  1. Yes

    219 vote(s)
    98.6%
  2. No

    3 vote(s)
    1.4%
  1. NeeChee

    NeeChee New Member

    What exactly do you mean? I don't understand. Try changing the file mentioned in post #133 accordingly
     
  2. moglia

    moglia New Member

    Investigations.

    Im making tests with $mail_user = $client->mail_user_get($session_id, $params); and return 4 me.

    Code:
    # php -q test.php
    Logado:d14c9669b71540a82c376ae3cf874b3d<br />Array
    (
        [0] => Array
            (
                [mailuser_id] => 312
                [sys_userid] =>[B] 2[/B]
                [sys_groupid] => 2
                [sys_perm_user] => riud
                [sys_perm_group] => riud
                [sys_perm_other] =>
                [server_id] => 1
                [email] => [email protected]
             )
    
    Code:
    Logado:a7e88cacfd9e6189e46a6a8b47e10f6f<br />Array
    (
        [0] => Array
            (
                [mailuser_id] => 315
                [sys_userid] => [B]3[/B]
                [sys_groupid] => 3
                [sys_perm_user] => riud
                [sys_perm_group] => riud
                [sys_perm_other] =>
                [server_id] => 1
                [email] => [email protected]
    
    Fact, no have sys_userid 2 on sys_user table.
    Code:
    mysql> select sys_userid,userid,username from sys_user;
    +------------+--------+--------------+
    | sys_userid | userid | username     |
    +------------+--------+--------------+
    |          1 |      1 | admin                   |
    |          1 |      2 | xptouser                     |
    |          1 |      3 | anotherdomainuser     |
    |          1 |      4 | xxx1 |
    |          1 |      5 | xxx3      |
    |          1 |      6 | xxx4           |
    +------------+--------+--------------+
    6 rows in set (0.00 sec)
    
    On sys_user table the field used is userid =D i discovered it now. =D
     
    Last edited: Feb 23, 2010
  3. moglia

    moglia New Member

    New Code For loadUserProfile

    Corespondent field is userid i keep sysuser_id for any compatibility issues no have idea of impact of this modifications. Anyone need check it on future. Modifications turns working of remote functions from horifc roundcube ispconfig integration .

    Just made a simple test write values to console to check whats client_id are resiving and results is userid field =D

    Look the modifications above:

    PHP:
    //* Load the user profile
            
    function loadUserProfile($client_id 0) {
                global 
    $app,$conf;

                
    $client_id intval($client_id);
                
                if(
    $client_id == 0) {
                    
    $this->sys_username         'admin';
                    
    $this->sys_userid            1;
                    
    $this->sys_default_group     1;
                    
    $this->sys_groups            1;
                } else {
                    
    //* load system user - try with sysuser and before with userid (workarrond)
                    
    $user $app->db->queryOneRecord("SELECT * FROM sys_user WHERE sysuser_id = $client_id");
                    if(empty(
    $user["userid"])) {
                            
    $user $app->db->queryOneRecord("SELECT * FROM sys_user WHERE userid = $client_id");        
                            if(empty(
    $user["userid"])) {
                                    
    $this->errorMessage .= "No sysuser with the ID $client_id found.";
                                    return 
    false;
                            }
                    }
                    
    $this->sys_username         $user['username'];
                    
    $this->sys_userid            $user['userid'];
                    
    $this->sys_default_group     $user['default_group'];
                    
    $this->sys_groups             $user['groups'];
                }

            return 
    true;
            }  
     
    Last edited: Feb 24, 2010
  4. moglia

    moglia New Member

  5. Horfic

    Horfic Member

    Yep, moglia you are right. Thanks for the change, forgot about that bit.
     
  6. Nicke

    Nicke New Member

    Swedish translation for mailfilter.
     
    Last edited: Feb 26, 2010
  7. Nicke

    Nicke New Member

    Made a small change to the Swedish language file. :)
     

    Attached Files:

  8. NeeChee

    NeeChee New Member

    Committed ;)
     
  9. airton

    airton New Member

    Italian translation for mailfilter plugin.

    This is a great plugin!
    Thanks.
     

    Attached Files:

  10. NeeChee

    NeeChee New Member

    Slovenian and French translation for the filterplugin are still absent... If the authors of those languages could translate :D That'd be awesome!
     
  11. moglia

    moglia New Member

    Grazie per il contributo della traduzione italiana. :D
     
  12. dclardy

    dclardy Member

    Are the instructions still the same to install this with ISPConfig 3.2.0 RC1?
     
  13. giftsnake

    giftsnake New Member

    and more important:

    when the final release comes out: can i simply update as usual?
     
  14. Horfic

    Horfic Member

    The plugins aren't yet working 100% with 3.0.2 version of ISPConfig.

    There was a change in the remote api from ISPConfig 3 with this version. So I'm waiting until the final 3.0.2 release to release my plugins for the version.

    So, I will post here, when the plugins are ready to use for ISPConfig 3.0.2.

    PS: I wouldn't recommend to use the plugins for the RC versions atm.

    UPDATE:
    I will release the plugins for ISPConfig 3.0.2 on the weekend. Should also include the forwarding plugin.
     
    Last edited: Mar 11, 2010
  15. NeeChee

    NeeChee New Member

    Presents coming up! ;D (I hope)

    P.S. Polish translation is now available in the SVN repo.
     
  16. dclardy

    dclardy Member

    Is this working with 3.0.2.1? I saw that it was going to be released last weekend, but I never saw any other update.

    Thanks.
     
  17. Horfic

    Horfic Member

    Thats my fault, or better the work overflow at my place.

    I got a couple of websites I have to do and the university is atm also not really lying back.

    So I didn't had time yet. Sorry for that.
     
  18. kinai

    kinai Member

    French Translation for mail filter

    Hi NeeChee,

    Because is not possible to add attachment in private message, you can find below the french translation of mail filter plugin.

    Regards,
    Kinai
     

    Attached Files:

  19. bswinnerton

    bswinnerton New Member

    Any progress on this Horfic? I'm patiently awaiting a way to do it with 3.0.2.1 :)
     
  20. chicken12

    chicken12 New Member

    I just installed the plugin. Seems to be working great. Thanks for the sweet plugin! Question for you. Are there plans to add a feature to whitelist email addresses from the spam filter? Today I am doing that manually in the ispconfig UI. Thats the biggest request I have from users right now. Thanks!!!!
     

Share This Page