// Copyright (c) 2010 Martin Knafve / hMailServer.com. // http://www.hmailserver.com namespace HM { class Message; class SMTPVacationMessageCreator : public Singleton { public: SMTPVacationMessageCreator(); virtual ~SMTPVacationMessageCreator(); void CreateVacationMessage(std::shared_ptr recipientAccount, const String &sToAddress, const String &sVacationSubject, const String &sVacationMessage, const std::shared_ptr pOriginalMessage); void VacationMessageTurnedOff(const String &sUserAddress); private: bool CanSendVacationMessage_(const String &sFrom, const String &sTo); std::multimap mapVacationMessageRecipients; boost::recursive_mutex mutex_; }; }