Add ability to delete the email attachment after sending it.
This commit is contained in:
@@ -45,8 +45,9 @@
|
|||||||
subject = argv[3];
|
subject = argv[3];
|
||||||
body = argv[4];
|
body = argv[4];
|
||||||
file = argv[5];
|
file = argv[5];
|
||||||
--convert_cmd = argv[6];
|
delete = argv[6];
|
||||||
--convert_ext = argv[7];
|
--convert_cmd = argv[7];
|
||||||
|
--convert_ext = argv[8];
|
||||||
|
|
||||||
--replace the ' with a single quote
|
--replace the ' with a single quote
|
||||||
body = body:gsub("'", "'");
|
body = body:gsub("'", "'");
|
||||||
@@ -80,3 +81,8 @@
|
|||||||
);
|
);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--delete the file
|
||||||
|
if (delete == "true") then
|
||||||
|
os.remove(file);
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user