diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-03-23 23:52:05 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-03-23 23:52:05 (GMT) |
commit | 04a3a6beeaa199dc1a80a711f26de3a41d98ff74 (patch) | |
tree | cceaa0a23b051007fd8b69194c9dd9243dc01084 /src/utils.lua | |
parent | a077e3014dadfcfa958351415253f081633ce070 (diff) |
started rewrite in go
Diffstat (limited to 'src/utils.lua')
-rw-r--r-- | src/utils.lua | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/utils.lua b/src/utils.lua deleted file mode 100644 index 0fb7377..0000000 --- a/src/utils.lua +++ /dev/null @@ -1,35 +0,0 @@ --- --- rhctl --- --- Copyright (C) 2009-2015 Christian Pointner <equinox@helsinki.at> --- --- This file is part of rhctl. --- --- rhctl is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- any later version. --- --- rhctl is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. --- --- You should have received a copy of the GNU General Public License --- along with rhctl. If not, see <http://www.gnu.org/licenses/>. --- - -local utils = {} - -function utils.send_mail(address, subject, bodytext) - local fp = assert(io.popen("/usr/bin/msmtp " .. address, "w")) - - fp:write("Subject: " .. subject .. "\n") - fp:write("To: " .. address .. "\n") - fp:write("\n") - fp:write(bodytext) - fp:write("\n") - fp:close() -end - -return utils |