[sork] Vacation reply interval
Doug Wilson
sony7818 at yahoo.com
Fri May 16 22:22:23 PDT 2003
Hi Eric,
Thanks for the helping me with the customization. I
made the change and now the .forward file includes the
-r flag, just like I wanted :)
> This would set it for "-r 2" what ever that means (2
> days?).
Yes, the -r <number> is 'days' according to the my
vacation man page, so "-r 2" is a reasonable choice. I
regularly get people who don't fully read my vacation
message (e.g., my return date) and they end up sending
me urgent requests later in the week. Setting it at a
lower interval like 2 days ensures that they will get
reminded yet again that I'm "still" not around :)
Thanks again for your excellent support.
Doug
--- Eric Rostetter <eric.rostetter at physics.utexas.edu>
wrote:
> Quoting Doug Wilson <sony7818 at yahoo.com>:
>
> > Just wondering if there was a place in the source
> code
> > where I could customize the vacation reply
> interval
> > (vacation -r <interval>). The normal reply
> interval
> > for is one week, but the -r flag can be used to
> pick
> > another interval.
>
> This is on the TODO list, but isn't universal so it
> can be a problem.
> For example, in my vacation program it is -t instead
> of -r for this.
> Some don't have it at all. Some do it in different
> time units, etc.
>
> > Is this something I can add in the php source if I
> > want to globally change the reply interval?
>
> Edit vacation/lib/Driver/*.php (probably
> forwards.php, maybe qmail.php)
> and find the lines that read something like:
>
> if (!empty($alias) && ($alias != $my_email))
> {
> $contents = "\\$my_email, \"|" .
> $conf['vacation']['path'] .
> " -a $alias $my_email\"";
> } else {
> $contents = "\\$my_email, \"|" .
> $conf['vacation']['path'] .
> " $my_email\"";
> }
>
> and change it to something like:
>
> if (!empty($alias) && ($alias != $my_email))
> {
> $contents = "\\$my_email, \"|" .
> $conf['vacation']['path'] .
> " -r 2 -a $alias
> $my_email\"";
> } else {
> $contents = "\\$my_email, \"|" .
> $conf['vacation']['path'] .
> " -r 2 $my_email\"";
> }
>
> This would set it for "-r 2" what ever that means (2
> days?).
>
> > I'm not entirely sure if this is something that's
> > handled in the source code. Thanks for any
> insight.
>
> It can be... If you want to make the modification.
>
> > Doug
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> > http://search.yahoo.com
> > --
> > Sork mailing list
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail:
> sork-unsubscribe at lists.horde.org
>
> --
> Eric Rostetter
> The Department of Physics
> The University of Texas at Austin
>
> Why get even? Get odd!
> --
> Sork mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail:
sork-unsubscribe at lists.horde.org
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
More information about the sork
mailing list