Add ability to delete the email attachment after sending it.
This commit is contained in:
parent
8746d26a82
commit
2a7274d50a
|
|
@ -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 ' with a single quote
|
||||
body = body:gsub("'", "'");
|
||||
|
|
@ -80,3 +81,8 @@
|
|||
);
|
||||
end
|
||||
end
|
||||
|
||||
--delete the file
|
||||
if (delete == "true") then
|
||||
os.remove(file);
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue