[Xfce4-commits] <postler:master> Quote filename passed to msmtp when sending
Christian Dywan
noreply at xfce.org
Thu Dec 2 04:26:02 CET 2010
Updating branch refs/heads/master
to 08ebb441bedb373d020c2837eb8cea8cd9aef069 (commit)
from ad84a0b2b017e8f60197f82581ed428db439d783 (commit)
commit 08ebb441bedb373d020c2837eb8cea8cd9aef069
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Dec 2 01:35:02 2010 +0100
Quote filename passed to msmtp when sending
Folder names may contain spaces.
postler/postler-accounts.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/postler/postler-accounts.vala b/postler/postler-accounts.vala
index 7527fff..77971bd 100644
--- a/postler/postler-accounts.vala
+++ b/postler/postler-accounts.vala
@@ -497,7 +497,7 @@ public class Postler.Accounts : GLib.Object {
string filename = get_tool_configuration_filename (send, info);
string command;
if (send != null)
- command = "%s -c 'cat %s | msmtp -C %s -t'".printf (
+ command = "%s -c 'cat \"%s\" | msmtp -C %s -t'".printf (
Environment.get_variable ("SHELL"), send, filename);
else if (info.type == AccountType.IMAP) {
unowned string? mbsync = Environment.get_variable ("POSTLER_MBSYNC");
More information about the Xfce4-commits
mailing list