From 024e9bce6032d4f520600df2d345fe7f2ea6683d Mon Sep 17 00:00:00 2001
From: Alex Kir <alex@wall-dev.org>
Date: Tue, 25 Nov 2014 23:14:56 +0200
Subject: [PATCH 1/1] Some might have spaces in passwords (Like I do) and then
 curl fails. * Changed string formatting of password to %q to always quote
 password

---
 widgets/imap.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/widgets/imap.lua b/widgets/imap.lua
index d4b4cba..1ebbb76 100644
--- a/widgets/imap.lua
+++ b/widgets/imap.lua
@@ -54,7 +54,7 @@ local function worker(args)
             position = "top_left"
         }
 
-        curl = string.format("%s --url imaps://%s:%s/INBOX -u %s:%s %s -k",
+        curl = string.format("%s --url imaps://%s:%s/INBOX -u %s:%q %s -k",
                head_command, server, port, mail, password, request)
 
         async.request(curl, function(f)
-- 
2.39.5