http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4958





------- Additional Comments From [EMAIL PROTECTED]  2006-06-30 19:04 -------
Applied the patches and found one more issue that prevents this from working on
Windows. Windows doesn't allow single-quoting of file paths, so here's another
updated section (following right after the find_gpg_path). I'm not sure this is
the best way to do it, but it works here...


sub interpolate_gpghomedir {
  my $gpghome = '';
  if ($opt{'gpghomedir'}) {
    $gpghome = $opt{'gpghomedir'};
    if (Mail::SpamAssassin::Util::am_running_on_windows()) {
      $gpghome =~ s/\'/\\\"/gs;
      $gpghome = "--homedir=\"$gpghome\"";
    } else {
      $gpghome =~ s/\'/\\\'/gs;
      $gpghome = "--homedir='$gpghome'";
    }
  }
  return $gpghome;
}




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to