path: root/mcon/U/mboxchar.U
diff options
authorManoj Srivastava <>2008-05-30 12:42:47 -0700
committerManoj Srivastava <>2008-05-30 12:42:47 -0700
commitceb3507a8fca872770b3dcd7e5c5b36179ab95b0 (patch)
treeb46b4e25cfff5f4c13a330b8428ceed343e3796c /mcon/U/mboxchar.U
Import dist_3.5-236.orig.tar.gz
[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
index 0000000..c837b1b
--- /dev/null
+++ b/mcon/U/mboxchar.U
@@ -0,0 +1,70 @@
+?RCS: $Id$
+?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 1995/07/25 14:13:12 ram
+?RCS: patch56: ensure ctrl-A characters are visible in prompt (WED)
+?RCS: Revision 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
+'') dflt=F;;
+?X: The following ^A is two-chars to ensure it will print out -- WED
+"$CTRLA") dflt='^A';;
+*) dflt="$mboxchar";;
+$cat <<EOM
+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?"
+. ./myread
+case "$mboxchar" in
+'F') ;;
+"$CTRLA") ;;
+'^A'|'^a') mboxchar="$CTRLA";;
+*) 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.";;
+ esac