update
This commit is contained in:
@@ -224,7 +224,7 @@ export class DataHandler implements IDataHandler {
|
|||||||
.replace(/\n\.\r\n$/, '')
|
.replace(/\n\.\r\n$/, '')
|
||||||
.replace(/\r\n\.\n$/, '')
|
.replace(/\r\n\.\n$/, '')
|
||||||
.replace(/\n\.\n$/, '')
|
.replace(/\n\.\n$/, '')
|
||||||
.replace(/\.$/, ''); // Handle a lone dot at the end
|
.replace(/^\.$/, ''); // Handle ONLY a lone dot as the entire content (not trailing dots)
|
||||||
|
|
||||||
// Remove dot-stuffing (RFC 5321, section 4.5.2)
|
// Remove dot-stuffing (RFC 5321, section 4.5.2)
|
||||||
result = result.replace(/\r\n\.\./g, '\r\n.');
|
result = result.replace(/\r\n\.\./g, '\r\n.');
|
||||||
@@ -262,7 +262,7 @@ export class DataHandler implements IDataHandler {
|
|||||||
.replace(/\n\.\r\n$/, '')
|
.replace(/\n\.\r\n$/, '')
|
||||||
.replace(/\r\n\.\n$/, '')
|
.replace(/\r\n\.\n$/, '')
|
||||||
.replace(/\n\.\n$/, '')
|
.replace(/\n\.\n$/, '')
|
||||||
.replace(/\.$/, ''); // Handle a lone dot at the end
|
.replace(/^\.$/, ''); // Handle ONLY a lone dot as the entire content (not trailing dots)
|
||||||
|
|
||||||
// Remove dot-stuffing (RFC 5321, section 4.5.2)
|
// Remove dot-stuffing (RFC 5321, section 4.5.2)
|
||||||
session.emailData = session.emailData.replace(/\r\n\.\./g, '\r\n.');
|
session.emailData = session.emailData.replace(/\r\n\.\./g, '\r\n.');
|
||||||
|
Reference in New Issue
Block a user