File: startmailer

package info (click to toggle)
asmail 2.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,352 kB
  • sloc: ansic: 3,050; sh: 183; makefile: 18
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