Package: sork-vacation Version: 2.2.2-1 Severity: important
sork-vacation is broke, you got message Can't parse your email address, but you can remove vacation, but not made new one. It seems at /usr/share/horde2/vacation/lib/Driver.php is changed ;-) and /usr/share/php/Mail/RFC822.php too. I roll back RFC822.php from @version $Revision: 1.12 $ to * @version $Revision: 1.11 $ and this gives back functionality. I tried latest version 1.2 too, but seems at after version 1.12 some think is changed. Forwards work maybe is possible take code from Forward Driver.php, but i am not familiar with php.
quote ola
Can you file a separate bug against this package, and if possible a patch? It would be really nice.
quote end
and after while /etc/sork-vacation/conf.php $conf['vacation']['path'] = '/usr/local/bin/vacation'; should be /usr/bin/vacation
and of course hash should be $conf['server']['params']['dbtype'] = 'hash3'; not empty which is default. I remembered at this filed and default message by Finnish all rows are in subject line, but this filed too.
Look more
http://lists.horde.org/archives/sork/Week-of-Mon-20050502/002166.html http://lists.horde.org/archives/sork/Week-of-Mon-20040726/001753.html and finally...
quoted Guillermo Vargas
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 166? $domain = ($realm != 'default') ? $realm : '';
for : $domain = ($realm != 'default') ? $realm : $this->params[$realm]['host'];
and comment the lines 177 178?
$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 Can't find
"$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];
}
quote end...
I tried pick line numbers, but .... I am not yet tested...., but maybe tomorrow.
-- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.4.27-2-686-smp Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages sork-vacation depends on:
ii apache2-mpm-prefork [httpd] 2.0.54-3 traditional model for Apache2
ii gettext 0.14.1-10 GNU Internationalization utilities
ii horde2 2.2.8-1 horde web application suite
ii make 3.80-9 The GNU version of the "make" util
ii php4 4:4.3.10-13 server-side, HTML-embedded scripti
ii turba 1.2.5-1 A web based contact manager