#97 vacation and autoreply

closed-fixed
nobody
Vacation (23)
5
2013-12-28
2011-02-15
J.Kruis
No

This patch allow the admin to select three type of vacation message

one reply
reply after delay time
autoreply

The admin of a domain can give the users of that domain the right to change the setting of the vacation type or not.
If this function is used is set by $conf [allow_user_reply]

other default setting are put in config.inc.php or config.local.php

Discussion

  • J.Kruis

    J.Kruis - 2011-02-15
     
  • J.Kruis

    J.Kruis - 2011-02-15

    // Vacation Control
    // If you want users to take control of vacation set this to 'YES'.
    $CONF['vacation_control'] ='YES';

    // Vacation Control for admins
    // Set to 'YES' if your domain admins should be able to edit user vacation.
    $CONF['vacation_control_admin'] = 'YES';

    // Alllow ReplyType Control
    // This varible will be check in ./templates/vacation.tpl if it should enable this option
    // YES mains it show the reply option everthing els mains it will not show
    $CONF['replytype_control'] = 'YES';

    // AllowUser Reply
    // You can Allow or Disable User to contole over Reply Type
    // This varible will be check in ./templates/vacation.tpl if it should enable this option
    // YES mains it show the reply option everthing els mains it will not show
    $CONF['allow_user_reply'] = 'YES';

    // RepleyType options
    // If you want to define additional reply options put them in array below.
    $CONF['choice_of_reply'] = array (
    'One Reply', // Sends only Once the message during Out of Office
    'Auto Reply', // Reply on every email but not within autoreplydelay
    'Interval Reply' // Reply on every email but not within repldelay_default
    );

    // ReplyType default
    // You should define default replytype. It must be in array above.
    $CONF['replytype_default'] = 'One Reply';

    // autoreplydelay
    // You should define autodefaultdelay is seconds
    // if a new message comes in within this delay it most likely that that the sender is
    // autoreplying on our autoreply message.
    $CONF['autoreplydelay_default'] = '100';

    // Replydelay default
    // You should define default replydelay time here time in in seconds.
    $CONF['intervaldelay_default'] = '86400'; // is 1 day = 60 sec * 60 min * 24 hours

     
  • GingerDog

    GingerDog - 2012-04-19
    • labels: --> Vacation
    • status: open --> pending
     
  • GingerDog

    GingerDog - 2012-04-19

    Typo fixes for the below; also suggest the config parameters are all renamed to start with 'vacation_' (which I haven't done).

    I can't merge the patch as edit-domain has now been removed.

    You also have a syntax error in VacationHandler ( 'interval_time' => $$interval_time). (double $)

    Can you also remove the 'e' off the end of users_domain_controle ?

    The vacation.pl part of the patch looks fine to me.

    thanks for taking the time to submit the patch; if you could resync it with trunk and make the few changes I'm asking for, I'll merge it.

    David.

    //
    //
    // Virtual Vacation Stuff
    //
    //

    // If you want to use virtual vacation for you mailbox users set this to 'YES'.
    // NOTE: Make sure that you install the vacation module. (See VIRTUAL-VACATION/)
    $CONF['vacation'] = 'NO';
    // This is the autoreply domain that you will need to set in your Postfix
    // transport maps to handle virtual vacations. It does not need to be a
    // real domain (i.e. you don't need to setup DNS for it).
    $CONF['vacation_domain'] = 'autoreply.change-this-to-your.domain.tld';

    // Vacation Control
    // If you want users to take control of vacation set this to 'YES'.
    $CONF['vacation_control'] ='YES';

    // Vacation Control for admins
    // Set to 'YES' if your domain admins should be able to edit user vacation.
    $CONF['vacation_control_admin'] = 'YES';

    // Alllow ReplyType Control
    // This varible will be checked in ./templates/vacation.tpl
    // YES means it show the reply option, everything else means it will not show
    $CONF['replytype_control'] = 'YES';

    // AllowUser Reply
    // You can Allow or Disable User control over Reply Type
    // This variable will be checked in ./templates/vacation.tpl
    // YES means it show the reply option, anything else means it will not show
    $CONF['allow_user_reply'] = 'YES';

    // ReplyType options
    // If you want to define additional reply options put them in array below.
    $CONF['choice_of_reply'] = array (
    'One Reply', // Sends only Once the message during Out of Office
    'Auto Reply', // Reply on every email but not within autoreplydelay
    'Interval Reply' // Reply on every email but not within intervaldelay_default
    );

    // ReplyType default
    // You should define default replytype. It must be in array above.
    $CONF['replytype_default'] = 'One Reply';

    // autoreplydelay
    // You should define autodefaultdelay is seconds
    // if a new message comes in within this delay it most likely that that the sender is
    // autoreplying on our autoreply message.
    $CONF['autoreplydelay_default'] = '100';

    // Replydelay default
    // You should define default replydelay time here time in in seconds.
    $CONF['intervaldelay_default'] = '86400'; // is 1 day = 60 sec * 60 min * 24 hours

    //
    // End Vacation Stuff.
    //

     
  • Christian Boltz

    Christian Boltz - 2013-12-28
    • status: pending --> closed-fixed
    • Group: --> SVN (please specify revision!)
     
  • Christian Boltz

    Christian Boltz - 2013-12-28

    Support for choosing the vacation reply interval is in svn trunk (based on this patch, but modified to match other changes I did).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks