Bug#101551: horde: patch for wvHtml (mswordview)

Ola Lundqvist opal@debian.org
Fri, 26 Oct 2001 17:06:09 +0200


Hi

I'll forward this upstream.

The entire bugreport can be found at
http://bugs.debian.org/101551

Regards,

// Ola

PS.
Please CC 101551@bugs.debian.org and/or me personally.
DS.

On Wed, Jun 20, 2001 at 02:26:19AM +0200, Gabor FLEISCHER wrote:
> Package: horde
> Version: 2:1.2.5-2
> Severity: normal
> 
> Here is a small patch to /usr/share/horde/imp/lib/mimetypes.lib to make
> the view of MSWord files work with wvHtml.
> 
> Flocsy
> 
> ----------------------8<---------------------------
> 438a439
> >     $html_name = "/tmp/imp.html.".date("Y-M-D_H:i:s")."__".md5($contents);
> 439a441
> >     horde_cleanup($html_name);
> 444c446,447
> <     $pipe = popen("$default->path_to_mswordview $word_name 2>&1","r");
> ---
> >     exec("$default->path_to_mswordview $word_name $html_name 2>&1");
> >     $outfile = fopen($html_name, "r");
> 446c449
> <     while( ($rc=fgets($pipe,8192)) )
> ---
> >     while( ($rc=fgets($outfile,8192)) )
> 448c451
> <     pclose( $pipe );
> ---
> >     fclose($outfile);
> 450a454
> >     exec("rm -f $html_name");
> ------------------------>8----------------------
> 
> -- System Information
> Debian Release: testing/unstable
> Architecture: i386
> Kernel: Linux pesach 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i686
> Locale: LANG=C, LC_CTYPE=C
> 
> Versions of packages horde depends on:
> ii  apache                     1.3.19-1      Versatile, high-performance HTTP s
> ii  apache [httpd]             1.3.19-1      Versatile, high-performance HTTP s
> ii  bash                       2.05-4        The GNU Bourne Again SHell        
> ii  binutils                   2.11.90.0.7-2 The GNU assembler, linker and bina
> ii  debconf                    0.9.41        Debian configuration management sy
> ii  grep                       2.4.2-1       GNU grep, egrep and fgrep.        
> ii  perl                       5.6.0-21      Larry Wall's Practical Extracting 
> ii  perl-5.005                 6.1           Transitional package.             
> ii  php4                       3:4.0.5-2     A server-side, HTML-embedded scrip
> ii  sed                        3.02-6        The GNU sed stream editor.        
> ii  wwwconfig-common           0.0.5-1       Debian web auto configuration.    
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  opal@debian.org                     Björnkärrsgatan 5 A.11   \
|  opal@lysator.liu.se                 584 36 LINKÖPING         |
|  +46 (0)13-17 69 83                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------