Continued work.
This commit is contained in:
1 parent
30cd31c171
commit
c9cdc822a2
21 files changed
+1531
-148
No files matched your search
+6
-6
@@ -7,7 +7,7 @@ namespace mail {
|
||||
if(request[1].ifNext("FROM:")) {
|
||||
request[1].skipWhitespace();
|
||||
if(request[1].ifNext("<")) {
|
||||
session.sender = request[1].getTokenExclude(">");
|
||||
session.from = request[1].getTokenExclude(">");
|
||||
if(session.authState = USER_KNOWN) {
|
||||
session.out << "250 OK" << CRLF;
|
||||
session.recipientList.clear();
|
||||
@@ -20,11 +20,11 @@ namespace mail {
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::string domainOnly(std::string email) {
|
||||
coreutils::ZString split(email);
|
||||
split.split("@");
|
||||
return split[1].str();
|
||||
}
|
||||
// std::string domainOnly(std::string email) {
|
||||
// coreutils::ZString split(email);
|
||||
// split.split("@");
|
||||
// return split[1].str();
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user