1 ?RCS: $Id: mboxchar.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: mboxchar.U,v $
12 ?RCS: Revision 3.0.1.2 1995/07/25 14:13:12 ram
13 ?RCS: patch56: ensure ctrl-A characters are visible in prompt (WED)
15 ?RCS: Revision 3.0.1.1 1994/05/06 15:11:22 ram
16 ?RCS: patch23: added support for MMDF mailboxes (WED)
18 ?RCS: Revision 3.0 1993/08/18 12:09:15 ram
19 ?RCS: Baseline for dist 3.0 netwide release.
21 ?MAKE:mboxchar: cat package shsharp Myread Oldconfig
22 ?MAKE: -pick add $@ %<
24 ?S: This variable contains the eventual value of the MBOXCHAR symbol,
25 ?S: which is how a C program can identify a file as a mailbox.
28 ?C: This symbol contains a character which will match the beginning
29 ?C: of a mailbox file.
31 ?H:#define MBOXCHAR '$mboxchar' /**/
34 ?INIT:CTRLA=`echo a | tr a '\001'`
35 : determine how to determine when a file is a mailbox
38 ?X: The following ^A is two-chars to ensure it will print out -- WED
44 In saving articles, $package wants to differentiate between saving to
45 mailbox format files and normal files. It does this by examining the
46 first character of the file in question. On most systems the first line
47 starts with "From ...", so the first character is an F. Other systems
48 use magic cookies like control codes between articles, so one of those
49 would be first. For example, MMDF messages are separated with lines of
50 four control-A's (you may specify one as ^A, i.e. caret A).
53 rp="What's the first character of a mailbox file?"
59 '^A'|'^a') mboxchar="$CTRLA";;
62 You will need to edit the shell script mbox.saver to properly append an
63 article to a mailbox. The arguments to the script are documented in
66 false) echo "comments in mbox.saver.std.";;
67 true) echo "comments in the shell script itself.";;