|
@@ -79,9 +79,6 @@ export class Session {
|
|
if (command === "HELO" || command === "EHLO") {
|
|
if (command === "HELO" || command === "EHLO") {
|
|
this.state = State.WaitingMail;
|
|
this.state = State.WaitingMail;
|
|
this.output("250 OK");
|
|
this.output("250 OK");
|
|
- } else if (command === "QUIT") {
|
|
|
|
- this.output("221 smtp2rss closing");
|
|
|
|
- this.conn.close();
|
|
|
|
} else {
|
|
} else {
|
|
this.output("500 Invalid state");
|
|
this.output("500 Invalid state");
|
|
}
|
|
}
|
|
@@ -98,6 +95,9 @@ export class Session {
|
|
} else {
|
|
} else {
|
|
this.output("500 Invalid sender");
|
|
this.output("500 Invalid sender");
|
|
}
|
|
}
|
|
|
|
+ } else if (command === "QUIT") {
|
|
|
|
+ this.output("221 smtp2rss closing");
|
|
|
|
+ this.conn.close();
|
|
} else {
|
|
} else {
|
|
this.output("500 Invalid state");
|
|
this.output("500 Invalid state");
|
|
}
|
|
}
|