home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / Documents / FAQ / GNU-Emacs-faq / part5 < prev    next >
Encoding:
Text File  |  1993-05-05  |  20.6 KB  |  483 lines

  1. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!eru.mt.luth.se!kth.se!sunic!mcsun!uknet!doc.ic.ac.uk!agate!dog.ee.lbl.gov!network.ucsd.edu!swrinde!cs.utexas.edu!newsfeed.rice.edu!rice!sbyrnes
  2. From: sbyrnes@rice.edu (Steven Byrnes)
  3. Newsgroups: gnu.emacs.help,comp.emacs,gnu.emacs.gnus,news.answers,comp.answers
  4. Subject: GNU Emacs FAQ (5/5, 152-177): Mail and News
  5. Summary: READ BEFORE POSTING.  A regularly posted list of answers to frequently
  6.          asked questions (FAQs) about GNU Emacs and many Emacs Lisp programs.
  7.          Contains pointers to other resources.  Follow "References:" link for
  8.          more metainfo.
  9. Keywords: gnu emacs faq answers frequently asked questions periodic
  10. Message-ID: <GNU-Emacs-FAQ-5.1993.05.04.025218@rice.edu>
  11. Date: 4 May 93 02:52:18 GMT
  12. Expires: Sat, 3 Jul 1993 02:52:18 GMT
  13. References: <GNU-Emacs-FAQ-0.1993.05.04.025218@rice.edu>
  14. Sender: news@rice.edu (News)
  15. Reply-To: gnu-emacs-faq-maintainers@bigbird.bu.edu
  16. Followup-To: poster
  17. Organization: GNU's Not UNIX
  18. Lines: 459
  19. Approved: news-answers-request@mit.edu
  20. Supersedes: <GNU-Emacs-FAQ-5.1993.01.05.171933@rice.edu>
  21. Originator: sbyrnes@is.rice.edu
  22. Xref: senator-bedfellow.mit.edu gnu.emacs.help:10210 comp.emacs:17192 gnu.emacs.gnus:3620 news.answers:8183 comp.answers:625
  23.  
  24. Archive-Name: GNU-Emacs-FAQ/part5
  25. Last-Modified: Sat, 6 Mar 1993 21:13:32 GMT
  26. Last-Posted: Tue, 4 May 1993 02:52:18 GMT
  27.  
  28.                        GNU Emacs FAQ: Mail and News
  29.  
  30. This portion of the GNU Emacs FAQ list is cross-posted to `gnu.emacs.gnus'
  31. because many of the questions herein deal with GNUS.  See `gnu.emacs.help' for
  32. the rest of the FAQ list.
  33.  
  34. If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x $" to
  35. get an overview of just the questions.  Then, when you want to look at the text
  36. of the answers, just type "C-x $".
  37.  
  38. To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a C-r if
  39. that doesn't work, then type ESC to end the search.
  40.  
  41. A `+' in the 78th column means something was inserted on the line.  A `-' means
  42. something was deleted and a `!' means some combination of insertions and
  43. deletions occurred.
  44.  
  45. Full instructions for getting the latest FAQ are in question 22.  Also see the
  46. `Introduction to news.answers' posting in the `news.answers' newsgroup, or send
  47. e-mail to `mail-server@rtfm.mit.edu' with `help' on a body line, or use FTP,
  48. WAIS, or Prospero to rtfm.mit.edu.
  49.  
  50.  
  51.  
  52. Mail and News
  53.  
  54. 152: How do I change the included text prefix in mail/news followups?
  55.   
  56.   Many people want Emacs to prefix included text with something like ` > '
  57.   instead of with three spaces.  One way is to change the code of the
  58.   function `mail-yank-original' in lisp/sendmail.el that prefixes with
  59.   spaces.  A more flexible solution is to use Supercite, which provides wide
  60.   configurability in how you format included text in replies.  See question
  61.   107.  Both of these solutions work for RMAIL and GNUS.
  62.   
  63.   A related problem is how to prevent Emacs from including various headers
  64.   of the replied-to message.  For this, you should set the value of
  65.   mail-yank-ignored-headers, which takes a regexp value.
  66.   
  67. 153: How do I save a copy of outgoing mail?
  68.   
  69.   Two methods:
  70.   
  71.   1. (setq mail-self-blind t) will result in a `BCC:' header line with your
  72.      address being added to mail composition buffers.  This will cause the
  73.      mail system to send a copy of the mail back to you.
  74.   
  75.   2. (setq mail-archive-file-name (expand-file-name "~/outgoing")) will
  76.      result in an `FCC:' header line with the pathname of ~/outgoing being
  77.      added to mail composition buffers.  When you send the mail, Emacs will
  78.      save a copy of the mail in the file ~/outgoing and then strip off the
  79.      `FCC:' line before actually sending.
  80.   
  81.      WARNING: There is a bug in Emacs 18.58 that prevents mail readers such
  82.      as RMAIL from reading the saved mail messages individually.  See
  83.      question 155.
  84.   
  85.      WARNING: If you are visiting the file ~/outgoing at the time you send
  86.      the mail, this can cause a variety of horrible problems.  Jamie
  87.      Zawinski has written a solution for this.
  88.   
  89.   It does not work to put `set record filename' in the .mailrc file.
  90.   
  91. 154: Why doesn't Emacs expand my aliases when sending mail?
  92.   
  93.   * You must separate multiple addresses in the headers of the mail buffer
  94.     with commas.  This is because Emacs supports RFC822 standard addresses
  95.     like this one:
  96.   
  97.       To: Willy Smith <wks@xpnsv.lwyrs.com>
  98.   
  99.     However, you do not need to separate addresses with commas in your
  100.     .mailrc file.
  101.   
  102.     WARNING: Emacs breaks up aliases in the .mailrc file into multiple
  103.     addresses both on commas and on whitespace, regardless of any use of
  104.     quotes.  This is probably a bug.  You can get around this by directly
  105.     setting the value of mail-aliases.
  106.   
  107.   * Emacs normally only reads the `.mailrc' file once per session, when you
  108.     start to compose your first mail message.  If you edit .mailrc, you can
  109.     type "M-ESC (build-mail-aliases) RET" to make Emacs reread .mailrc.
  110.     (You have to include the parentheses where they are shown!)
  111.   
  112.   * Emacs does not interpret vendor-specific additions to the format of the
  113.     .mailrc file such as the `source' command.  It also ignores any `set'
  114.     commands.  The only commands it looks at are `alias' and `group'
  115.     commands.
  116.   
  117. 155: Why does RMAIL think all my saved messages are one big message?
  118.   
  119.   There is a bug for FCC-ed messages in Emacs 18.58 where it adds a timezone
  120.   on the "From " line after the year instead of before the year.  (Before it
  121.   didn't add the timezone at all.)  This is incompatible with the standard
  122.   format for the "From " line, and RMAIL in particular can no longer
  123.   distinguish between the messages.  Karl Berry <karl@cs.umb.edu>, Felix Lee
  124.   <flee@cs.psu.edu>, Nick Gianniotis <nico@japan.sbi.com> and many
  125.   others have all posted patches for this.  Karl's is the simplest and just
  126.   stops Emacs from adding the timezone:
  127.   
  128.     >*** ./ORIG/sendmail.el    Tue Jan 28 16:22:56 1992
  129.     >--- ./sendmail.el    Thu May 14 18:23:48 1992
  130.     >***************
  131.     >*** 285,287 ****
  132.     >        (insert "\nFrom " (user-login-name) " "
  133.     >!           (current-time-string) " " timezone "\n")
  134.     >        (insert-buffer-substring rmailbuf)
  135.     >--- 285,287 ----
  136.     >        (insert "\nFrom " (user-login-name) " "
  137.     >!           (current-time-string) "\n")
  138.     >        (insert-buffer-substring rmailbuf)
  139.   
  140. 156: How can I sort the messages in my RMAIL folder?
  141.   
  142.   Use rmailsort.el by Masanobu Umeda.
  143.   
  144. 157: Why does RMAIL need to write to /usr/spool/mail?
  145.   
  146.   This is the behavior of the `movemail' program which RMAIL uses.  This
  147.   indicates that movemail is configured to use lock files.
  148.   
  149.   RMS writes:
  150.   
  151.     Certain systems require lock files to interlock access to mail files.
  152.     On these systems, movemail must write lock files, or you risk losing
  153.     mail.  You simply must arrange to let movemail write them.
  154.   
  155.     Other systems use the flock system call to interlock access.  On these
  156.     systems, you should configure movemail to use flock.
  157.   
  158. 158: How do I recover my mail files after RMAIL munges their format?
  159.   
  160.   Users who just want to try RMAIL out to see how it works end up trapped
  161.   using it because saved mail in their `mbox' file has been converted into
  162.   an incompatible format (BABYL) that only RMAIL understands.  RMAIL
  163.   provides no obvious way to reverse this transformation.  Kyle Jones has
  164.   aptly named this "the great Emacs Mail Eating Monster".  To convert a mail
  165.   file back to standard Unix format, there are several methods:
  166.   
  167.   * Use the rmail-output ("C-o") command within RMAIL on each message in the
  168.     file.  First use M-x rmail or M-x rmail-input to visit the RMAIL file in
  169.     Rmail mode.  Type "1 j" to go to the first message.  Use the C-o command
  170.     to output the message to a Unix format file.  Type "n" to go to the next
  171.     message.  Repeat.
  172.   
  173.   * If the file contains hundreds of messages, you may not want to repeat
  174.     this for all of them.  Instead of the above, after getting to the first
  175.     message type this (where "mbox" is the file you want to put the messages
  176.     in):
  177.   
  178.       C-x ( C-o mbox RET M-s ^From: RET M-0 C-x )
  179.   
  180.     (The rmail-search command ("M-s") is used instead of just "n" because it
  181.     is the only command which will cause an error when it reaches the last
  182.     message in the file, which is necessary to terminate the keyboard macro.
  183.     This will fail if there are messages in the file that don't have a
  184.     `From:' header.  This assumes rmail-delete-after-output is nil.)
  185.   
  186.     It is wise to save a copy of the RMAIL file first, in case you make a
  187.     mistake.
  188.   
  189.   * There are software packages available for converting files or even
  190.     entire directories of BABYL files to standard Unix format.  These are
  191.     helpful in this situation, but are intended mainly for people who have
  192.     used RMAIL for a long time and are converting to some other mail reader.
  193.     Lookup `rmail', `vm', and `babyl' in the Emacs Lisp Archive (see
  194.     question 89).
  195.   
  196.   You may wish to disable RMAIL to avoid accidentally destroying your mbox
  197.   file (I have this in my .emacs):
  198.   
  199.     (put 'rmail 'disabled t)        ; avoid mbox destruction
  200.   
  201. 159: How do I make Emacs automatically start my mail/news reader?
  202.   
  203.   Example:
  204.   
  205.     emacs -f gnus
  206.   
  207.   Also:
  208.   
  209.     alias gnus 'emacs -f gnus'
  210.   
  211.   It is probably unwise to automatically start your mail or news reader from
  212.   your .emacs file.  This would cause problems if you needed to run two
  213.   copies of Emacs at one time.  Also, this would make it difficult for you
  214.   to start Emacs quickly when you needed to.
  215.   
  216. 160: How do I read news under Emacs?
  217.   
  218.   There are at least three news reading packages that operate inside Emacs.
  219.   `rnews' comes with Emacs.  GNUS and Gnews come separately.  rnews will
  220.   be replaced by GNUS in Emacs 19.
  221.   
  222.   rnews works only with a local news spool directory.  Both GNUS and Gnews
  223.   handle reading news remotely via NNTP in addition to reading from a local
  224.   news spool.  GNUS supports reading mail stored in MH folders or articles
  225.   saved by GNUS.
  226.   
  227.   Gnews is styled after `rn' and seems to work like RMAIL.  GNUS feels more
  228.   like VM.  People have complained that GNUS uses a lot of CPU time (it
  229.   does).  Some people have complained that Gnews is slower than GNUS.
  230.   
  231.   For more information about GNUS, see question 108.
  232.   
  233.   Gnews was written by Matthew P. Wiener <weemba@libra.wistar.upenn.edu>.
  234.   The latest version seems to be 2.0, posted October 3, 1988.  Matthew
  235.   posted some fixes on October 26, 1988.  Gnews does not appear to have been
  236.   supported after this date.  In particular, it has been reported that Gnews
  237.   does not work with Emacs 18.57.  There is a newsgroup for Gnews called
  238.   gnu.emacs.gnews.
  239.   
  240. 161: Why does `rnews' say "No News is good news" when there is news?
  241.   
  242.   rnews doesn't speak NNTP.  You may need to use GNUS or Gnews.
  243.   
  244. 162: Why doesn't GNUS work anymore via NNTP?
  245.   
  246.   There is a bug in NNTP version 1.5.10, such that when multiple requests
  247.   are sent to the NNTP server, the server only handles the first one before
  248.   blocking waiting for more input which never comes.  NNTP version 1.5.11
  249.   claims to fix this.
  250.   
  251.   You can work around the bug inside Emacs like this:
  252.   
  253.     (setq nntp-maximum-request 1)
  254.   
  255.   I also have a patch for NNTP 1.5.10 by Mike Pelletier
  256.   <stealth@engin.umich.edu> that is based on the timeout code that was in
  257.   1.5.9.  However, please try to upgrade to 1.5.11 first.
  258.   
  259.   You can find out what version of NNTP your news server is running by
  260.   telnetting to the NNTP port (usually 119) on the news server machine (ie.,
  261.   `telnet server-machine 119').  The server should give its version number
  262.   in the welcome message.  Type `quit' to get out.
  263.   
  264. 163: How do I view text with embedded underlining (eg., ClariNews)?
  265.   
  266.   Underlining appears like this:
  267.   
  268.     _^Hu_^Hn_^Hd_^He_^Hr_^Hl_^Hi_^Hn_^Hi_^Hn_^Hg
  269.   
  270.   You can destructively remove underlining with M-x ununderline-region.
  271.   
  272.   For ClariNews articles, clari-clean.el by David N. Blank-Edelman
  273.   <dnb@meshugge.media.mit.edu> will remove both underlining and overstriking
  274.   automatically.
  275.   
  276. 164: When I try to post a long article in GNUS (about 10K or longer), I get
  277.  the error, "Writing to process: no more processes, nntpd"
  278.   
  279.   Upgrade to Emacs 18.58 or higher.
  280.   
  281. 165: How do I save all the items of a multi-part posting in GNUS?
  282.   
  283.   Use gnus-mark.el by Jamie Zawinski <jwz@lucid.com>.
  284.   
  285. 166: Why does GNUS put the subjects in replies beyond the 80th column?
  286.   
  287.   This is a feature.  If you set gnus-thread-hide-subject to non-nil, GNUS
  288.   will only display the subject of the first posting in a thread, even if
  289.   some of the replies use different subjects.  It hides the subjects by
  290.   putting them past the edge of the window and setting truncate lines to t.
  291.   
  292.   If your screen looks messed up, then for some reason truncate-lines in
  293.   your `*Subject*' buffer has been set to nil.  It should be set to t.
  294.   
  295.   (I have an enhancement to GNUS 3.13 that will make it only hide the subject
  296.   of a posting when it is unchanged from the followed-up-to posting.  Thus,
  297.   you can use the subject hiding feature and still know when someone changes
  298.   the subject.  (I have forgotten who originally gave me the idea for this.))
  299.   
  300. 167: Why is GNUS so slow to start up?
  301.   
  302.   GNUS does several things that take quadratic time of the number of
  303.   newsgroups that are listed in .newsrc.  The quick fix for this is to
  304.   remove all the newsgroups in which you have no interest from your .newrc
  305.   file by using GNUS's C-k command in the `*Newsgroup*' buffer after
  306.   displaying all newsgroups with the L command.  If you were to directly
  307.   edit your .newsrc to remove the newsgroups, GNUS would add them back.
  308.   
  309.   GNUS uses a quadratic algorithm to check for duplicates when the .newsrc
  310.   file is newer than the .newsrc.el file (ie., you edited your .newsrc).
  311.   GNUS uses a quadratic algorithm to check for new newsgroups every time it
  312.   connects to the news server.  {There may be other quadratic algorithms
  313.   that I am not aware of.}
  314.   
  315.   You can speed up GNUS by using the C-k command in the *Newsgroup* buffer
  316.   to remove newsgroups from your .newsrc file.
  317.   
  318.   Of course, GNUS will run faster if you make sure it is byte-compiled.
  319.   
  320.   Felix Lee wrote some enhancements called `gnus-speedups.el' that fix some
  321.   of the problems.  See the Emacs Lisp Archive.
  322.   
  323. 168: How do I catch up all newsgroups in GNUS?
  324.   
  325.   In the `*Newsgroup*' buffer, type the following magical incantation:
  326.   
  327.     M-< C-x ( C-@ c y C-u C-@ C-e C-f C-f M-0 C-x )
  328.   
  329.   Leave off the "M-<" if you only want to catch up from point to the end of
  330.   the `*Newsgroup' buffer.
  331.   
  332. 169: Why can't I kill in GNUS on the Newsgroups/Keywords/Control line?
  333.   
  334.   GNUS 3.14.1 will complain that the `Newsgroups:', `Keywords:', and
  335.   `Control:' headers are `Unknown header field's.
  336.   
  337.   For the `Newsgroups:' header, there is an easy workaround: kill on the
  338.   `Xref' header instead, which will be present on any cross-posted article.
  339.   
  340.   If you really want to kill on one of these headers, you can do it like
  341.   this:
  342.   
  343.     (gnus-kill nil "^Newsgroups: .*\\(bad\\.group\\|worse\\.group\\)")
  344.   
  345.   Various people (eg., Greg Holley <holley@acuson.com>) have posted
  346.   solutions to allow more efficient killing on these headers than the
  347.   preceding solution.  Masanobu Umeda plans to fix this problem.
  348.   
  349. 170: How do I get rid of flashing messages in GNUS for slow connections?
  350.   
  351.   GNUS outputs "NNTP: Reading..." message and then clears them, over and
  352.   over.  In version 3.14.1 there is a variable named nntp-debug-read that
  353.   can help.  Johan Vromans <jv@mh.nl> wrote a fix.  Others have also written
  354.   fixes.
  355.   
  356. 171: Why is catch up slow in Gnews/GNUS?
  357.   
  358.   Because GNUS is marking crosspostings read.  {I think it should do this at
  359.   the time the article is read to spread out the load.  Maybe someone will
  360.   write the code to do this.}
  361.   
  362. 172: Why does GNUS hang for a long time when posting?
  363.   
  364.   David Lawrence <tale@uunet.uu.net> explains:
  365.   
  366.     The problem is almost always interaction between NNTP and C News.  NNTP
  367.     POST asks C News's inews to not background itself but rather hang around
  368.     and give its exit status so it knows whether the post was successful.
  369.     (That wait will on some systems not return the exit status of the
  370.     waited for job is a different sort of problem.)  It ends up taking a
  371.     long time because inews is calling relaynews, which often waits for
  372.     another relaynews to free the lock on the news system so it can file the
  373.     article.
  374.   
  375.     My preferred solution is to change inews to not call relaynews, but
  376.     rather use newsspool.  This loses some error-catching functionality, but
  377.     is for the most part safe as inews will detect a lot of the errors on
  378.     its own.  The C News folks have sped up inews, too, so speed should look
  379.     better to most folks as that update propagates around.
  380.   
  381. 173: Why don't my news postings in GNUS get past the local machine?
  382.   
  383.   Three possible reasons: local distribution, C News date problem (see
  384.   question 174, and the path problem.  This piece of code may fix the path
  385.   problem for you:
  386.   
  387.     (setq gnus-use-generic-path t)
  388.   
  389. 174: Why is the GNUS-generated `Date:' header invalid?
  390.   
  391.   GNUS generates `Date:' headers without time zones.  C-News's `inews'
  392.   doesn't replace it with a valid header, but will generate it if not
  393.   already there.  If it is invalid, the article will not be forwarded
  394.   properly.  Quick fix:
  395.   
  396.     (defun gnus-inews-date () nil)
  397.   
  398.   This is not fixed as of GNUS 3.14.1.
  399.   
  400. 175: Why doesn't GNUS generate the `Lines:' header?
  401.   
  402.   GNUS was written for B news, which would generate the `Lines:' header.  C
  403.   news doesn't.  There is a comment in C news's `inews' that you can
  404.   uncomment to enable this functionality.  Or you can have GNUS generate the
  405.   header, for example:
  406.   
  407.     ;; idea by jbryans@beach.csulb.edu (Jack Bryans)
  408.     (defun add-lines-header ()
  409.       ;; Count the number of lines in the current posting and insert the
  410.       ;; header line Lines into the message.
  411.       (save-excursion
  412.         (goto-char (point-min))
  413.         (if (search-forward "\n\n") ;; ***** I suspect this is wrong *****
  414.           (let ((lines (count-lines (point) (point-max))))
  415.             (forward-line -1)
  416.             (insert-string "Lines: " lines "\n")))))
  417.   
  418.   Mike Williams <mike-w@cs.aukuni.ac.nz> has written something similar.
  419.   
  420.   Ronald Florence <ron@mlfarm.com> has a patch for GNUS that makes it
  421.   calculate the `Lines:' header for incoming articles when necessary that
  422.   works for sites with local news spools.
  423.   
  424.   David Lawrence <tale@uunet.uu.net> says that GNUS 3.14.1 generates Lines
  425.   if gnus-news-system is Cnews.
  426.   
  427. 176: Why do I get "Cannot open load file" "nntp" when compiling GNUS?
  428.   
  429.   Specifically, the error message is this:
  430.   
  431.     Error occurred processing gnus.el: File error (("Cannot open load file" "nntp"))
  432.   
  433.   This means that nntp.el is not in Emacs's load-path, which is easy to
  434.   happen when compiling using the Makefile.
  435.   
  436.   Easiest solution: set EMACSLOADPATH in Makefile (idea from Glenn Gribble
  437.   <glenn@netcom.com>):
  438.   
  439.     EMACSLOADPATH=/usr/local/emacs/lisp:.
  440.     ELC= env EMACSLOADPATH=$(EMACSLOADPATH) emacs -batch -f batch-byte-compile
  441.   
  442.   Another solution, in hack.el put this:
  443.   
  444.     (defun gross-hack () (setq load-path (cons "/directory" load-path)))
  445.   
  446.   Then in Makefile:
  447.   
  448.     ELC= emacs -batch -l hack.el -f gross-hack -f batch-byte-compile
  449.   
  450. 177: How do I kill all articles in GNUS but those matching a pattern?
  451.   
  452.   Example:
  453.   
  454.     ;; kill everything
  455.     (gnus-kill "subject" "" nil nil)
  456.     ;; then restore stuff by our favorite poster
  457.     (gnus-kill "from" "good-guy"
  458.                (function
  459.                 (lambda ()
  460.                   (if (eq ?X (char-after (save-excursion
  461.                                            (beginning-of-line 1)
  462.                                            (point))))
  463.                       (gnus-Subject-clear-mark-forward 1))))
  464.                t)
  465.   
  466.  
  467.  
  468. ----------------------------------------------------------------------
  469. Copyright (C) 1990, 1991, 1992 Joseph Brian Wells
  470. Copyright (C) 1992, 1993 Steven Byrnes
  471.  
  472. This list of frequently asked questions about GNU Emacs with answers
  473. ("FAQ") may be translated into other languages, transformed into other
  474. formats (e.g. Texinfo, Info, WWW, WAIS, etc.), and updated with new
  475. information.  The same conditions apply to any derivative of the FAQ as
  476. apply to the FAQ itself.  Every copy of the FAQ must include this notice
  477. or an approved translation, information on who is currently maintaining
  478. the FAQ and how to contact them (including their e-mail address), and
  479. information on where the latest version of the FAQ is archived (including
  480. FTP information).  The FAQ may be copied and redistributed under these
  481. conditions, except that the FAQ may not be embedded in a larger literary
  482. work unless that work itself allows free copying and redistribution.
  483.