mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 19:23:49 +00:00
Add ability to delete the email attachment after sending it.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user