Bogofilter adapter for OpenSMTPD in C++
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.
 
 

15 lines
325 B

#include <smtpd/request.hpp>
#include <smtpd/types.hpp>
#include <functional>
namespace smtpd {
using RequestMap = std::unordered_map<RequestToken, Request>;
class Session {
public:
RequestMap requests;
std::function<void(Token command, Token requestID, TokenPattern arguments)> send;
};
}