Permalink
Browse files

Rename disableDotEscaping to enableDotEscaping

  • Loading branch information...
1 parent 5153e18 commit 5534bd8567f7defa018fae40a3970510ca6ad03e @andris9 committed Feb 26, 2014
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 lib/client.js
View
@@ -140,7 +140,7 @@ The following connection options can be used with `simplesmtp.connect`:
* **connectionTimeout** (system default if not set) - Time to wait in ms until the socket is opened to the server
* **rejectUnathorized** (defaults to false) - if set to true accepts only valid server certificates. You can override this option with the `tls` option, this is just a shorthand
* **dsn** - An object with methods `success`, `failure` and `delay`. If any of these are set to true, DSN will be used
- * **disableDotEscaping** set to true if you want to bypass the dot escaping at the begining of each line. Default to false
+ * **enableDotEscaping** set to true if you want to escape dots at the begining of each line. Defaults to false.
### Connection events
View
@@ -59,7 +59,7 @@ function SMTPClient(port, host, options){
this.options.secureConnection = !!this.options.secureConnection;
this.options.auth = this.options.auth || false;
this.options.maxConnections = this.options.maxConnections || 5;
- this.options.disableDotEscaping = this.options.disableDotEscaping || false;
+ this.options.enableDotEscaping = this.options.enableDotEscaping || false;
if(!this.options.name){
@@ -430,7 +430,7 @@ SMTPClient.prototype.write = function(chunk){
chunk = new Buffer(chunk, "utf-8");
}
- if (this.options.disableDotEscaping) {
+ if (!this.options.enableDotEscaping) {
if (chunk.length>=2) {
this._lastDataBytes[0] = chunk[chunk.length-2];
this._lastDataBytes[1] = chunk[chunk.length-1];

0 comments on commit 5534bd8

Please sign in to comment.