summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Mailx.h
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-08-20 14:29:09 +0200
committerZdenek Prikryl <zprikryl@redhat.com>2009-08-20 14:29:09 +0200
commit876c78c334b4a74598c5ef7f7f0dc40b33570941 (patch)
tree4a30efaaa6f154bf3cd0c2fbed07835a8a79f425 /lib/Plugins/Mailx.h
parente5c2fad4f71274897ed2ebf5e34a6ab742dc9496 (diff)
downloadabrt-876c78c334b4a74598c5ef7f7f0dc40b33570941.tar.gz
abrt-876c78c334b4a74598c5ef7f7f0dc40b33570941.tar.xz
abrt-876c78c334b4a74598c5ef7f7f0dc40b33570941.zip
command mailx isn't run under root anymore.
Diffstat (limited to 'lib/Plugins/Mailx.h')
-rw-r--r--lib/Plugins/Mailx.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Plugins/Mailx.h b/lib/Plugins/Mailx.h
index 64b9b33c..fd00bb8b 100644
--- a/lib/Plugins/Mailx.h
+++ b/lib/Plugins/Mailx.h
@@ -32,11 +32,16 @@ class CMailx : public CReporter
private:
std::string m_sEmailFrom;
std::string m_sEmailTo;
- std::string m_sAttachments;
std::string m_sSubject;
bool m_bSendBinaryData;
- void SendEmail(const std::string& pSubject, const std::string& pText);
+ int m_nArgs;
+ char** m_pArgs;
+
+ void FreeMailxArgs();
+ void AddMailxArg(const std::string& pArg);
+ void ExecMailx(uid_t uid, const std::string& pText);
+ void SendEmail(const std::string& pSubject, const std::string& pText, const std::string& pUID);
public:
CMailx();