Skip to content

Commit 7dfdce9

Browse files
author
cosullivan
committed
WIP
1 parent 909445d commit 7dfdce9

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

Src/SmtpServer/Storage/DisposableContainer.cs renamed to Src/SmtpServer/ComponentModel/DisposableContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace SmtpServer.Storage
3+
namespace SmtpServer.ComponentModel
44
{
55
internal sealed class DisposableContainer<TInstance> : IDisposable
66
{

Src/SmtpServer/IO/PipeReaderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static async ValueTask ReadUntilAsync(PipeReader reader, byte[] sequence, Func<R
2929
{
3030
throw new ArgumentNullException(nameof(reader));
3131
}
32-
32+
3333
var read = await reader.ReadAsync(cancellationToken);
3434
var head = read.Buffer.Start;
3535

Src/SmtpServer/Protocol/SmtpParser.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -545,21 +545,12 @@ public bool TryMakeRsetLiteral(ref TokenReader reader)
545545
/// <returns>Returns true if a command could be made, false if not.</returns>
546546
public bool TryMakeStartTls(ref TokenReader reader, out SmtpCommand command, out SmtpResponse errorResponse)
547547
{
548-
// ABNF
549-
// proxy = "PROXY" space ( unknown-proxy | tcp4-proxy | tcp6-proxy )
550-
// unknown-proxy = "UNKNOWN"
551-
// tcp4-proxy = "TCP4" space ipv4-address-literal space ipv4-address-literal space ip-port-number space ip-port-number
552-
// tcp6-proxy = "TCP6" space ipv6-address-literal space ipv6-address-literal space ip-port-number space ip-port-number
553-
// space = " "
554-
// ip-port = wnum
555-
// wnum = 1*5DIGIT ; in the range of 0-65535
556-
557548
command = null;
558549
errorResponse = null;
559550

560551
if (reader.TryMake(TryMakeStartTlsLiteral) == false)
561552
{
562-
return true;
553+
return false;
563554
}
564555

565556
reader.Skip(TokenKind.Space);

Src/SmtpServer/SmtpServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<LangVersion>8.0</LangVersion>
66
<AssemblyName>SmtpServer</AssemblyName>
77
<RootNamespace>SmtpServer</RootNamespace>
8-
<Version>8.0.0</Version>
8+
<Version>8.0.1</Version>
99
<Description>.NET SmtpServer</Description>
1010
<Authors>Cain O'Sullivan</Authors>
1111
<Company />

0 commit comments

Comments
 (0)