// Copyright (c) 2010 Martin Knafve / hMailServer.com. // http://www.hmailserver.com #pragma once namespace HM { class GreyListTriplet; class PersistentGreyList { public: PersistentGreyList(void); ~PersistentGreyList(void); static std::shared_ptr GetRecord(const String &sSenderAddress, const String &sRecipientAddress, const IPAddress &remoteIP); static bool AddObject(std::shared_ptr pTriplet); static bool ResetDeletionTime(std::shared_ptr pTriplet); static void IncreaseBlocked(__int64 iTripletID); static void ClearExpiredRecords(); static void ClearAllRecords(); private: }; }