Skip to content

Commit

Permalink
Improving ISS-523
Browse files Browse the repository at this point in the history
Thanks @Leanne
  • Loading branch information
RockfordWei committed Sep 1, 2017
1 parent ea66acf commit 9169075
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.DS_Store
/.build
/.build*
/Packages
/*.xcodeproj
/*.pins
6 changes: 4 additions & 2 deletions Sources/SMTP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,11 @@ public class EMail {
}//end if

// add the uuid of the email to avoid duplicated shipment
let uuid = UUID().string
var uuidBuf = UUID().string.encode(.base64) ?? []
uuidBuf.append(0)
let uuid = String(cString: uuidBuf)

body += "Message-ID: <\(uuid)\(from.address.emailSuffix)>\r\n"
body += "Message-ID: <\(uuid).\(from.address)>\r\n"

// add the email title
if subject.isEmpty {
Expand Down

0 comments on commit 9169075

Please sign in to comment.