⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faq

📁 早期freebsd实现
💻
📖 第 1 页 / 共 4 页
字号:
	overflowtext="",overflowoffset=0	date:component="Your message dated",formatfield=\	"%<(nodate{text})%{text}%|%(pretty{text})%>"	body:component=">",overflowtext=">",overflowoffset=0  Setting overflowoffset to 0 keeps MH from doing anything to  extra-long lines in the headers.  In the body, however, this  behavior is overridden so that long lines are automatically broken  and a ">" is inserted before every line.  You could put almost  whatever you want between those quotes, although the "standard" ">"  makes it easier to read notes that have been included several times.  The examples differ with the descriptive text that is inserted  before the included body.  It is suggested not to use the "prompter" editor in this case, since  it is likely that you'll not want to use all of the included  message.  Indeed, it is proper etiquette to edit out all unnecessary  include verbiage so readers don't have to wade through the morass to  read your pearls of wisdom.  WARNING: the '>' appears on the first line ONLY in versions prior  to 6.7.2.  Upgrade to MH 6.8.      --Alan Thew <qq11@liv.ac.uk>, Mike Schwager <schwager@cs.uiuc.edu>,  James T Perkins <jamesp@sp-eug.com> [1.93]  See also MH book sections 6.7.4, 6.7.5, 9.4.1 (9.3.1).  Subject: How can I eliminate duplicate copies of letters to myself?From: Using MH-32  Add these two lines to your MH profile file:	Alternate-Mailboxes: user@host1, user@host2, ...        repl: -nocc me  To get one copy, you can either:  - Take out the "-nocc me"... then you'll get exactly one copy of    your replies (assuming all your addresses are listed in    Alternate-Mailboxes), or  - Add an "Fcc: foldername" to the headers of messages you send.    That will drop a copy of the message in the folder "foldername".    You can do this for *all* MH messages you send (not just with    repl) by putting an "Fcc:" entry in your personal copy of the    files "components", "replcomps", and "forwcomps" in your MH    directory.  (If you make a "distcomps" file, it needs    "Resent-Fcc:".)  For more info, see the man pages comp(1),    repl(1), forw(1), dist(1) and mh-mail(5). --Jerry Peek <jerry@ora.com>  The Alternate-Mailboxes also tells scan which messages are really  from you so that it can place the recipient in the scan line instead  of the sender.  --Bill Wohler  See also MH book sections 6.7.2, 8.6.  This is also a convenient way to AVOID automatically cc-ing a  mailing list when replying to a person who sent the message to the  mailing-list, by listing the name of that mailing list in your  alternate mailboxes.  --Alec Wolman <wolman@crl.dec.com>  Subject: How would one go about reading Usenet with MH?From: Using MH-33  Although news readers are better, if one really wants to use  MH, bbc will do the job.  For example, "bbc comp.mail.mh" reads this  newsgroup.  To enable bbc, you have to specify "bboards" when you  build MH.  --Stephen Gildea <gildea@expo.lcs.mit.edu>  You can save articles in the news readers for later perusal with MH.  First, create a symbolic link from your mail directory (ie. usenet) to  your news directory (ie. "ln -s ~/News ~/Mail/usenet").  You can then  treat your news directory as a mail folder.  Thus, to select a news  group, use "folder +usenet/comp/mail/mh".  To set the default save location correctly in rn, use:	rn -M -/  or in your nn presentation sequence:	news.announce.		+$F/$N	comp.mail.mh		+	.	.  See also MH book section 8.7.  Subject: Can I append MH messages (ie. +inbox/1) to a UNIX mailbox format file?From: Using MH-34  Yes, see support/general/packmbox.sh in the distribution.  [1.93]  Subject: How can I include my signature?From: Using MH-35  There are several ways.  1) The MH way.  1a) In your Mail directory, create files that      include your signature into the format of the message.     ~/Mail/components:	To: 	cc: 	Subject: 	--------	--	Eric Ziegast		ziegast@uunet.uu.net	UUNET Technologies	uunet!ziegast     ~/Mail/replcomps	body:component="> ",compwidth=2	:--	:Eric Ziegast      	ziegast@uunet.uu.net	:UUNET Technologies	uunet!ziegast     To use the replcomps file, add the following to your ~/.mh_profile:	repl: -filter replfmt     When comp is used, your signature is already there along with my     headers.  When repl is used, the mhl program takes the body of     the letter you're replying to, prepends '> ' to each line and     then adds your signature at the end (available after version 6.7).  1b) Create an "editor" which can be called from whatnow to add the     signature when desired or create a frontend to post (use the     .mh_profile line "postproc: postproc" to call it) that always     appends the .signature file before calling post to mail the     message.  David J. Fiander <david@golem.uucp>, David A.     Truesdell <truesdel@sun418.nas.nasa.gov> and Tom Wilmore     <sastjw@unx.sas.com> have sample scripts to do these.  1c) Section 13.13 of the MH book lists mysend, a sendproc script to    process a message after "What now? send" (see "What references    exist for MH" to see where the book's examples can be ftped from).    --Jerry Peek <jerry@ora.com> [9.92]  2) Using your editor.  If you use vi, you can use something like:	  map S :r ~/.signature     to load your signature out of .signature every time you     hit 'S'.  3) Use your windowing system.  xterm, for example, can provide key     and button mappings for the utterly lazy.  4) And if you use Emacs with mh-e, C-c C-s will append the signature.  --Eric W. Ziegast <ziegast@uunet.uu.net> & Hardy Mayer  <hardy@golem.ps.uci.edu> except where noted.  Tired of the same old signature?  Want different signatures for  different newsgroups?  Here's a program to help you out.  The way it works is to have .signature be a named pipe, so if you  don't have named pipes, just say 'n'.  The sigrand program then feeds stuff down the pipe everytime someone  wants to read it.  That way it works for more than just news, but  for anything that wants to read your .signature, like a mailer.  You have your choice of three kinds of signatures:      1) random (short) fortune from "fortune -s"; you get these if	 you don't have a global sig file.      2) random fortune from ~/News/SIGNATURES [global sig file]      3) random fortune form ~/News/(newsgroup)/SIGNATURES [local sig files]  Ask Tom Christiansen <tchrist@convex.com> for more details.  Subject: What to do with "Problems with edit - draft removed".From: Using MH-36  If your users are using an AT&T version of "vi", it's exiting with  non-zero status (supposedly a count of the "errors" during the edit).  Move "vi" to "broken_vi" and put it its place:	#! /bin/sh	/usr/ucb/broken_vi $*	exit 0  Alternatively, compile MH with the ATTVIBUG option.  Then complain to your vendor that "vi" is broken, and they should  fix it.  --John Romine <jromine@ics.uci.edu>  Subject: How do I call my editor with arguments?From: Using MH-37  Set your editor (in .mh_profile) to the following shellscript:	#/bin/sh	<youreditor> <yourargs> $*	exit 0  --John Romine <jromine@ics.uci.edu>  You might find it useful to make <youreditor> $EDITOR, or to use  different arguments depending on your EDITOR environment variable.  --Ray Nickson <Ray.Nickson@comp.vuw.ac.nz>  Subject: ! How do I debug my .maildelivery file?From: Using MH-38  Use as many of the following as necessary.  Put a message into a file and call slocal directly on it.	/usr/local/lib/mh/slocal -user $USER -verbose -debug < test-msg   Modify your .forward to look like:	"|/bin/sh -c 'exec >> /tmp/out 2>&1; /usr/local/lib/mh/slocal 	-user $USER -verbose -debug'"  Or modify a rule in .maildelivery to look like this:	to foo | R "set -xv; exec >/tmp/out 2>&1;	/usr/local/lib/mh/rcvstore +foo"  The previous examples are broken up for readability; the text must  appear on one line.  See also MH book section 11.11. [3.93]  Subject: How can I digestify the messages in a folder for mail to another user?From: Using MH-39  How about:	forw [-digest tmp] [-form forwcomps] [-filter mhl.digest]	     messages +folder  These messages can be un-digestified :-) by the MH burst(1) program.  --Jerry Peek <jerry@ora.com> and Bill Wohler  See also MH book sections 6.8, 7.9.  Subject: Can I run my message through a program (ie. ispell) before sending?  From: Using MH-40  It's pretty simple.  If your speller is called myspell, use:	What now? edit myspell  MH will actually execute:	myspell /your-mail-draft-directory/draftfile  and give the entire draft message to your speller.  The header will  probably be "misspelled," of course, though you might be able to  tell the speller to ignore it--or you could hack up a little shell  script to run the speller on just the message body, then tack the  corrected body back onto the header before sending.  You can automate this some more.  For example, if you want your  speller to run after your first edit with "prompter" and also after  you leave the "vi" editor, add these lines to your MH profile:	  prompter-next: myspell	  vi-next: myspell  Then, at the "What now?" prompt:	  What now? e  your speller will run.  For more info, see the mh-profile(5) man  page or section 6.2.1 of the MH book. --Jerry Peek <jerry@ora.com>  Subject: Can I append MH messages to a GNU Emacs rmail BABYL-format file?From: Using MH-41        To convert your MH folders to BABYL folders, first run the following script  on your Mail directory.  #!/bin/sh  for f in Mail/*; do	if [ -d $f ]; then		touch msgbox		folder=`basename $f`		echo -n packing $folder ...		packf +$folder		echo done		mv msgbox Mail-rmail/$folder	fi  done  This assumes you don't have nested folders.  Your rmail folders will be  left in $HOME/Mail-rmail in MMDF format which rmail can read.  Then run  rmail-input for each folder, which converts each folder into BABYL format.  Be sure not to append any messages before they are converted from MMDF  to BABYL, since there may be really strange results.  Subject: Is there documentation for mh-e?From: Using MH-42  Yes, sort of.  Run "C-h m" (describe-mode) in both scan and  letter modes to see which commands and variables are available.  Browsing the code is also helpful.  Subject: How can I change my return address?From: Using MH-43  If you find that your mailer creates a From header that others have  trouble replying to, you can add a Reply-To header to override the  From header in replies.  Copy the components and replcomps files which are normally found in  /usr/local/lib/mh into your Mail directory and add a line like the  following after the Subject header replacing my address with your  address:	Reply-To: wohler@sap-ag.de  [12.92]  Subject: How can I change my From header?From: Using MH-44  If you're just interested in changing the hostname, add a line to  $LIB/mtstailor:	localname: desired_host_name  --Bill Wisner <wisner@netcom.com> [12.92]  Just put a "From:" header in your "components", "replcomps" and  "forwcomps" files.  MH will add a "Sender:" header with what it thinks  is your real address, but (almost) no one cares about the "Sender:"  header anyway.  --Jerry Peek <jerry@ora.com>  [12.92]  Subject: What to do with "bad address 'xxx' - no at-sign after local-part".From: Using MH-45  You may find that post returns the following message:	post: bad address 'Mr. Foo Bar <fb@somewhere.edu>' - no at-sign	after local-part (Bar), continuing...  The unquoted dot causes "Mr. Foo" to be parsed as the local part of  the address.  Either remove the dot, or rewrite the address as  follows: 	"Mr. Foo Bar" <fb@somewhere.edu>	(Mr. Foo Bar) <fb@somewhere.edu>	(Mr. Foo Bar) fb@somewhere.edu  --Owen Rees <rtor@ansa.co.uk> [1.93]  Subject: + How can I search through multiple folders?From: Using MH-46  Recurse through the folders (in csh and sh):  % foreach f (`folders -f`)		$ for f in `folders -f`  ? pick [switches] +$f			> pick [switches] +$f  ? end					> done  Or create a folder that contains links to all messages (in csh and sh):	% foreach f (`folders -f | grep -v -x ln`)		? refile -src +$f -link all +ln			? end							$ for f in `folders -f | grep -v -x ln`	> do refile -src +$f -link all +ln	> done  and in the future, refile messages with "refile +folder +ln".  To  find something, use:	% pick [switches] +ln  See MH book sections 7.2.9, 7.8.3. [3.93]  Subject: + Why isn't slocal working?From: Using MH-47  If slocal doesn't appear to be doing anything, run the following	/usr/local/lib/mh/slocal -user your_login -verbose < file  where "file" is some message in a mail folder.  If you get something  like:   	.maildelivery: ownership/modes bad (0, 154,154,0100666)  your .maildelivery is writable by too many people.  Make it writable  only by you by running "chmod 644 .maildelivery".  See also "How do I debug my .maildelivery file?" [3.93]  Subject: + Fixing "post: problem initializing server; [RPLY] 503 Sender already specified"From: Using MH-48  The problem in sendmail is that the RSET after the ONEX does not  reset all the state information.  Normally sendmail fork()s after  the Mail from: statement and a RSET causes that child to exit.  This  automatically cleans up.  If the fork() is suppressed by ONEX, then

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -