andris9/nodemailer-pickup-transport — pull request #1 by tsabolov (2014-08-05 13:29:44+00:00)
Title: Updated pickup-transport.js

Once input stream ends, output stream (FS write stream) still can be opened. So listen to output's 'finish' event instead on input's 'end' event in order to execute callback function.