Open
Description
I "wrote" (copy&paste from algorithms.misc AddCSVRow) a mail class to send me the output of my pipeline per mail.
nipype-mail
If I attach the output of my last Node (mail.inputs.arbitrary_name = '/path_to/file') I get the mail when the calculation is done, but without any attachment the mail Node is called immediately and I get the Mail at the beginning of the calculation :-)
Is it possible to get a "signal" like error code from the workflow when done to trigger the mail without attaching garbage from the last Node?
Joerg
PS: Line 106 outputs['msg'] = self.msg.as_bytes() is Python3 code. For Python2 is has to be changed to self.msg.as_string()