Add ability to delete the email attachment after sending it.

This commit is contained in:
Mark Crane 2013-01-12 02:13:30 +00:00
parent 8746d26a82
commit 2a7274d50a
1 changed files with 8 additions and 2 deletions

View File

@ -45,8 +45,9 @@
subject = argv[3];
body = argv[4];
file = argv[5];
--convert_cmd = argv[6];
--convert_ext = argv[7];
delete = argv[6];
--convert_cmd = argv[7];
--convert_ext = argv[8];
--replace the &#39 with a single quote
body = body:gsub("'", "'");
@ -80,3 +81,8 @@
);
end
end
--delete the file
if (delete == "true") then
os.remove(file);
end