A command line tool notifying the user via email when a program finishes (the command and output of the program). Useful when running a time consuming program.
You may fork the source code of MailPro or simply download and extract mailpro.tar.gz to use MailPro. The following instructions work for both.
cd to the folder containing mailpro. Then run configure as follows.
./configure
Set the email address to which you wish to send the notification and the subject (title) of the notification according to the guidance of the message shown on command line.
If an error occurs saying that executability is needed for ./configure, grant executability with the following code.
chmod u+x configure
###Test
You may use the following command to test that mailpro has been successfully configured.
mailpro expr 1 + 1
The content of the message you received should be as follows.
Command:
expr 1 + 1
Output:
2
You may notice that the email is in your junk mail box. You may need to follow the steps in the next section.
###Avoiding Spam Filtering
I only tested on Gmail account, but it is very likely that there are similar methods with other mainstream email service providers.
First, log on your Gmail account using a web browser.
Second, find the test message you received in the previous step in "More->Spam".
Third, click on the tag near the title of your email, which means that this email is important.
With the configuration in this section, you will find your notification email goes into the ordinary mailbox.
###Usage
The usage of mailpro is quite simple. Just add mailpro before any command.
mailpro your command
###Uninstall
There are three places modified on your system while configuring MailPro.
- the source code folder, i.e., the folder containing mailpro, configure, LICENSE.md and the README.md you are reading
- ~/.mailpro_profile
- the line "# Added for MailPro" and the line following it (starting with PATH) in your ~/.bash_profile or ~/.profile (While configuring, ./configure choose ~/.bash_profile or ~/.profile automatically. In most cases, it should be ~/.bash_profile.)
After cleaning up the above three contents, MailPro is cleared completely on your computer.
###To Do (For Developers Only)
Compose a script for uninstallation, using commands like sed.