[sork] vacation

Guillermo Vargas gvargas at internexo.co.cr
Tue Jun 1 08:12:49 PDT 2004


I have just changed one line and commented others and it works fine for 
me. I don't now if this is the best way to do it.

In the file
vacation/lib/Driver.php

change the line
$domain = ($realm != 'default') ? $realm : '';

for :
$domain = ($realm != 'default') ? $realm : $this->params[$realm]['host'];

and comment the lines
$email .= !empty($parsed_email[$i]->host)
? '@' . $parsed_email[$i]->host
: '';

I have tested this in horde-2.2.5(_make_email_address function) and 
horde-3.0-ALPHA. (_makeEmailAddress function)

I also added the next "if " into the _parseForward function of 
vacation/lib/Driver/forwards.php after the line 
"$content['forward']['receivers'] = implode(', ', $buffer);"
if ( empty($content['vacation']) &&
preg_match('/\|.*vacation\s*(-a\s+(.*))?\s+(.+)/', 
$content['forward']['receivers'], $matches) ){
$content['vacation']['alias'] = $matches[2];
}


Guillermo Vargas


Klemen Humerca escribió:

>Hello.
>
>I have same problem with vacation as mention before (Can't parse your email
>address). Now I've seen this patch and I really don?t know how to use it. Can
>someone please help me? I know that it makes changes to Mail/RFC822.php in PEAR
>directory, but I don?t know how.
>
>Thank you.
>
>--
>
>Klemen Humerca
>
>-----e-mail&web---------
> klemen at humerca.com
> www.humerca.com
> forum.humerca.com
>------------------------
>
>     .-.
>     /v\    L   I   N   U   X
>    // \\        >Rules<
>   /(   )\
>    ^^-^^
>
>
>
>
>
>  
>





More information about the sork mailing list