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.
23 lines
471 B
23 lines
471 B
#ifndef _SMTPD_MESSAGE_
|
|
#define _SMTPD_MESSAGE_
|
|
|
|
#include <smtpd/token.hpp>
|
|
|
|
namespace smtpd {
|
|
class Message {
|
|
public:
|
|
Message(std::string input, TokenPattern pattern);
|
|
|
|
// Raw protocol string
|
|
const std::string input;
|
|
|
|
// TokenPattern that matched this message
|
|
const TokenPattern pattern;
|
|
|
|
// Retrieve message metadata
|
|
SessionID sessionID() const;
|
|
RequestToken requestToken() const;
|
|
};
|
|
}
|
|
|
|
#endif |