# If you are using netscape this script could be very handy for you.
# It checks if the lockfile of netscape exists in ~/.netscape in which case
# it opens Netscapes Inbox and checks for new mail. Otherwise it starts
# the mailwindow. Just copy this to a directory in your $PATH (/usr/local/bin
# for example) and set in your .asmailrc the option Execute to "startmailer &".
#!/bin/bash
if [ -L ~/.netscape/lock ]
then
netscape -remote "xfeDoCommand(openInbox)"
netscape -remote "xfeDoCommand(getNewMessages)"
else
netscape -mail &
fi
|