Skip to content

Instantly share code, notes, and snippets.

@profOnno
Last active November 4, 2015 20:58
Show Gist options
  • Select an option

  • Save profOnno/d7a6cfaa801c8c9e0dcd to your computer and use it in GitHub Desktop.

Select an option

Save profOnno/d7a6cfaa801c8c9e0dcd to your computer and use it in GitHub Desktop.
simplesmtp.patch
--- node_modules/simplesmtp/node_modules/rai/lib/rai.js 2015-02-06 09:22:33.000000000 +0000
+++ ../../pump.io/node_modules/simplesmtp/node_modules/rai/lib/rai.js 2015-11-04 20:22:28.437407851 +0000
@@ -425,8 +425,8 @@
return;
}
this._destroyed = true;
-
this.removeAllListeners();
+ this.on("error",function(err){});
};
/**

use

in your root pump.io (where package.json lives) do:

wget https://gist.githubusercontent.com/profOnno/d7a6cfaa801c8c9e0dcd/raw/c1a6e733804a7add5fe2af138795ec0885db25e2/simplesmtp.patch
patch -p0 simplesmtp.patch

To revert run :

patch -p0 -R simplesmtp.patch

test with

vows --spec test/email-notification-test.js test/event-test.js

Result without patch is 'callback not fired' with patch it should be ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment