File: checkmail.html

package info (click to toggle)
nas 1.8-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 8,452 kB
  • ctags: 23,094
  • sloc: ansic: 54,190; makefile: 23,934; sh: 7,406; perl: 2,208; yacc: 244; cpp: 216; lex: 63
file content (86 lines) | stat: -rw-r--r-- 2,243 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!-- manual page source format generated by PolyglotMan v3.0.7, -->
<!-- available via anonymous ftp from ftp.cs.berkeley.edu:/ucb/people/phelps/tcltk/rman.tar.Z -->

<HTML>
<HEAD>
<TITLE>man page(1)</TITLE>
</HEAD>
<BODY bgcolor=white>
<A HREF="#toc">Table of Contents</A><P>

<H2><A NAME="sect0" HREF="#toc0">Name</A></H2>

<P>
checkmail - plays a sound file when the user receives mail

<H2><A NAME="sect1" HREF="#toc1"><B>Synopsis</B></A></H2>

<P>
<B>checkmail</B>

<H2><A NAME="sect2" HREF="#toc2"><B>Description</B></A></H2>

<P>
The <I>checkmail</I> program checks the status of the user's mail
drop. If new mail is waiting, <I>checkmail</I> runs <I>playbucket</I>
to play a sound and returns an exit status of 0. If mail
has been cleared, an exit status of 2 is returned. If
there has been no change, an exit status of 1 is returned.
<P>
The <I>checkmail</I> program is intended to be used with the
<B>checkCommand</B> resource of <I>xbiff</I>. To set this resource, add
the following line to your <I>.Xdefaults</I> file:
<P>
xbiff*checkCommand: checkmail

<H2><A NAME="sect3" HREF="#toc3"><B>Files</B></A></H2>


<DL>

<DT>/usr/spool/mail/$USER </DT></DT>
<DD>        the user's mail drop
</DD>

<DT>$HOME/.mailstat </DT></DT>
<DD>              holds the previous mail drop
size
</DD>

<DT>$HOME/.mailsound </DT></DT>
<DD>             audio file to play when
there's new mail
</DD>
</DL>

<H2><A NAME="sect4" HREF="#toc4"><B>See</B> <B>Also</B></A></H2>

<P>
<A HREF="man:playbucket(1)">playbucket(1)</A>
, <A HREF="man:xbiff(1)">xbiff(1)</A>
, <A HREF="man:nas(1)">nas(1)</A>


<H2><A NAME="sect5" HREF="#toc5"><B>Copyright</B></A></H2>

<P>
Copyright 1994 Network Computing Devices, Inc.

<H2><A NAME="sect6" HREF="#toc6"><B>Author</B></A></H2>

<P>
Greg Renda, Network Computing Devices, Inc.
<P>

<HR><P>
<A NAME="toc"><B>Table of Contents</B></A><P>
<UL>
<LI><A NAME="toc0" HREF="#sect0">Name</A></LI>
<LI><A NAME="toc1" HREF="#sect1">Synopsis</A></LI>
<LI><A NAME="toc2" HREF="#sect2">Description</A></LI>
<LI><A NAME="toc3" HREF="#sect3">Files</A></LI>
<LI><A NAME="toc4" HREF="#sect4">See Also</A></LI>
<LI><A NAME="toc5" HREF="#sect5">Copyright</A></LI>
<LI><A NAME="toc6" HREF="#sect6">Author</A></LI>
</UL>
</BODY></HTML>