New Mail Notification

If you ssh to Rupture, you can have Rupture tell you upon login if you have any new mail. Note that this will not be of much use if you use TWIG or a desktop-based email client.

Setup is straightforward. The first thing to do is determine what shell you're using. It will likely look like one of the following:


generic@zen:~> echo $SHELL
/bin/tcsh
generic@zen:~>

or...


[generic@zen generic]$ echo $SHELL
/usr/local/bin/bash
[generic@zen generic]$

If you're using tcsh, as in the first example, do this:


generic@zen:~> echo "[ -x /root/newmail.pl ] && /root/newmail.pl" >> .login
generic@zen:~> 

If you're using bash, as in the second example, do this:


[generic@zen generic]$ echo "[ -x /root/newmail.pl ] && /root/newmail.pl" >>  .bash_profile
[generic@zen generic]$

Now, log out and back in. You will see either "You have new mail!" or "You have no new mail." If the system can't find your mail file at all, you will see "No mail file found." If you would like the system to not say anything if you have no new mail, modify your .login or .bash_profile (as determined above) like so:


[ -x /root/newmail.pl ] && /root/newmail.pl -q

The -q (for quiet) option will silence the script if you have no new mail (or the system cannot find the mail file).

Feel free to email the admin with any specific questions etc.

<admin*rupture.net>

File /newmail/index.shtml
was last updated : 05:25 PM 11/03/04