Some might have spaces in passwords (Like I do) and then curl fails.

* Changed string formatting of password to %q to always quote password
This commit is contained in:
Alex Kir 2014-11-25 23:14:56 +02:00 committed by copycat-killer
parent dba2c648f1
commit 1973b16fdc
1 changed files with 1 additions and 1 deletions

View File

@ -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)