allow for spaces in the file name
authorPaul Mangan <paul@claws-mail.org>
Wed, 16 Oct 2002 14:37:53 +0000 (14:37 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 16 Oct 2002 14:37:53 +0000 (14:37 +0000)
tools/OOo2sylpheed.pl

index 814f816af8149f5044a6d01a8a9576b677e03f62..44c2697ae142ce14d87bb75f81b7d27c4ef6c5c4 100644 (file)
@@ -25,8 +25,8 @@ my $input = <>;
 
 $ARGV =~ s/^"attachment='file:\/\///;
 $ARGV =~ s/'"$//;
 
 $ARGV =~ s/^"attachment='file:\/\///;
 $ARGV =~ s/'"$//;
-
-exec "/usr/local/bin/sylpheed --attach $ARGV";
+$ARGV =~ s/%20/ /g;
+exec "/usr/local/bin/sylpheed --attach \"$ARGV\"";
 ## change the line above to point to your sylpheed executable
 
 exit;
 ## change the line above to point to your sylpheed executable
 
 exit;