aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/smtp/SMTPCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/smtp/SMTPCommand.cpp')
-rw-r--r--src/net/smtp/SMTPCommand.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/smtp/SMTPCommand.cpp b/src/net/smtp/SMTPCommand.cpp
index d9f5c286..9813c4f5 100644
--- a/src/net/smtp/SMTPCommand.cpp
+++ b/src/net/smtp/SMTPCommand.cpp
@@ -150,6 +150,20 @@ ref <SMTPCommand> SMTPCommand::DATA()
// static
+ref <SMTPCommand> SMTPCommand::BDAT(const unsigned long chunkSize, const bool last)
+{
+ std::ostringstream cmd;
+ cmd.imbue(std::locale::classic());
+ cmd << "BDAT " << chunkSize;
+
+ if (last)
+ cmd << " LAST";
+
+ return createCommand(cmd.str());
+}
+
+
+// static
ref <SMTPCommand> SMTPCommand::NOOP()
{
return createCommand("NOOP");