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.
17 lines
367 B
17 lines
367 B
#include <smtpd/message.hpp>
|
|
#include <smtpd/token.hpp>
|
|
|
|
using namespace std;
|
|
|
|
namespace smtpd {
|
|
Message::Message(string input, TokenPattern pattern) :
|
|
input(input), pattern(pattern) { }
|
|
|
|
SessionID Message::sessionID() const {
|
|
return pattern.at(5);
|
|
}
|
|
|
|
RequestToken Message::requestToken() const {
|
|
return pattern.at(6);
|
|
}
|
|
}
|
|
|