fix retour de string.gsub retourne le nombre d'occurenc...
...es trouvées
... | ... |
@@ -162,9 +162,9 @@ set_votes = function (r) |
162 | 162 |
local command = { |
163 | 163 |
'nohup', script, |
164 | 164 |
'--mail', sender, |
165 |
- '--mailconf', string.gsub(script, "^.*/([^/]+)$", "/usr/local/etc/%1.mail.conf"), |
|
166 |
- '--database', string.gsub(script, "^.*/([^/]+)$", "/var/local/%1.db"), |
|
167 |
- '--conf', string.gsub(script, "^.*/([^/]+)$", "/usr/local/etc/%1.conf"), |
|
165 |
+ '--mailconf', (string.gsub(script, "^.*/([^/]+)$", "/usr/local/etc/%1.mail.conf")), |
|
166 |
+ '--database', (string.gsub(script, "^.*/([^/]+)$", "/var/local/%1.db")), |
|
167 |
+ '--conf', (string.gsub(script, "^.*/([^/]+)$", "/usr/local/etc/%1.conf")), |
|
168 | 168 |
} |
169 | 169 |
structure = mbox[uid]:fetch_structure() |
170 | 170 |
for partid, partinf in pairs(structure) do |