> I do not plan to implement in ddrescue any mail client code. Using the > unix toolbox philosophy I was thinking about someting like make ddrescue > execute > > system( "echo <message> | mailx -s <subject> u...@example.com" ); > > and just provide the means to specify the email address and a pointer to > the configuration documentation of mailx (or whatever email client > used). BTW, the mailx command in my machine does not seem able to send > emails to the outside world. > > > ST wrote: > > PS: such hooks could be used also for other stuff - like backing up the > > so far rescued image to an sftp-server (just in case)... > > Working commands suitable for something like the system call above are > welcome. ;-)
Don't limit ddrescue to mailx or whatever else. What if one wants to get notified in other ways? - sms/whatsapp/etc.. Just do something like: system(" /whatever/user/provides "); all you need to do inside ddrescue is to call this system("..."); on the right place (depending on user's input)... You might want to configure Postfix to deliver emails: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-14-04 Thank you! _______________________________________________ Bug-ddrescue mailing list Bug-ddrescue@gnu.org https://lists.gnu.org/mailman/listinfo/bug-ddrescue