|author||Manoj Srivastava <email@example.com>||2008-05-30 12:42:47 -0700|
|committer||Manoj Srivastava <firstname.lastname@example.org>||2008-05-30 12:42:47 -0700|
[dgit import orig dist_3.5-236.orig.tar.gz]
Diffstat (limited to 'mcon/U/mboxchar.U')
1 files changed, 70 insertions, 0 deletions
diff --git a/mcon/U/mboxchar.U b/mcon/U/mboxchar.U
new file mode 100644
@@ -0,0 +1,70 @@
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS: $Log: mboxchar.U,v $
+?RCS: Revision 184.108.40.206 1995/07/25 14:13:12 ram
+?RCS: patch56: ensure ctrl-A characters are visible in prompt (WED)
+?RCS: Revision 220.127.116.11 1994/05/06 15:11:22 ram
+?RCS: patch23: added support for MMDF mailboxes (WED)
+?RCS: Revision 3.0 1993/08/18 12:09:15 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:mboxchar: cat package shsharp Myread Oldconfig
+?MAKE: -pick add $@ %<
+?S: This variable contains the eventual value of the MBOXCHAR symbol,
+?S: which is how a C program can identify a file as a mailbox.
+?C: This symbol contains a character which will match the beginning
+?C: of a mailbox file.
+?H:#define MBOXCHAR '$mboxchar' /**/
+?INIT:CTRLA=`echo a | tr a '\001'`
+: determine how to determine when a file is a mailbox
+case "$mboxchar" in
+?X: The following ^A is two-chars to ensure it will print out -- WED
+In saving articles, $package wants to differentiate between saving to
+mailbox format files and normal files. It does this by examining the
+first character of the file in question. On most systems the first line
+starts with "From ...", so the first character is an F. Other systems
+use magic cookies like control codes between articles, so one of those
+would be first. For example, MMDF messages are separated with lines of
+four control-A's (you may specify one as ^A, i.e. caret A).
+rp="What's the first character of a mailbox file?"
+case "$mboxchar" in
+*) cat <<'EOM'
+You will need to edit the shell script mbox.saver to properly append an
+article to a mailbox. The arguments to the script are documented in
+ case "$shsharp" in
+ false) echo "comments in mbox.saver.std.";;
+ true) echo "comments in the shell script itself.";;