1 ?RCS: $Id: mailfile.U 1 2006-08-24 12:32:52Z rmanfredi $
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
11 ?RCS: $Log: mailfile.U,v $
12 ?RCS: Revision 3.0.1.2 1994/10/29 16:24:57 ram
13 ?RCS: patch36: the Loc unit was missing from the dependency line
15 ?RCS: Revision 3.0.1.1 1993/12/15 08:22:08 ram
16 ?RCS: patch15: now also looks under /var/mail for BSD/386
18 ?RCS: Revision 3.0 1993/08/18 12:09:11 ram
19 ?RCS: Baseline for dist 3.0 netwide release.
21 ?MAKE:mailfile: Myread Oldconfig Filexp Loc
22 ?MAKE: -pick add $@ %<
24 ?S: This variable contains the eventual value of the MAILFILE symbol,
25 ?S: which contains an interpretable name of the mail spool file for the
29 ?C: This symbol contains the interpretable name of the mail spool file
30 ?C: for the current user. The program must be prepared to substitute
31 ?C: the HOME directory for %~, and the login id for %L.
33 ?H:#define MAILFILE "$mailfile" /**/
35 : determine where mail is spooled
38 dflt=`./loc . XXX /usr/spool/mail /usr/mail /var/mail`
40 XXX) dflt='%~/mailbox';;
49 In the following question, you may use %~ to represent the user's home
50 directory, and %L to represent a users name.
53 rp='In which file is yet-to-be-read mail spooled? (~name ok)'
55 mailfile=`./filexp "$ans"`