zabszk / CSharp-SMTP-Server

SMTP Server in C#
MIT License
16 stars 4 forks source link

[Client receive loop] Exception: System.ArgumentOutOfRangeException, Length cannot be less than zero. (Parameter 'length') #8

Closed XB-RS closed 11 months ago

XB-RS commented 1 year ago

Issue Description: When our application is receiving an email from an Exchange Server, it throws the following exception:

[Client receive loop] Exception: System.ArgumentOutOfRangeException, Length cannot be less than zero. (Parameter 'length').

This issue persists even if the SPF check is disabled. Unfortunately, we do not have more detailed information at this time, and it appears to be related to SPF checks or email handling.

Steps to Reproduce:

  1. Receive an email from an Exchange Server.
  2. Observe the application's behavior.

Expected Behavior: The application should handle incoming emails from the Exchange Server without any exceptions.

Actual Behavior: The application throws a System.ArgumentOutOfRangeException exception with the message "Length cannot be less than zero."

Additional Information:

Environment:

Steps Taken to Resolve:

zabszk commented 11 months ago

Issue has been fixed in the version 1.1.6, which has just been released.