Skip to content

Commit

Permalink
when BDAT data block received don't sent 250 response again if the op…
Browse files Browse the repository at this point in the history
…tional BDAT LAST command is appended voodoodyne#75
  • Loading branch information
davidmoten committed Sep 1, 2022
1 parent 25581d9 commit 788350f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public int read() throws IOException {
remainingSize--;
return v;
} else if (isLast) {
session.sendResponse("250 Message OK, " + size + " bytes received (last chunk)");
return -1;
} else {
session.sendResponse("250 Message OK, " + size + " bytes received");
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/subethamail/smtp/BdatTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void testBadBdatCommand() throws UnknownHostException, SMTPException, IOE
}
}

@Test
@Test(timeout=20000)
public void testTwoBdatCommands() throws UnknownHostException, SMTPException, IOException {
MyListener listener = new MyListener();
SMTPServer server = SMTPServer.port(25000).messageHandler(listener).build();
Expand Down

0 comments on commit 788350f

Please sign in to comment.