File: startmailer

package info (click to toggle)
asmail 2.1-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,024 kB
  • ctags: 301
  • sloc: ansic: 3,045; sh: 183; makefile: 88
file content (15 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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