Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Auto Reply and RoundCube

  1. #1

    Default Auto Reply and RoundCube

    Hi

    I love Round Cube, but am having some difficulty in getting the Auto Reply feature working (http://roundcubeforum.net/forum/index.php?topic=1548.0) has anyone tried this, and if so, have you been able to get it working? I think all I am missing is the MTA links, which is what the developer thought as well.

    Any help would be appreciated.

  2. #2

    Default

    I'm running RoundCube as well, but I haven't tried setting up any auto-responders.

    I will try to find time this week to do so and report back ... unless you find your answer before then ...

    ~regards
    He is no fool that gives what he cannot keep to gain what he cannot lose. - Jim Elliot
    4ChristMinistry.org - Web development tutorials and Community forum.
    Demos - Kicking the tires on some popular software.

  3. #3

    Default

    Thanks so much, it is a great feature, let me know how you make out. I installed the change password plug-in last night, with Auto-Reply it will make the software pretty much complete.

  4. #4

    Default

    Let me know exactly what plugins you have to I get the right ones. I will work on this when I get the correct plugins.
    He is no fool that gives what he cannot keep to gain what he cannot lose. - Jim Elliot
    4ChristMinistry.org - Web development tutorials and Community forum.
    Demos - Kicking the tires on some popular software.

  5. #5

    Default

    You do not need any other plug-ins for round cube for the Auto Reply Feature, other than the Autoresponder ones, the instructions/files are available on the forum, in my first post. I had no plug-ins installed with RC until the Auto Responder.

    Below though is the English instructions. My trouble is how do you link this with Host Monster's MTA. I think that is all I am missing.

    short but simple howto

    0. make a backup of your RC !!!

    1. edit file index.php in main RC webdir and after
    "include_once('program/steps/settings/func.inc');"
    add
    if ($_action=='autoreply' || $_action=='save-autoreply')
    include('program/steps/settings/autoreply.inc');

    result like below

    (...)
    // include task specific files
    if ($_task=='settings')
    {
    include_once('program/steps/settings/func.inc');
    if ($_action=='autoreply' || $_action=='save-autoreply')
    include('program/steps/settings/autoreply.inc');
    (...)

    2. edit file program/steps/settings/func.inc, look for
    "// register UI objects
    $OUTPUT->add_handlers(array(
    'userprefs' => 'rcmail_user_prefs_form',
    'itentitieslist' => 'rcmail_identities_list',"
    next add line
    'autoreply' => 'rcmail_autoreply_form',

    result like below

    (...)
    // register UI objects
    $OUTPUT->add_handlers(array(
    'userprefs' => 'rcmail_user_prefs_form',
    'itentitieslist' => 'rcmail_identities_list',
    'autoreply' => 'rcmail_autoreply_form'
    ));


    3. edit file program/js/app.js, search for "case 'settings':"
    change line
    this.enable_command('preferences', 'identities', 'save', 'folders', true);
    to
    this.enable_command('preferences', 'identities', 'save', 'folders', 'autoreply', true);
    and just below add the following:
    if ( this.env.action=='autoreply' || this.env.action=='save-autoreply' ) {
    var input_active = rcube_find_object('_active_autoreply');
    var input_tekst = rcube_find_object('_tekst_autoreply');
    this.enable_command('save-autoreply', true);
    }

    result like below

    (...)
    case 'settings':
    this.enable_command('preferences', 'identities', 'save', 'folders', 'autoreply', true);
    if ( this.env.action=='autoreply' || this.env.action=='save-autoreply' ) {
    var input_active = rcube_find_object('_active_autoreply');
    var input_tekst = rcube_find_object('_tekst_autoreply');
    this.enable_command('save-autoreply', true);
    }
    (...)

    in the same file program/js/app.js look for
    "this.delete_folder(props);
    break;"
    and just below add next lines:
    case 'autoreply':
    this.goto_url('autoreply');
    break;

    case 'save-autoreply':
    var input_active = rcube_find_object('_active_autoreply');
    var input_tekst = rcube_find_object('_tekst_autoreply');
    this.gui_objects.editform.submit();
    break;

    result like below

    (...)
    case 'delete-folder':
    if (confirm(this.get_label('deletefolderconfirm')))
    this.delete_folder(props);
    break;

    case 'autoreply':
    this.goto_url('autoreply');
    break;

    case 'save-autoreply':
    var input_active = rcube_find_object('_active_autoreply');
    var input_tekst = rcube_find_object('_tekst_autoreply');
    this.gui_objects.editform.submit();
    break;
    (...)

    4. enter directory program/steps/settings/ and download file
    http://daniel.blogs.jebiemnieto.org/...toreplyinc.txt, rename it to
    autoreply.inc and make sure that owner and group is the same as the rest of files in this dir

    5. edit autoreply.inc and modify function rcmail_save_autoreply and rcmail_autoreply_form($attrib)
    my mta user table have uniq id ("id") and every user afer succesfull login into RC "gets" session
    variable ("$_SESSION['adnet_id']") in which i store users id. this is done in program/include/main.inc
    file in function rcmail_login($user, $pass, $host=NULL)
    <after
    // user already registered -> overwrite username
    if ($sql_arr = $DB->fetch_assoc($sql_result))
    {
    $user_id = $sql_arr['user_id'];
    $user = $sql_arr['username'];
    }
    i added
    @ $DB_1 = new mysqli('localhost', 'adnetmail', 'VerySecurePassword123456', 'adnet_mail');
    $RESULT_1 = $DB_1->query('SELECT id FROM v_daemon WHERE email = \'' . $user . '\'');
    $ROWS_1 = $RESULT_1->num_rows;
    if ( $ROWS_1 == 1 ) {
    $ROW_2 = $RESULT_1->fetch_assoc();
    $adnet_id = $ROW_2['id'];
    $_SESSION['adnet_id'] = $adnet_id;
    }
    $DB_1->close();

    how you can see in this file you can customize getting user id from mta database (if you have to) or you can
    skip this simply just modifing only rcmail_save_autoreply and rcmail_autoreply_form functions in autoreply.inc,
    to update fileds in your table.

    6. download template http://daniel.blogs.jebiemnieto.org/...oreplyhtml.txt and
    save as autoreply.html into skins/default/templates/ and also make sure httpd can access to the file.

    7. edit program/localization/en_US/labels.inc adding lines

    $labels['autoreply'] = 'Autoreply';
    $labels['titleautoreply'] = 'Autoreply settings';
    $labels['activeautoreply'] = 'Autoresponder active';
    $labels['textautoreply'] = 'Autoresponder text';

    8. edit program/localization/en_US/messages.inc adding lines

    $messages['autoreplymodified'] = 'Autoresponder settings saved.';
    $messages['noautoreply'] = 'Autoreponder active but no text provided.';

    You can also expand this messages and labels to your language, just edit files
    program/localization/${yours_lang}/{labels.inc,messages.inc} but remember to encode it with utf-8

    9. edit file skins/default/includes/settingstabs.html, make sure its like this

    <div id="tabsbar">
    <span id="settingstabdefault" class="tablink"><roundcube:button command="preferences" type="link" label="preferences" title="editpreferences" /></span>
    <span id="settingstabfolders" class="tablink"><roundcube:button command="folders" type="link" label="folders" title="managefolders" class="tablink" /></span>
    <span id="settingstabidentities" class="tablink"><roundcube:button command="identities" type="link" label="identities" title="manageidentities" class="tablink" /></span>
    <span id="settingstabautoreply" class="tablink"><roundcube:button command="autoreply" type="link" label="autoreply" title="titleautoreply" class="tablink" /></span>
    </div>



    10. I belive thats all

  6. #6

    Default

    Yeah ... after I posted my last response, I found those instructions and started following them. I can't get past step 2 though because my func.inc file does not contain the required code.

    Of course, I don't think I have the latest version, so I will try to find some time to update and then try again. I don't know if this will work though, as I'm not sure HM will provide what is needed to connect to their mta database ... I probably wouldn't allow this if it were me.

    The semi-good news though, is you can configure auto responses through a CPanel form by logging into www.yourdomain.com/webmail

    It's the best I have right now, until I can find out how to ask support for the information .... which I anticipate they will deny ...

    ~regards
    He is no fool that gives what he cannot keep to gain what he cannot lose. - Jim Elliot
    4ChristMinistry.org - Web development tutorials and Community forum.
    Demos - Kicking the tires on some popular software.

  7. #7

    Default

    Thanks, what do I need to ask them specifically, I am lost with that aspect of the install.

  8. #8

    Default

    I was trying to think of the best way to ask support about this as well and came up blank.

    I think you will have to explain what it is you are trying to do and then tell them what information you are missing and ask if it would be possible for them to supply you with that info ...

    That's as close as I can get.

    ~regards
    He is no fool that gives what he cannot keep to gain what he cannot lose. - Jim Elliot
    4ChristMinistry.org - Web development tutorials and Community forum.
    Demos - Kicking the tires on some popular software.

  9. #9

    Default

    I will let you know!

  10. #10

    Default

    Still have had no reply from support....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •