This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Populate metaconfig branch.
[metaconfig.git] / dist-3.0at70 / mcon / U / mailfile.U
CommitLineData
959f3c4c
JH
1?RCS: $Id: mailfile.U,v 3.0.1.2 1994/10/29 16:24:57 ram Exp $
2?RCS:
3?RCS: Copyright (c) 1991-1993, Raphael Manfredi
4?RCS:
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 3.0.
10?RCS:
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
14?RCS:
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
17?RCS:
18?RCS: Revision 3.0 1993/08/18 12:09:11 ram
19?RCS: Baseline for dist 3.0 netwide release.
20?RCS:
21?MAKE:mailfile: Myread Oldconfig Filexp Loc
22?MAKE: -pick add $@ %<
23?S:mailfile:
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
26?S: current user.
27?S:.
28?C:MAILFILE:
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.
32?C:.
33?H:#define MAILFILE "$mailfile" /**/
34?H:.
35: determine where mail is spooled
36case "$mailfile" in
37'')
38 dflt=`./loc . XXX /usr/spool/mail /usr/mail /var/mail`
39 case "$dflt" in
40 XXX) dflt='%~/mailbox';;
41 *) dflt="$dflt/%L";;
42 esac
43 ;;
44*) dflt="$mailfile"
45 ;;
46esac
47cat <<'EOM'
48
49In the following question, you may use %~ to represent the user's home
50directory, and %L to represent a users name.
51
52EOM
53rp='In which file is yet-to-be-read mail spooled? (~name ok)'
54. ./myread
55mailfile=`./filexp "$ans"`
56