Skip to content

Commit

Permalink
2.3.3 release, with minor safeguards for null headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
bertjohnson committed Dec 14, 2016
1 parent c87ce62 commit 54f4778
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions OpaqueMail.CertHelper/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.2")]
[assembly: AssemblyFileVersion("2.3.2")]
[assembly: AssemblyVersion("2.3.3")]
[assembly: AssemblyFileVersion("2.3.3")]
4 changes: 2 additions & 2 deletions OpaqueMail.Proxy/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.2")]
[assembly: AssemblyFileVersion("2.3.2")]
[assembly: AssemblyVersion("2.3.3")]
[assembly: AssemblyFileVersion("2.3.3")]
4 changes: 2 additions & 2 deletions OpaqueMail.ProxyService/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.2")]
[assembly: AssemblyFileVersion("2.3.2")]
[assembly: AssemblyVersion("2.3.3")]
[assembly: AssemblyFileVersion("2.3.3")]
4 changes: 2 additions & 2 deletions OpaqueMail.ProxySettings/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.2")]
[assembly: AssemblyFileVersion("2.3.2")]
[assembly: AssemblyVersion("2.3.3")]
[assembly: AssemblyFileVersion("2.3.3")]
4 changes: 2 additions & 2 deletions OpaqueMail.TestClient/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.2")]
[assembly: AssemblyFileVersion("2.3.2")]
[assembly: AssemblyVersion("2.3.3")]
[assembly: AssemblyFileVersion("2.3.3")]
2 changes: 1 addition & 1 deletion OpaqueMail.doxygen
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "OpaqueMail"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 2.3.2
PROJECT_NUMBER = 2.3.3

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
Binary file modified OpaqueMail.nupkg
Binary file not shown.
3 changes: 3 additions & 0 deletions OpaqueMail/Functions.cs
Expand Up @@ -483,6 +483,9 @@ public static string Encode(string input, string ContentTransferEncoding)
/// <returns>Base-64 encoded version of the email header.</returns>
public static string EncodeMailHeader(string header)
{
if (string.IsNullOrEmpty(header))
return "";

bool extendedCharacterFound = false;
foreach (char headerCharacter in header.ToCharArray())
{
Expand Down
4 changes: 2 additions & 2 deletions OpaqueMail/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.2")]
[assembly: AssemblyFileVersion("2.3.2")]
[assembly: AssemblyVersion("2.3.3")]
[assembly: AssemblyFileVersion("2.3.3")]
2 changes: 1 addition & 1 deletion OpaqueMail/Smtp/SmtpClient.cs
Expand Up @@ -212,7 +212,7 @@ public async Task SendAsync(MailMessage message)
message.Headers["Content-Type"] = message.ContentType + (!string.IsNullOrEmpty(message.CharSet) ? "; charset=\"" + message.CharSet + "\"" : "");

// If the body hasn't been processed, handle encoding of extended characters.
if (string.IsNullOrEmpty(rawBody))
if (string.IsNullOrEmpty(rawBody) && !string.IsNullOrEmpty(message.Body))
{
bool extendedCharacterFound = false;
foreach (char headerCharacter in message.Body.ToCharArray())
Expand Down

0 comments on commit 54f4778

Please sign in to comment.