You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // \file SendmailIntegrate.hpp
  2. //
  3. // Copyright (C) 2011 ARM Research Labs, LLC.
  4. // See www.armresearch.com for the copyright terms.
  5. //
  6. // This file defines the SendmailIntegrate interface.
  7. //
  8. // $Id$
  9. //
  10. ///////////////////////////////////////////////////////////////////////////////////////////////////
  11. #ifndef SendmailIntegratehpp_included
  12. #define SendmailIntegratehpp_included
  13. #include <vector>
  14. #include "MtaIntegrate.hpp"
  15. /// Class to manage the SNFMilter integration with sendmail.
  16. //
  17. // This class implements the MtaIntegrate interface for sendmail.
  18. //
  19. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  20. class SendmailIntegrate : public MtaIntegrate {
  21. public:
  22. virtual void SetOperatingSystem(std::string OperatingSystemType);
  23. virtual void Integrate(FileBackup *SaveFile);
  24. virtual void Unintegrate(FileBackup *SaveFile);
  25. private:
  26. virtual bool MtaIsRunningDetected();
  27. virtual bool ReloadMta();
  28. virtual bool IsIntegrated();
  29. /// Sendmail sendmail.mc file path.
  30. std::string SendmailSendmailMcPath;
  31. /// Sendmail sendmail.cf file path.
  32. std::string SendmailSendmailCfPath;
  33. /// Command to build and install the sendmail.cf file.
  34. std::string BuildInstallSendmailCfFile;
  35. /// Command to reload the MTA.
  36. std::string ReloadMtaCommand;
  37. /// True if integration is supported on this platform.
  38. bool IntegrationIsSupported;
  39. /// typedef for container of filenames to backup up before integrating or unintegrating.
  40. typedef std::vector<std::string> FileToBackupType;
  41. /// Files to back up before integrating or unintegrating.
  42. FileToBackupType FileToBackup;
  43. };
  44. #endif