[Xfce4-commits] <exo:master> Fix URIs with spaces in claws-mail and sylpheed.
Jannis Pohlmann
noreply at xfce.org
Tue Nov 9 22:54:01 CET 2010
Updating branch refs/heads/master
to 244a1209f93c84bcf82d68dce95ba127d6036311 (commit)
from c37d3c6a98a352e193c71f0832cb8ae19ca1c8c3 (commit)
commit 244a1209f93c84bcf82d68dce95ba127d6036311
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Tue Nov 9 22:51:06 2010 +0100
Fix URIs with spaces in claws-mail and sylpheed.
Claws now supports URIs, while sylpheed and older versions of claws
(sylpheed-claws-gtk2, sylpheed-claws) need unescaped local paths to be
able to attach paths with spaces.
exo-helper/helpers/exo-compose-mail-1 | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/exo-helper/helpers/exo-compose-mail-1 b/exo-helper/helpers/exo-compose-mail-1
index 577a4cf..3cc502e 100755
--- a/exo-helper/helpers/exo-compose-mail-1
+++ b/exo-helper/helpers/exo-compose-mail-1
@@ -152,7 +152,13 @@ elsif ($style eq 'sylpheed') {
if (@attachments > 0) {
push (@argv, '--attach');
for my $uri (@attachments) {
- push (@argv, $uri->path ());
+ # claws-mail supports URIs, sylpheed and older claws need
+ # unescaped local paths
+ if ($binary eq 'claws-mail') {
+ push (@argv, $uri);
+ } else {
+ push (@argv, uri_unescape ($uri->path ()));
+ }
}
}
}
More information about the Xfce4-commits
mailing list