10 * Gnus: (gnus). The newsreader Gnus.
15 @setchapternewpage odd
19 \documentclass[twoside,a4paper,openright,11pt]{book}
20 \usepackage[latin1]{inputenc}
21 \usepackage{pagestyle}
24 \input{gnusconfig.tex}
26 \ifx\pdfoutput\undefined
28 \usepackage[pdftex,bookmarks,colorlinks=true]{hyperref}
36 \newcommand{\gnusversionname}{Oort Gnus v0.16}
37 \newcommand{\gnuschaptername}{}
38 \newcommand{\gnussectionname}{}
40 \newcommand{\gnusbackslash}{/}
42 \newcommand{\gnusref}[1]{``#1'' on page \pageref{#1}}
43 \ifx\pdfoutput\undefined
44 \newcommand{\gnusuref}[1]{\gnustt{#1}}
46 \newcommand{\gnusuref}[1]{\href{#1}{\gnustt{#1}}}
48 \newcommand{\gnusxref}[1]{See ``#1'' on page \pageref{#1}}
49 \newcommand{\gnuspxref}[1]{see ``#1'' on page \pageref{#1}}
51 \newcommand{\gnuskindex}[1]{\index{#1}}
52 \newcommand{\gnusindex}[1]{\index{#1}}
54 \newcommand{\gnustt}[1]{{\gnusselectttfont{}#1}}
55 \newcommand{\gnuscode}[1]{\gnustt{#1}}
56 \newcommand{\gnussamp}[1]{``{\fontencoding{OT1}\gnusselectttfont{}#1}''}
57 \newcommand{\gnuslisp}[1]{\gnustt{#1}}
58 \newcommand{\gnuskbd}[1]{`\gnustt{#1}'}
59 \newcommand{\gnuskey}[1]{`\gnustt{#1}'}
60 \newcommand{\gnusfile}[1]{`\gnustt{#1}'}
61 \newcommand{\gnusdfn}[1]{\textit{#1}}
62 \newcommand{\gnusi}[1]{\textit{#1}}
63 \newcommand{\gnusstrong}[1]{\textbf{#1}}
64 \newcommand{\gnusemph}[1]{\textit{#1}}
65 \newcommand{\gnusvar}[1]{{\fontsize{10pt}{10}\selectfont\textsl{\textsf{#1}}}}
66 \newcommand{\gnussc}[1]{\textsc{#1}}
67 \newcommand{\gnustitle}[1]{{\huge\textbf{#1}}}
68 \newcommand{\gnusversion}[1]{{\small\textit{#1}}}
69 \newcommand{\gnusauthor}[1]{{\large\textbf{#1}}}
70 \newcommand{\gnusresult}[1]{\gnustt{=> #1}}
71 \newcommand{\gnusacronym}[1]{\textit{#1}}
72 \newcommand{\gnusemail}[1]{\textit{#1}}
74 \newcommand{\gnusbullet}{{${\bullet}$}}
75 \newcommand{\gnusdollar}{\$}
76 \newcommand{\gnusampersand}{\&}
77 \newcommand{\gnuspercent}{\%}
78 \newcommand{\gnushash}{\#}
79 \newcommand{\gnushat}{\symbol{"5E}}
80 \newcommand{\gnusunderline}{\symbol{"5F}}
81 \newcommand{\gnusnot}{$\neg$}
82 \newcommand{\gnustilde}{\symbol{"7E}}
83 \newcommand{\gnusless}{{$<$}}
84 \newcommand{\gnusgreater}{{$>$}}
85 \newcommand{\gnusbraceleft}{{$>$}}
86 \newcommand{\gnusbraceright}{{$>$}}
88 \newcommand{\gnushead}{\raisebox{-1cm}{\epsfig{figure=ps/gnus-head,height=1cm}}}
89 \newcommand{\gnusinteresting}{
90 \marginpar[\mbox{}\hfill\gnushead]{\gnushead}
93 \newcommand{\gnuscleardoublepage}{\ifodd\count0\mbox{}\clearpage\thispagestyle{empty}\mbox{}\clearpage\else\clearpage\fi}
95 \newcommand{\gnuspagechapter}[1]{
102 \newcommand{\gnuschapter}[2]{
104 \ifdim \gnusdimen = 0pt\setcounter{page}{1}\pagestyle{gnus}\pagenumbering{arabic} \gnusdimen 1pt\fi
106 \renewcommand{\gnussectionname}{}
107 \renewcommand{\gnuschaptername}{#2}
108 \thispagestyle{empty}
110 \begin{picture}(500,500)(0,0)
111 \put(480,350){\makebox(0,0)[tr]{#1}}
112 \put(40,300){\makebox(500,50)[bl]{{\Huge\bf{#2}}}}
117 \newcommand{\gnusfigure}[3]{
119 \mbox{}\ifodd\count0\hspace*{-0.8cm}\else\hspace*{-3cm}\fi\begin{picture}(440,#2)
126 \newcommand{\gnusicon}[1]{
127 \marginpar[\mbox{}\hfill\raisebox{-1.5cm}{\epsfig{figure=ps/#1-up,height=1.5cm}}]{\raisebox{-1cm}{\epsfig{figure=ps/#1-up,height=1cm}}}
130 \newcommand{\gnuspicon}[1]{
131 \margindex{\epsfig{figure=#1,width=2cm}}
134 \newcommand{\gnusxface}[2]{
135 \margindex{\epsfig{figure=#1,width=1cm}\epsfig{figure=#2,width=1cm}}
138 \newcommand{\gnussmiley}[2]{
139 \margindex{\makebox[2cm]{\hfill\epsfig{figure=#1,width=0.5cm}\hfill\epsfig{figure=#2,width=0.5cm}\hfill}}
142 \newcommand{\gnusitemx}[1]{\mbox{}\vspace*{-\itemsep}\vspace*{-\parsep}\item#1}
144 \newcommand{\gnussection}[1]{
145 \renewcommand{\gnussectionname}{#1}
149 \newenvironment{codelist}%
154 \newenvironment{kbdlist}%
160 \newenvironment{dfnlist}%
165 \newenvironment{stronglist}%
170 \newenvironment{samplist}%
175 \newenvironment{varlist}%
180 \newenvironment{emphlist}%
185 \newlength\gnusheadtextwidth
186 \setlength{\gnusheadtextwidth}{\headtextwidth}
187 \addtolength{\gnusheadtextwidth}{1cm}
189 \newpagestyle{gnuspreamble}%
194 \hspace*{-0.23cm}\underline{\makebox[\gnusheadtextwidth]{\mbox{}}\textbf{\hfill\roman{page}}}
198 \hspace*{-3.25cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\roman{page}\hfill\mbox{}}}
207 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
209 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
214 \newpagestyle{gnusindex}%
219 \hspace*{-0.23cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\gnuschaptername\hfill\arabic{page}}}}
223 \hspace*{-3.25cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{page}\hfill\gnuschaptername}}}
231 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
233 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
243 \makebox[12cm]{\hspace*{3.1cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{chapter}.\arabic{section}} \textbf{\gnussectionname\hfill\arabic{page}}}}}
247 \makebox[12cm]{\hspace*{-2.95cm}\underline{\makebox[\gnusheadtextwidth]{\textbf{\arabic{page}\hfill\gnuschaptername}}}}
255 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
257 \raisebox{-0.5cm}{\epsfig{figure=ps/gnus-big-logo,height=1cm}}
262 \pagenumbering{roman}
263 \pagestyle{gnuspreamble}
273 %\addtolength{\oddsidemargin}{-5cm}
274 %\addtolength{\evensidemargin}{-5cm}
276 \addtolength{\textheight}{2cm}
278 \gnustitle{\gnustitlename}\hfill\gnusversion{\gnusversionname}\\
281 \hspace*{0cm}\epsfig{figure=ps/gnus-big-logo,height=15cm}
284 \gnusauthor{by Lars Magne Ingebrigtsen}
291 \thispagestyle{empty}
293 Copyright \copyright{} 1995, 1996, 1997, 1998, 1999, 2000, 2001,
295 Free Software Foundation, Inc.
298 Permission is granted to copy, distribute and/or modify this document
299 under the terms of the GNU Free Documentation License, Version 1.1 or
300 any later version published by the Free Software Foundation; with no
301 Invariant Sections, with the Front-Cover texts being ``A GNU
302 Manual'', and with the Back-Cover Texts as in (a) below. A copy of the
303 license is included in the section entitled ``GNU Free Documentation
304 License'' in the Emacs manual.
306 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
307 this GNU Manual, like GNU software. Copies published by the Free
308 Software Foundation raise funds for GNU development.''
310 This document is part of a collection distributed under the GNU Free
311 Documentation License. If you want to distribute this document
312 separately from the collection, you can do so by adding a copy of the
313 license to the document, as described in section 6 of the license.
321 This file documents Gnus, the GNU Emacs newsreader.
323 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
324 Free Software Foundation, Inc.
326 Permission is granted to copy, distribute and/or modify this document
327 under the terms of the GNU Free Documentation License, Version 1.1 or
328 any later version published by the Free Software Foundation; with the
329 Invariant Sections being none, with the Front-Cover texts being ``A GNU
330 Manual'', and with the Back-Cover Texts as in (a) below. A copy of the
331 license is included in the section entitled ``GNU Free Documentation
332 License'' in the Emacs manual.
334 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
335 this GNU Manual, like GNU software. Copies published by the Free
336 Software Foundation raise funds for GNU development.''
338 This document is part of a collection distributed under the GNU Free
339 Documentation License. If you want to distribute this document
340 separately from the collection, you can do so by adding a copy of the
341 license to the document, as described in section 6 of the license.
349 @author by Lars Magne Ingebrigtsen
352 @vskip 0pt plus 1filll
353 Copyright @copyright{} 1995, 1996, 1997, 1998, 1999, 2000, 2001,
355 Free Software Foundation, Inc.
357 Permission is granted to copy, distribute and/or modify this document
358 under the terms of the GNU Free Documentation License, Version 1.1 or
359 any later version published by the Free Software Foundation; with no
360 Invariant Sections, with the Front-Cover texts being ``A GNU
361 Manual'', and with the Back-Cover Texts as in (a) below. A copy of the
362 license is included in the section entitled ``GNU Free Documentation
363 License'' in the Emacs manual.
365 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
366 this GNU Manual, like GNU software. Copies published by the Free
367 Software Foundation raise funds for GNU development.''
369 This document is part of a collection distributed under the GNU Free
370 Documentation License. If you want to distribute this document
371 separately from the collection, you can do so by adding a copy of the
372 license to the document, as described in section 6 of the license.
381 @top The Gnus Newsreader
385 You can read news (and mail) from within Emacs by using Gnus. The news
386 can be gotten by any nefarious means you can think of---@sc{nntp}, local
387 spool or your mbox file. All at the same time, if you want to push your
390 This manual corresponds to Oort Gnus v0.16.
401 Gnus is the advanced, self-documenting, customizable, extensible
402 unreal-time newsreader for GNU Emacs.
404 Oops. That sounds oddly familiar, so let's start over again to avoid
405 being accused of plagiarism:
407 Gnus is a message-reading laboratory. It will let you look at just
408 about anything as if it were a newsgroup. You can read mail with it,
409 you can browse directories with it, you can @code{ftp} with it---you
410 can even read news with it!
412 Gnus tries to empower people who read news the same way Emacs empowers
413 people who edit text. Gnus sets no limits to what the user should be
414 allowed to do. Users are encouraged to extend Gnus to make it behave
415 like they want it to behave. A program should not control people;
416 people should be empowered to do what they want by using (or abusing)
422 * Starting Up:: Finding news can be a pain.
423 * Group Buffer:: Selecting, subscribing and killing groups.
424 * Summary Buffer:: Reading, saving and posting articles.
425 * Article Buffer:: Displaying and handling articles.
426 * Composing Messages:: Information on sending mail and news.
427 * Select Methods:: Gnus reads all messages from various select methods.
428 * Scoring:: Assigning values to articles.
429 * Various:: General purpose settings.
430 * The End:: Farewell and goodbye.
431 * Appendices:: Terminology, Emacs intro, FAQ, History, Internals.
432 * Index:: Variable, function and concept index.
433 * Key Index:: Key Index.
435 Other related manuals
437 * Message:(message). Composing messages.
438 * Emacs-MIME:(emacs-mime). Composing messages; MIME-specific parts.
439 * Sieve:(sieve). Managing Sieve scripts in Emacs.
440 * PGG:(pgg). PGP/MIME with Gnus.
443 --- The Detailed Node Listing ---
447 * Finding the News:: Choosing a method for getting news.
448 * The First Time:: What does Gnus do the first time you start it?
449 * The Server is Down:: How can I read my mail then?
450 * Slave Gnusae:: You can have more than one Gnus active at a time.
451 * Fetching a Group:: Starting Gnus just to read a group.
452 * New Groups:: What is Gnus supposed to do with new groups?
453 * Changing Servers:: You may want to move from one server to another.
454 * Startup Files:: Those pesky startup files---@file{.newsrc}.
455 * Auto Save:: Recovering from a crash.
456 * The Active File:: Reading the active file over a slow line Takes Time.
457 * Startup Variables:: Other variables you might change.
461 * Checking New Groups:: Determining what groups are new.
462 * Subscription Methods:: What Gnus should do with new groups.
463 * Filtering New Groups:: Making Gnus ignore certain new groups.
467 * Group Buffer Format:: Information listed and how you can change it.
468 * Group Maneuvering:: Commands for moving in the group buffer.
469 * Selecting a Group:: Actually reading news.
470 * Subscription Commands:: Unsubscribing, killing, subscribing.
471 * Group Data:: Changing the info for a group.
472 * Group Levels:: Levels? What are those, then?
473 * Group Score:: A mechanism for finding out what groups you like.
474 * Marking Groups:: You can mark groups for later processing.
475 * Foreign Groups:: Creating and editing groups.
476 * Group Parameters:: Each group may have different parameters set.
477 * Listing Groups:: Gnus can list various subsets of the groups.
478 * Sorting Groups:: Re-arrange the group order.
479 * Group Maintenance:: Maintaining a tidy @file{.newsrc} file.
480 * Browse Foreign Server:: You can browse a server. See what it has to offer.
481 * Exiting Gnus:: Stop reading news and get some work done.
482 * Group Topics:: A folding group mode divided into topics.
483 * Misc Group Stuff:: Other stuff that you can to do.
487 * Group Line Specification:: Deciding how the group buffer is to look.
488 * Group Modeline Specification:: The group buffer modeline.
489 * Group Highlighting:: Having nice colors in the group buffer.
493 * Topic Commands:: Interactive E-Z commands.
494 * Topic Variables:: How to customize the topics the Lisp Way.
495 * Topic Sorting:: Sorting each topic individually.
496 * Topic Topology:: A map of the world.
497 * Topic Parameters:: Parameters that apply to all groups in a topic.
501 * Scanning New Messages:: Asking Gnus to see whether new messages have arrived.
502 * Group Information:: Information and help on groups and Gnus.
503 * Group Timestamp:: Making Gnus keep track of when you last read a group.
504 * File Commands:: Reading and writing the Gnus files.
505 * Sieve Commands:: Managing Sieve scripts.
509 * Summary Buffer Format:: Deciding how the summary buffer is to look.
510 * Summary Maneuvering:: Moving around the summary buffer.
511 * Choosing Articles:: Reading articles.
512 * Paging the Article:: Scrolling the current article.
513 * Reply Followup and Post:: Posting articles.
514 * Delayed Articles:: Send articles at a later time.
515 * Marking Articles:: Marking articles as read, expirable, etc.
516 * Limiting:: You can limit the summary buffer.
517 * Threading:: How threads are made.
518 * Sorting the Summary Buffer:: How articles and threads are sorted.
519 * Asynchronous Fetching:: Gnus might be able to pre-fetch articles.
520 * Article Caching:: You may store articles in a cache.
521 * Persistent Articles:: Making articles expiry-resistant.
522 * Article Backlog:: Having already read articles hang around.
523 * Saving Articles:: Ways of customizing article saving.
524 * Decoding Articles:: Gnus can treat series of (uu)encoded articles.
525 * Article Treatment:: The article buffer can be mangled at will.
526 * MIME Commands:: Doing MIMEy things with the articles.
527 * Charsets:: Character set issues.
528 * Article Commands:: Doing various things with the article buffer.
529 * Summary Sorting:: Sorting the summary buffer in various ways.
530 * Finding the Parent:: No child support? Get the parent.
531 * Alternative Approaches:: Reading using non-default summaries.
532 * Tree Display:: A more visual display of threads.
533 * Mail Group Commands:: Some commands can only be used in mail groups.
534 * Various Summary Stuff:: What didn't fit anywhere else.
535 * Exiting the Summary Buffer:: Returning to the Group buffer,
536 or reselecting the current group.
537 * Crosspost Handling:: How crossposted articles are dealt with.
538 * Duplicate Suppression:: An alternative when crosspost handling fails.
539 * Security:: Decrypt and Verify.
540 * Mailing List:: Mailing list minor mode.
542 Summary Buffer Format
544 * Summary Buffer Lines:: You can specify how summary lines should look.
545 * To From Newsgroups:: How to not display your own name.
546 * Summary Buffer Mode Line:: You can say how the mode line should look.
547 * Summary Highlighting:: Making the summary buffer all pretty and nice.
551 * Choosing Commands:: Commands for choosing articles.
552 * Choosing Variables:: Variables that influence these commands.
554 Reply, Followup and Post
556 * Summary Mail Commands:: Sending mail.
557 * Summary Post Commands:: Sending news.
558 * Summary Message Commands:: Other Message-related commands.
559 * Canceling and Superseding::
563 * Unread Articles:: Marks for unread articles.
564 * Read Articles:: Marks for read articles.
565 * Other Marks:: Marks that do not affect readedness.
567 * Generic Marking Commands::
568 * Setting Process Marks::
572 * Setting Marks:: How to set and remove marks.
573 * Generic Marking Commands:: How to customize the marking.
574 * Setting Process Marks:: How to mark articles for later processing.
578 * Customizing Threading:: Variables you can change to affect the threading.
579 * Thread Commands:: Thread based commands in the summary buffer.
581 Customizing Threading
583 * Loose Threads:: How Gnus gathers loose threads into bigger threads.
584 * Filling In Threads:: Making the threads displayed look fuller.
585 * More Threading:: Even more variables for fiddling with threads.
586 * Low-Level Threading:: You thought it was over@dots{} but you were wrong!
590 * Uuencoded Articles:: Uudecode articles.
591 * Shell Archives:: Unshar articles.
592 * PostScript Files:: Split PostScript.
593 * Other Files:: Plain save and binhex.
594 * Decoding Variables:: Variables for a happy decoding.
595 * Viewing Files:: You want to look at the result of the decoding?
599 * Rule Variables:: Variables that say how a file is to be viewed.
600 * Other Decode Variables:: Other decode variables.
601 * Uuencoding and Posting:: Variables for customizing uuencoding.
605 * Article Highlighting:: You want to make the article look like fruit salad.
606 * Article Fontisizing:: Making emphasized text look nice.
607 * Article Hiding:: You also want to make certain info go away.
608 * Article Washing:: Lots of way-neat functions to make life better.
609 * Article Header:: Doing various header transformations.
610 * Article Buttons:: Click on URLs, Message-IDs, addresses and the like.
611 * Article Date:: Grumble, UT!
612 * Article Display:: Display various stuff---X-Face, Picons, Smileys
613 * Article Signature:: What is a signature?
614 * Article Miscellania:: Various other stuff.
616 Alternative Approaches
618 * Pick and Read:: First mark articles and then read them.
619 * Binary Groups:: Auto-decode all articles.
621 Various Summary Stuff
623 * Summary Group Information:: Information oriented commands.
624 * Searching for Articles:: Multiple article commands.
625 * Summary Generation Commands::
626 * Really Various Summary Commands:: Those pesky non-conformant commands.
630 * Hiding Headers:: Deciding what headers should be displayed.
631 * Using MIME:: Pushing articles through @sc{mime} before reading them.
632 * Customizing Articles:: Tailoring the look of the articles.
633 * Article Keymap:: Keystrokes available in the article buffer.
634 * Misc Article:: Other stuff.
638 * Mail:: Mailing and replying.
639 * Posting Server:: What server should you post and mail via?
640 * Mail and Post:: Mailing and posting at the same time.
641 * Archived Messages:: Where Gnus stores the messages you've sent.
642 * Posting Styles:: An easier way to specify who you are.
643 * Drafts:: Postponing messages and rejected messages.
644 * Rejected Articles:: What happens if the server doesn't like your article?
645 * Signing and encrypting:: How to compose secure messages.
649 * Server Buffer:: Making and editing virtual servers.
650 * Getting News:: Reading USENET news with Gnus.
651 * Getting Mail:: Reading your personal mail with Gnus.
652 * Browsing the Web:: Getting messages from a plethora of Web sources.
653 * IMAP:: Using Gnus as a @sc{imap} client.
654 * Other Sources:: Reading directories, files, SOUP packets.
655 * Combined Groups:: Combining groups into one group.
656 * Gnus Unplugged:: Reading news and mail offline.
660 * Server Buffer Format:: You can customize the look of this buffer.
661 * Server Commands:: Commands to manipulate servers.
662 * Example Methods:: Examples server specifications.
663 * Creating a Virtual Server:: An example session.
664 * Server Variables:: Which variables to set.
665 * Servers and Methods:: You can use server names as select methods.
666 * Unavailable Servers:: Some servers you try to contact may be down.
670 * NNTP:: Reading news from an @sc{nntp} server.
671 * News Spool:: Reading news from the local spool.
675 * Direct Functions:: Connecting directly to the server.
676 * Indirect Functions:: Connecting indirectly to the server.
677 * Common Variables:: Understood by several connection functions.
681 * Mail in a Newsreader:: Important introductory notes.
682 * Getting Started Reading Mail:: A simple cookbook example.
683 * Splitting Mail:: How to create mail groups.
684 * Mail Sources:: How to tell Gnus where to get mail from.
685 * Mail Back End Variables:: Variables for customizing mail handling.
686 * Fancy Mail Splitting:: Gnus can do hairy splitting of incoming mail.
687 * Group Mail Splitting:: Use group customize to drive mail splitting.
688 * Incorporating Old Mail:: What about the old mail you have?
689 * Expiring Mail:: Getting rid of unwanted mail.
690 * Washing Mail:: Removing gruft from the mail you get.
691 * Duplicates:: Dealing with duplicated mail.
692 * Not Reading Mail:: Using mail back ends for reading other files.
693 * Choosing a Mail Back End:: Gnus can read a variety of mail formats.
697 * Mail Source Specifiers:: How to specify what a mail source is.
698 * Mail Source Customization:: Some variables that influence things.
699 * Fetching Mail:: Using the mail source specifiers.
701 Choosing a Mail Back End
703 * Unix Mail Box:: Using the (quite) standard Un*x mbox.
704 * Rmail Babyl:: Emacs programs use the rmail babyl format.
705 * Mail Spool:: Store your mail in a private spool?
706 * MH Spool:: An mhspool-like back end.
707 * Maildir:: Another one-file-per-message format.
708 * Mail Folders:: Having one file for each group.
709 * Comparing Mail Back Ends:: An in-depth looks at pros and cons.
714 * Web Searches:: Creating groups from articles that match a string.
715 * Slashdot:: Reading the Slashdot comments.
716 * Ultimate:: The Ultimate Bulletin Board systems.
717 * Web Archive:: Reading mailing list archived on web.
718 * RSS:: Reading RDF site summary.
719 * Customizing w3:: Doing stuff to Emacs/w3 from Gnus.
723 * Splitting in IMAP:: Splitting mail with nnimap.
724 * Expiring in IMAP:: Expiring mail with nnimap.
725 * Editing IMAP ACLs:: Limiting/enabling other users access to a mailbox.
726 * Expunging mailboxes:: Equivalent of a ``compress mailbox'' button.
727 * A note on namespaces:: How to (not) use IMAP namespace in Gnus.
731 * Directory Groups:: You can read a directory as if it was a newsgroup.
732 * Anything Groups:: Dired? Who needs dired?
733 * Document Groups:: Single files can be the basis of a group.
734 * SOUP:: Reading @sc{soup} packets ``offline''.
735 * Mail-To-News Gateways:: Posting articles via mail-to-news gateways.
739 * Document Server Internals:: How to add your own document types.
743 * SOUP Commands:: Commands for creating and sending @sc{soup} packets
744 * SOUP Groups:: A back end for reading @sc{soup} packets.
745 * SOUP Replies:: How to enable @code{nnsoup} to take over mail and news.
749 * Virtual Groups:: Combining articles from many groups.
750 * Kibozed Groups:: Looking through parts of the newsfeed for articles.
754 * Agent Basics:: How it all is supposed to work.
755 * Agent Categories:: How to tell the Gnus Agent what to download.
756 * Agent Commands:: New commands for all the buffers.
757 * Agent as Cache:: The Agent is a big cache too.
758 * Agent Expiry:: How to make old articles go away.
759 * Agent Regeneration:: How to recover from lost connections and other accidents.
760 * Agent and IMAP:: How to use the Agent with IMAP.
761 * Outgoing Messages:: What happens when you post/mail something?
762 * Agent Variables:: Customizing is fun.
763 * Example Setup:: An example @file{.gnus.el} file for offline people.
764 * Batching Agents:: How to fetch news from a @code{cron} job.
765 * Agent Caveats:: What you think it'll do and what it does.
769 * Category Syntax:: What a category looks like.
770 * Category Buffer:: A buffer for maintaining categories.
771 * Category Variables:: Customize'r'Us.
775 * Group Agent Commands:: Configure groups and fetch their contents.
776 * Summary Agent Commands:: Manually select then fetch specific articles.
777 * Server Agent Commands:: Select the servers that are supported by the agent.
781 * Summary Score Commands:: Adding score entries for the current group.
782 * Group Score Commands:: General score commands.
783 * Score Variables:: Customize your scoring. (My, what terminology).
784 * Score File Format:: What a score file may contain.
785 * Score File Editing:: You can edit score files by hand as well.
786 * Adaptive Scoring:: Big Sister Gnus knows what you read.
787 * Home Score File:: How to say where new score entries are to go.
788 * Followups To Yourself:: Having Gnus notice when people answer you.
789 * Scoring On Other Headers:: Scoring on non-standard headers.
790 * Scoring Tips:: How to score effectively.
791 * Reverse Scoring:: That problem child of old is not problem.
792 * Global Score Files:: Earth-spanning, ear-splitting score files.
793 * Kill Files:: They are still here, but they can be ignored.
794 * Converting Kill Files:: Translating kill files to score files.
795 * GroupLens:: Getting predictions on what you like to read.
796 * Advanced Scoring:: Using logical expressions to build score rules.
797 * Score Decays:: It can be useful to let scores wither away.
801 * Using GroupLens:: How to make Gnus use GroupLens.
802 * Rating Articles:: Letting GroupLens know how you rate articles.
803 * Displaying Predictions:: Displaying predictions given by GroupLens.
804 * GroupLens Variables:: Customizing GroupLens.
808 * Advanced Scoring Syntax:: A definition.
809 * Advanced Scoring Examples:: What they look like.
810 * Advanced Scoring Tips:: Getting the most out of it.
814 * Process/Prefix:: A convention used by many treatment commands.
815 * Interactive:: Making Gnus ask you many questions.
816 * Symbolic Prefixes:: How to supply some Gnus functions with options.
817 * Formatting Variables:: You can specify what buffers should look like.
818 * Window Layout:: Configuring the Gnus buffer windows.
819 * Faces and Fonts:: How to change how faces look.
820 * Compilation:: How to speed Gnus up.
821 * Mode Lines:: Displaying information in the mode lines.
822 * Highlighting and Menus:: Making buffers look all nice and cozy.
823 * Buttons:: Get tendinitis in ten easy steps!
824 * Daemons:: Gnus can do things behind your back.
825 * NoCeM:: How to avoid spam and other fatty foods.
826 * Undo:: Some actions can be undone.
827 * Predicate Specifiers:: Specifying predicates.
828 * Moderation:: What to do if you're a moderator.
829 * Image Enhancements:: Modern versions of Emacs/XEmacs can display images.
830 * Fuzzy Matching:: What's the big fuzz?
831 * Thwarting Email Spam:: A how-to on avoiding unsolicited commercial email.
832 * Various Various:: Things that are really various.
836 * Formatting Basics:: A formatting variable is basically a format string.
837 * Mode Line Formatting:: Some rules about mode line formatting variables.
838 * Advanced Formatting:: Modifying output in various ways.
839 * User-Defined Specs:: Having Gnus call your own functions.
840 * Formatting Fonts:: Making the formatting look colorful and nice.
841 * Positioning Point:: Moving point to a position after an operation.
842 * Tabulation:: Tabulating your output.
843 * Wide Characters:: Dealing with wide characters.
847 * Picons:: How to display pictures of what you're reading.
848 * Smileys:: Show all those happy faces the way they were meant to be shown.
849 * X-Face:: Display a funky, teensy black-and-white image.
850 * XVarious:: Other XEmacsy Gnusey variables.
854 * The problem of spam:: Some background, and some solutions
855 * Anti-Spam Basics:: Simple steps to reduce the amount of spam.
856 * SpamAssassin:: How to use external anti-spam tools.
857 * Hashcash:: Reduce spam by burning CPU time.
858 * Filtering Spam Using The Spam ELisp Package::
859 * Filtering Spam Using Statistics with spam-stat::
863 * XEmacs:: Requirements for installing under XEmacs.
864 * History:: How Gnus got where it is today.
865 * On Writing Manuals:: Why this is not a beginner's guide.
866 * Terminology:: We use really difficult, like, words here.
867 * Customization:: Tailoring Gnus to your needs.
868 * Troubleshooting:: What you might try if things do not work.
869 * Gnus Reference Guide:: Rilly, rilly technical stuff.
870 * Emacs for Heathens:: A short introduction to Emacsian terms.
871 * Frequently Asked Questions::
875 * Gnus Versions:: What Gnus versions have been released.
876 * Other Gnus Versions:: Other Gnus versions that also have been released.
877 * Why?:: What's the point of Gnus?
878 * Compatibility:: Just how compatible is Gnus with @sc{gnus}?
879 * Conformity:: Gnus tries to conform to all standards.
880 * Emacsen:: Gnus can be run on a few modern Emacsen.
881 * Gnus Development:: How Gnus is developed.
882 * Contributors:: Oodles of people.
883 * New Features:: Pointers to some of the new stuff in Gnus.
887 * ding Gnus:: New things in Gnus 5.0/5.1, the first new Gnus.
888 * September Gnus:: The Thing Formally Known As Gnus 5.2/5.3.
889 * Red Gnus:: Third time best---Gnus 5.4/5.5.
890 * Quassia Gnus:: Two times two is four, or Gnus 5.6/5.7.
891 * Pterodactyl Gnus:: Pentad also starts with P, AKA Gnus 5.8/5.9.
895 * Slow/Expensive Connection:: You run a local Emacs and get the news elsewhere.
896 * Slow Terminal Connection:: You run a remote Emacs.
897 * Little Disk Space:: You feel that having large setup files is icky.
898 * Slow Machine:: You feel like buying a faster machine.
902 * Gnus Utility Functions:: Common functions and variable to use.
903 * Back End Interface:: How Gnus communicates with the servers.
904 * Score File Syntax:: A BNF definition of the score file standard.
905 * Headers:: How Gnus stores headers internally.
906 * Ranges:: A handy format for storing mucho numbers.
907 * Group Info:: The group info format.
908 * Extended Interactive:: Symbolic prefixes and stuff.
909 * Emacs/XEmacs Code:: Gnus can be run under all modern Emacsen.
910 * Various File Formats:: Formats of files that Gnus use.
914 * Required Back End Functions:: Functions that must be implemented.
915 * Optional Back End Functions:: Functions that need not be implemented.
916 * Error Messaging:: How to get messages and report errors.
917 * Writing New Back Ends:: Extending old back ends.
918 * Hooking New Back Ends Into Gnus:: What has to be done on the Gnus end.
919 * Mail-like Back Ends:: Some tips on mail back ends.
923 * Active File Format:: Information on articles and groups available.
924 * Newsgroups File Format:: Group descriptions.
928 * Keystrokes:: Entering text and executing commands.
929 * Emacs Lisp:: The built-in Emacs programming language.
935 @chapter Starting Gnus
940 If your system administrator has set things up properly, starting Gnus
941 and reading news is extremely easy---you just type @kbd{M-x gnus} in
944 @findex gnus-other-frame
945 @kindex M-x gnus-other-frame
946 If you want to start Gnus in a different frame, you can use the command
947 @kbd{M-x gnus-other-frame} instead.
949 If things do not go smoothly at startup, you have to twiddle some
950 variables in your @file{~/.gnus} file. This file is similar to
951 @file{~/.emacs}, but is read when gnus starts.
953 If you puzzle at any terms used in this manual, please refer to the
954 terminology section (@pxref{Terminology}).
957 * Finding the News:: Choosing a method for getting news.
958 * The First Time:: What does Gnus do the first time you start it?
959 * The Server is Down:: How can I read my mail then?
960 * Slave Gnusae:: You can have more than one Gnus active at a time.
961 * Fetching a Group:: Starting Gnus just to read a group.
962 * New Groups:: What is Gnus supposed to do with new groups?
963 * Changing Servers:: You may want to move from one server to another.
964 * Startup Files:: Those pesky startup files---@file{.newsrc}.
965 * Auto Save:: Recovering from a crash.
966 * The Active File:: Reading the active file over a slow line Takes Time.
967 * Startup Variables:: Other variables you might change.
971 @node Finding the News
972 @section Finding the News
975 @vindex gnus-select-method
977 The @code{gnus-select-method} variable says where Gnus should look for
978 news. This variable should be a list where the first element says
979 @dfn{how} and the second element says @dfn{where}. This method is your
980 native method. All groups not fetched with this method are
983 For instance, if the @samp{news.somewhere.edu} @sc{nntp} server is where
984 you want to get your daily dosage of news from, you'd say:
987 (setq gnus-select-method '(nntp "news.somewhere.edu"))
990 If you want to read directly from the local spool, say:
993 (setq gnus-select-method '(nnspool ""))
996 If you can use a local spool, you probably should, as it will almost
997 certainly be much faster. But do not use the local spool if your
998 server is running Leafnode; in this case, use @code{(nntp "localhost")}.
1000 @vindex gnus-nntpserver-file
1002 @cindex @sc{nntp} server
1003 If this variable is not set, Gnus will take a look at the
1004 @code{NNTPSERVER} environment variable. If that variable isn't set,
1005 Gnus will see whether @code{gnus-nntpserver-file}
1006 (@file{/etc/nntpserver} by default) has any opinions on the matter. If
1007 that fails as well, Gnus will try to use the machine running Emacs as an @sc{nntp} server. That's a long shot, though.
1009 @vindex gnus-nntp-server
1010 If @code{gnus-nntp-server} is set, this variable will override
1011 @code{gnus-select-method}. You should therefore set
1012 @code{gnus-nntp-server} to @code{nil}, which is what it is by default.
1014 @vindex gnus-secondary-servers
1015 @vindex gnus-nntp-server
1016 You can also make Gnus prompt you interactively for the name of an
1017 @sc{nntp} server. If you give a non-numerical prefix to @code{gnus}
1018 (i.e., @kbd{C-u M-x gnus}), Gnus will let you choose between the servers
1019 in the @code{gnus-secondary-servers} list (if any). You can also just
1020 type in the name of any server you feel like visiting. (Note that this
1021 will set @code{gnus-nntp-server}, which means that if you then @kbd{M-x
1022 gnus} later in the same Emacs session, Gnus will contact the same
1025 @findex gnus-group-browse-foreign-server
1027 However, if you use one @sc{nntp} server regularly and are just
1028 interested in a couple of groups from a different server, you would be
1029 better served by using the @kbd{B} command in the group buffer. It will
1030 let you have a look at what groups are available, and you can subscribe
1031 to any of the groups you want to. This also makes @file{.newsrc}
1032 maintenance much tidier. @xref{Foreign Groups}.
1034 @vindex gnus-secondary-select-methods
1036 A slightly different approach to foreign groups is to set the
1037 @code{gnus-secondary-select-methods} variable. The select methods
1038 listed in this variable are in many ways just as native as the
1039 @code{gnus-select-method} server. They will also be queried for active
1040 files during startup (if that's required), and new newsgroups that
1041 appear on these servers will be subscribed (or not) just as native
1044 For instance, if you use the @code{nnmbox} back end to read your mail,
1045 you would typically set this variable to
1048 (setq gnus-secondary-select-methods '((nnmbox "")))
1052 @node The First Time
1053 @section The First Time
1054 @cindex first time usage
1056 If no startup files exist, Gnus will try to determine what groups should
1057 be subscribed by default.
1059 @vindex gnus-default-subscribed-newsgroups
1060 If the variable @code{gnus-default-subscribed-newsgroups} is set, Gnus
1061 will subscribe you to just those groups in that list, leaving the rest
1062 killed. Your system administrator should have set this variable to
1065 Since she hasn't, Gnus will just subscribe you to a few arbitrarily
1066 picked groups (i.e., @samp{*.newusers}). (@dfn{Arbitrary} is defined
1067 here as @dfn{whatever Lars thinks you should read}.)
1069 You'll also be subscribed to the Gnus documentation group, which should
1070 help you with most common problems.
1072 If @code{gnus-default-subscribed-newsgroups} is @code{t}, Gnus will just
1073 use the normal functions for handling new groups, and not do anything
1077 @node The Server is Down
1078 @section The Server is Down
1079 @cindex server errors
1081 If the default server is down, Gnus will understandably have some
1082 problems starting. However, if you have some mail groups in addition to
1083 the news groups, you may want to start Gnus anyway.
1085 Gnus, being the trusting sort of program, will ask whether to proceed
1086 without a native select method if that server can't be contacted. This
1087 will happen whether the server doesn't actually exist (i.e., you have
1088 given the wrong address) or the server has just momentarily taken ill
1089 for some reason or other. If you decide to continue and have no foreign
1090 groups, you'll find it difficult to actually do anything in the group
1091 buffer. But, hey, that's your problem. Blllrph!
1093 @findex gnus-no-server
1094 @kindex M-x gnus-no-server
1096 If you know that the server is definitely down, or you just want to read
1097 your mail without bothering with the server at all, you can use the
1098 @code{gnus-no-server} command to start Gnus. That might come in handy
1099 if you're in a hurry as well. This command will not attempt to contact
1100 your primary server---instead, it will just activate all groups on level
1101 1 and 2. (You should preferably keep no native groups on those two
1102 levels.) Also @pxref{Group Levels}.
1106 @section Slave Gnusae
1109 You might want to run more than one Emacs with more than one Gnus at the
1110 same time. If you are using different @file{.newsrc} files (e.g., if you
1111 are using the two different Gnusae to read from two different servers),
1112 that is no problem whatsoever. You just do it.
1114 The problem appears when you want to run two Gnusae that use the same
1115 @file{.newsrc} file.
1117 To work around that problem some, we here at the Think-Tank at the Gnus
1118 Towers have come up with a new concept: @dfn{Masters} and
1119 @dfn{slaves}. (We have applied for a patent on this concept, and have
1120 taken out a copyright on those words. If you wish to use those words in
1121 conjunction with each other, you have to send $1 per usage instance to
1122 me. Usage of the patent (@dfn{Master/Slave Relationships In Computer
1123 Applications}) will be much more expensive, of course.)
1126 Anyway, you start one Gnus up the normal way with @kbd{M-x gnus} (or
1127 however you do it). Each subsequent slave Gnusae should be started with
1128 @kbd{M-x gnus-slave}. These slaves won't save normal @file{.newsrc}
1129 files, but instead save @dfn{slave files} that contain information only
1130 on what groups have been read in the slave session. When a master Gnus
1131 starts, it will read (and delete) these slave files, incorporating all
1132 information from them. (The slave files will be read in the sequence
1133 they were created, so the latest changes will have precedence.)
1135 Information from the slave files has, of course, precedence over the
1136 information in the normal (i.e., master) @file{.newsrc} file.
1138 If the @file{.newsrc*} files have not been saved in the master when the
1139 slave starts, you may be prompted as to whether to read an auto-save
1140 file. If you answer ``yes'', the unsaved changes to the master will be
1141 incorporated into the slave. If you answer ``no'', the slave may see some
1142 messages as unread that have been read in the master.
1144 @node Fetching a Group
1145 @section Fetching a Group
1146 @cindex fetching a group
1148 @findex gnus-fetch-group
1149 It is sometimes convenient to be able to just say ``I want to read this
1150 group and I don't care whether Gnus has been started or not''. This is
1151 perhaps more useful for people who write code than for users, but the
1152 command @code{gnus-fetch-group} provides this functionality in any case.
1153 It takes the group name as a parameter.
1159 @cindex subscription
1161 @vindex gnus-check-new-newsgroups
1162 If you are satisfied that you really never want to see any new groups,
1163 you can set @code{gnus-check-new-newsgroups} to @code{nil}. This will
1164 also save you some time at startup. Even if this variable is
1165 @code{nil}, you can always subscribe to the new groups just by pressing
1166 @kbd{U} in the group buffer (@pxref{Group Maintenance}). This variable
1167 is @code{ask-server} by default. If you set this variable to
1168 @code{always}, then Gnus will query the back ends for new groups even
1169 when you do the @kbd{g} command (@pxref{Scanning New Messages}).
1172 * Checking New Groups:: Determining what groups are new.
1173 * Subscription Methods:: What Gnus should do with new groups.
1174 * Filtering New Groups:: Making Gnus ignore certain new groups.
1178 @node Checking New Groups
1179 @subsection Checking New Groups
1181 Gnus normally determines whether a group is new or not by comparing the
1182 list of groups from the active file(s) with the lists of subscribed and
1183 dead groups. This isn't a particularly fast method. If
1184 @code{gnus-check-new-newsgroups} is @code{ask-server}, Gnus will ask the
1185 server for new groups since the last time. This is both faster and
1186 cheaper. This also means that you can get rid of the list of killed
1187 groups altogether, so you may set @code{gnus-save-killed-list} to
1188 @code{nil}, which will save time both at startup, at exit, and all over.
1189 Saves disk space, too. Why isn't this the default, then?
1190 Unfortunately, not all servers support this command.
1192 I bet I know what you're thinking now: How do I find out whether my
1193 server supports @code{ask-server}? No? Good, because I don't have a
1194 fail-safe answer. I would suggest just setting this variable to
1195 @code{ask-server} and see whether any new groups appear within the next
1196 few days. If any do, then it works. If none do, then it doesn't
1197 work. I could write a function to make Gnus guess whether the server
1198 supports @code{ask-server}, but it would just be a guess. So I won't.
1199 You could @code{telnet} to the server and say @code{HELP} and see
1200 whether it lists @samp{NEWGROUPS} among the commands it understands. If
1201 it does, then it might work. (But there are servers that lists
1202 @samp{NEWGROUPS} without supporting the function properly.)
1204 This variable can also be a list of select methods. If so, Gnus will
1205 issue an @code{ask-server} command to each of the select methods, and
1206 subscribe them (or not) using the normal methods. This might be handy
1207 if you are monitoring a few servers for new groups. A side effect is
1208 that startup will take much longer, so you can meditate while waiting.
1209 Use the mantra ``dingnusdingnusdingnus'' to achieve permanent bliss.
1212 @node Subscription Methods
1213 @subsection Subscription Methods
1215 @vindex gnus-subscribe-newsgroup-method
1216 What Gnus does when it encounters a new group is determined by the
1217 @code{gnus-subscribe-newsgroup-method} variable.
1219 This variable should contain a function. This function will be called
1220 with the name of the new group as the only parameter.
1222 Some handy pre-fab functions are:
1226 @item gnus-subscribe-zombies
1227 @vindex gnus-subscribe-zombies
1228 Make all new groups zombies. This is the default. You can browse the
1229 zombies later (with @kbd{A z}) and either kill them all off properly
1230 (with @kbd{S z}), or subscribe to them (with @kbd{u}).
1232 @item gnus-subscribe-randomly
1233 @vindex gnus-subscribe-randomly
1234 Subscribe all new groups in arbitrary order. This really means that all
1235 new groups will be added at ``the top'' of the group buffer.
1237 @item gnus-subscribe-alphabetically
1238 @vindex gnus-subscribe-alphabetically
1239 Subscribe all new groups in alphabetical order.
1241 @item gnus-subscribe-hierarchically
1242 @vindex gnus-subscribe-hierarchically
1243 Subscribe all new groups hierarchically. The difference between this
1244 function and @code{gnus-subscribe-alphabetically} is slight.
1245 @code{gnus-subscribe-alphabetically} will subscribe new groups in a strictly
1246 alphabetical fashion, while this function will enter groups into its
1247 hierarchy. So if you want to have the @samp{rec} hierarchy before the
1248 @samp{comp} hierarchy, this function will not mess that configuration
1249 up. Or something like that.
1251 @item gnus-subscribe-interactively
1252 @vindex gnus-subscribe-interactively
1253 Subscribe new groups interactively. This means that Gnus will ask
1254 you about @strong{all} new groups. The groups you choose to subscribe
1255 to will be subscribed hierarchically.
1257 @item gnus-subscribe-killed
1258 @vindex gnus-subscribe-killed
1259 Kill all new groups.
1261 @item gnus-subscribe-topics
1262 @vindex gnus-subscribe-topics
1263 Put the groups into the topic that has a matching @code{subscribe} topic
1264 parameter (@pxref{Topic Parameters}). For instance, a @code{subscribe}
1265 topic parameter that looks like
1271 will mean that all groups that match that regex will be subscribed under
1274 If no topics match the groups, the groups will be subscribed in the
1279 @vindex gnus-subscribe-hierarchical-interactive
1280 A closely related variable is
1281 @code{gnus-subscribe-hierarchical-interactive}. (That's quite a
1282 mouthful.) If this variable is non-@code{nil}, Gnus will ask you in a
1283 hierarchical fashion whether to subscribe to new groups or not. Gnus
1284 will ask you for each sub-hierarchy whether you want to descend the
1287 One common mistake is to set the variable a few paragraphs above
1288 (@code{gnus-subscribe-newsgroup-method}) to
1289 @code{gnus-subscribe-hierarchical-interactive}. This is an error. This
1290 will not work. This is ga-ga. So don't do it.
1293 @node Filtering New Groups
1294 @subsection Filtering New Groups
1296 A nice and portable way to control which new newsgroups should be
1297 subscribed (or ignored) is to put an @dfn{options} line at the start of
1298 the @file{.newsrc} file. Here's an example:
1301 options -n !alt.all !rec.all sci.all
1304 @vindex gnus-subscribe-options-newsgroup-method
1305 This line obviously belongs to a serious-minded intellectual scientific
1306 person (or she may just be plain old boring), because it says that all
1307 groups that have names beginning with @samp{alt} and @samp{rec} should
1308 be ignored, and all groups with names beginning with @samp{sci} should
1309 be subscribed. Gnus will not use the normal subscription method for
1310 subscribing these groups.
1311 @code{gnus-subscribe-options-newsgroup-method} is used instead. This
1312 variable defaults to @code{gnus-subscribe-alphabetically}.
1314 @vindex gnus-options-not-subscribe
1315 @vindex gnus-options-subscribe
1316 If you don't want to mess with your @file{.newsrc} file, you can just
1317 set the two variables @code{gnus-options-subscribe} and
1318 @code{gnus-options-not-subscribe}. These two variables do exactly the
1319 same as the @file{.newsrc} @samp{options -n} trick. Both are regexps,
1320 and if the new group matches the former, it will be unconditionally
1321 subscribed, and if it matches the latter, it will be ignored.
1323 @vindex gnus-auto-subscribed-groups
1324 Yet another variable that meddles here is
1325 @code{gnus-auto-subscribed-groups}. It works exactly like
1326 @code{gnus-options-subscribe}, and is therefore really superfluous, but I
1327 thought it would be nice to have two of these. This variable is more
1328 meant for setting some ground rules, while the other variable is used
1329 more for user fiddling. By default this variable makes all new groups
1330 that come from mail back ends (@code{nnml}, @code{nnbabyl},
1331 @code{nnfolder}, @code{nnmbox}, @code{nnmh}, and @code{nnmaildir})
1332 subscribed. If you don't like that, just set this variable to
1335 New groups that match this regexp are subscribed using
1336 @code{gnus-subscribe-options-newsgroup-method}.
1339 @node Changing Servers
1340 @section Changing Servers
1341 @cindex changing servers
1343 Sometimes it is necessary to move from one @sc{nntp} server to another.
1344 This happens very rarely, but perhaps you change jobs, or one server is
1345 very flaky and you want to use another.
1347 Changing the server is pretty easy, right? You just change
1348 @code{gnus-select-method} to point to the new server?
1352 Article numbers are not (in any way) kept synchronized between different
1353 @sc{nntp} servers, and the only way Gnus keeps track of what articles
1354 you have read is by keeping track of article numbers. So when you
1355 change @code{gnus-select-method}, your @file{.newsrc} file becomes
1358 Gnus provides a few functions to attempt to translate a @file{.newsrc}
1359 file from one server to another. They all have one thing in
1360 common---they take a looong time to run. You don't want to use these
1361 functions more than absolutely necessary.
1363 @kindex M-x gnus-change-server
1364 @findex gnus-change-server
1365 If you have access to both servers, Gnus can request the headers for all
1366 the articles you have read and compare @code{Message-ID}s and map the
1367 article numbers of the read articles and article marks. The @kbd{M-x
1368 gnus-change-server} command will do this for all your native groups. It
1369 will prompt for the method you want to move to.
1371 @kindex M-x gnus-group-move-group-to-server
1372 @findex gnus-group-move-group-to-server
1373 You can also move individual groups with the @kbd{M-x
1374 gnus-group-move-group-to-server} command. This is useful if you want to
1375 move a (foreign) group from one server to another.
1377 @kindex M-x gnus-group-clear-data-on-native-groups
1378 @findex gnus-group-clear-data-on-native-groups
1379 If you don't have access to both the old and new server, all your marks
1380 and read ranges have become worthless. You can use the @kbd{M-x
1381 gnus-group-clear-data-on-native-groups} command to clear out all data
1382 that you have on your native groups. Use with caution.
1384 @kindex M-x gnus-group-clear-data
1385 @findex gnus-group-clear-data
1386 Clear the data from the current group only---nix out marks and the
1387 list of read articles (@code{gnus-group-clear-data}).
1389 After changing servers, you @strong{must} move the cache hierarchy away,
1390 since the cached articles will have wrong article numbers, which will
1391 affect which articles Gnus thinks are read.
1392 @code{gnus-group-clear-data-on-native-groups} will ask you if you want
1393 to have it done automatically; for @code{gnus-group-clear-data}, you
1394 can use @kbd{M-x gnus-cache-move-cache} (but beware, it will move the
1395 cache for all groups).
1399 @section Startup Files
1400 @cindex startup files
1405 Now, you all know about the @file{.newsrc} file. All subscription
1406 information is traditionally stored in this file.
1408 Things got a bit more complicated with @sc{gnus}. In addition to
1409 keeping the @file{.newsrc} file updated, it also used a file called
1410 @file{.newsrc.el} for storing all the information that didn't fit into
1411 the @file{.newsrc} file. (Actually, it also duplicated everything in
1412 the @file{.newsrc} file.) @sc{gnus} would read whichever one of these
1413 files was the most recently saved, which enabled people to swap between
1414 @sc{gnus} and other newsreaders.
1416 That was kinda silly, so Gnus went one better: In addition to the
1417 @file{.newsrc} and @file{.newsrc.el} files, Gnus also has a file called
1418 @file{.newsrc.eld}. It will read whichever of these files that are most
1419 recent, but it will never write a @file{.newsrc.el} file. You should
1420 never delete the @file{.newsrc.eld} file---it contains much information
1421 not stored in the @file{.newsrc} file.
1423 @vindex gnus-save-newsrc-file
1424 @vindex gnus-read-newsrc-file
1425 You can turn off writing the @file{.newsrc} file by setting
1426 @code{gnus-save-newsrc-file} to @code{nil}, which means you can delete
1427 the file and save some space, as well as exiting from Gnus faster.
1428 However, this will make it impossible to use other newsreaders than
1429 Gnus. But hey, who would want to, right? Similarly, setting
1430 @code{gnus-read-newsrc-file} to @code{nil} makes Gnus ignore the
1431 @file{.newsrc} file and any @file{.newsrc-SERVER} files, which is
1432 convenient if you have a tendency to use Netscape once in a while.
1434 @vindex gnus-save-killed-list
1435 If @code{gnus-save-killed-list} (default @code{t}) is @code{nil}, Gnus
1436 will not save the list of killed groups to the startup file. This will
1437 save both time (when starting and quitting) and space (on disk). It
1438 will also mean that Gnus has no record of what groups are new or old,
1439 so the automatic new groups subscription methods become meaningless.
1440 You should always set @code{gnus-check-new-newsgroups} to @code{nil} or
1441 @code{ask-server} if you set this variable to @code{nil} (@pxref{New
1442 Groups}). This variable can also be a regular expression. If that's
1443 the case, remove all groups that do not match this regexp before
1444 saving. This can be useful in certain obscure situations that involve
1445 several servers where not all servers support @code{ask-server}.
1447 @vindex gnus-startup-file
1448 @vindex gnus-backup-startup-file
1449 @vindex version-control
1450 The @code{gnus-startup-file} variable says where the startup files are.
1451 The default value is @file{~/.newsrc}, with the Gnus (El Dingo) startup
1452 file being whatever that one is, with a @samp{.eld} appended.
1453 If you want version control for this file, set
1454 @code{gnus-backup-startup-file}. It respects the same values as the
1455 @code{version-control} variable.
1457 @vindex gnus-save-newsrc-hook
1458 @vindex gnus-save-quick-newsrc-hook
1459 @vindex gnus-save-standard-newsrc-hook
1460 @code{gnus-save-newsrc-hook} is called before saving any of the newsrc
1461 files, while @code{gnus-save-quick-newsrc-hook} is called just before
1462 saving the @file{.newsrc.eld} file, and
1463 @code{gnus-save-standard-newsrc-hook} is called just before saving the
1464 @file{.newsrc} file. The latter two are commonly used to turn version
1465 control on or off. Version control is on by default when saving the
1466 startup files. If you want to turn backup creation off, say something like:
1469 (defun turn-off-backup ()
1470 (set (make-local-variable 'backup-inhibited) t))
1472 (add-hook 'gnus-save-quick-newsrc-hook 'turn-off-backup)
1473 (add-hook 'gnus-save-standard-newsrc-hook 'turn-off-backup)
1476 @vindex gnus-init-file
1477 @vindex gnus-site-init-file
1478 When Gnus starts, it will read the @code{gnus-site-init-file}
1479 (@file{.../site-lisp/gnus} by default) and @code{gnus-init-file}
1480 (@file{~/.gnus} by default) files. These are normal Emacs Lisp files
1481 and can be used to avoid cluttering your @file{~/.emacs} and
1482 @file{site-init} files with Gnus stuff. Gnus will also check for files
1483 with the same names as these, but with @file{.elc} and @file{.el}
1484 suffixes. In other words, if you have set @code{gnus-init-file} to
1485 @file{~/.gnus}, it will look for @file{~/.gnus.elc}, @file{~/.gnus.el},
1486 and finally @file{~/.gnus} (in this order).
1492 @cindex dribble file
1495 Whenever you do something that changes the Gnus data (reading articles,
1496 catching up, killing/subscribing groups), the change is added to a
1497 special @dfn{dribble buffer}. This buffer is auto-saved the normal
1498 Emacs way. If your Emacs should crash before you have saved the
1499 @file{.newsrc} files, all changes you have made can be recovered from
1502 If Gnus detects this file at startup, it will ask the user whether to
1503 read it. The auto save file is deleted whenever the real startup file is
1506 @vindex gnus-use-dribble-file
1507 If @code{gnus-use-dribble-file} is @code{nil}, Gnus won't create and
1508 maintain a dribble buffer. The default is @code{t}.
1510 @vindex gnus-dribble-directory
1511 Gnus will put the dribble file(s) in @code{gnus-dribble-directory}. If
1512 this variable is @code{nil}, which it is by default, Gnus will dribble
1513 into the directory where the @file{.newsrc} file is located. (This is
1514 normally the user's home directory.) The dribble file will get the same
1515 file permissions as the @file{.newsrc} file.
1517 @vindex gnus-always-read-dribble-file
1518 If @code{gnus-always-read-dribble-file} is non-@code{nil}, Gnus will
1519 read the dribble file on startup without querying the user.
1522 @node The Active File
1523 @section The Active File
1525 @cindex ignored groups
1527 When Gnus starts, or indeed whenever it tries to determine whether new
1528 articles have arrived, it reads the active file. This is a very large
1529 file that lists all the active groups and articles on the server.
1531 @vindex gnus-ignored-newsgroups
1532 Before examining the active file, Gnus deletes all lines that match the
1533 regexp @code{gnus-ignored-newsgroups}. This is done primarily to reject
1534 any groups with bogus names, but you can use this variable to make Gnus
1535 ignore hierarchies you aren't ever interested in. However, this is not
1536 recommended. In fact, it's highly discouraged. Instead, @pxref{New
1537 Groups} for an overview of other variables that can be used instead.
1540 @c @code{nil} by default, and will slow down active file handling somewhat
1541 @c if you set it to anything else.
1543 @vindex gnus-read-active-file
1545 The active file can be rather Huge, so if you have a slow network, you
1546 can set @code{gnus-read-active-file} to @code{nil} to prevent Gnus from
1547 reading the active file. This variable is @code{some} by default.
1549 Gnus will try to make do by getting information just on the groups that
1550 you actually subscribe to.
1552 Note that if you subscribe to lots and lots of groups, setting this
1553 variable to @code{nil} will probably make Gnus slower, not faster. At
1554 present, having this variable @code{nil} will slow Gnus down
1555 considerably, unless you read news over a 2400 baud modem.
1557 This variable can also have the value @code{some}. Gnus will then
1558 attempt to read active info only on the subscribed groups. On some
1559 servers this is quite fast (on sparkling, brand new INN servers that
1560 support the @code{LIST ACTIVE group} command), on others this isn't fast
1561 at all. In any case, @code{some} should be faster than @code{nil}, and
1562 is certainly faster than @code{t} over slow lines.
1564 Some news servers (old versions of Leafnode and old versions of INN, for
1565 instance) do not support the @code{LIST ACTIVE group}. For these
1566 servers, @code{nil} is probably the most efficient value for this
1569 If this variable is @code{nil}, Gnus will ask for group info in total
1570 lock-step, which isn't very fast. If it is @code{some} and you use an
1571 @sc{nntp} server, Gnus will pump out commands as fast as it can, and
1572 read all the replies in one swoop. This will normally result in better
1573 performance, but if the server does not support the aforementioned
1574 @code{LIST ACTIVE group} command, this isn't very nice to the server.
1576 If you think that starting up Gnus takes too long, try all the three
1577 different values for this variable and see what works best for you.
1579 In any case, if you use @code{some} or @code{nil}, you should definitely
1580 kill all groups that you aren't interested in to speed things up.
1582 Note that this variable also affects active file retrieval from
1583 secondary select methods.
1586 @node Startup Variables
1587 @section Startup Variables
1591 @item gnus-load-hook
1592 @vindex gnus-load-hook
1593 A hook run while Gnus is being loaded. Note that this hook will
1594 normally be run just once in each Emacs session, no matter how many
1595 times you start Gnus.
1597 @item gnus-before-startup-hook
1598 @vindex gnus-before-startup-hook
1599 A hook run after starting up Gnus successfully.
1601 @item gnus-startup-hook
1602 @vindex gnus-startup-hook
1603 A hook run as the very last thing after starting up Gnus
1605 @item gnus-started-hook
1606 @vindex gnus-started-hook
1607 A hook that is run as the very last thing after starting up Gnus
1610 @item gnus-setup-news-hook
1611 @vindex gnus-setup-news-hook
1612 A hook that is run after reading the @file{.newsrc} file(s), but before
1613 generating the group buffer.
1615 @item gnus-check-bogus-newsgroups
1616 @vindex gnus-check-bogus-newsgroups
1617 If non-@code{nil}, Gnus will check for and delete all bogus groups at
1618 startup. A @dfn{bogus group} is a group that you have in your
1619 @file{.newsrc} file, but doesn't exist on the news server. Checking for
1620 bogus groups can take quite a while, so to save time and resources it's
1621 best to leave this option off, and do the checking for bogus groups once
1622 in a while from the group buffer instead (@pxref{Group Maintenance}).
1624 @item gnus-inhibit-startup-message
1625 @vindex gnus-inhibit-startup-message
1626 If non-@code{nil}, the startup message won't be displayed. That way,
1627 your boss might not notice as easily that you are reading news instead
1628 of doing your job. Note that this variable is used before
1629 @file{.gnus.el} is loaded, so it should be set in @file{.emacs} instead.
1631 @item gnus-no-groups-message
1632 @vindex gnus-no-groups-message
1633 Message displayed by Gnus when no groups are available.
1635 @item gnus-play-startup-jingle
1636 @vindex gnus-play-startup-jingle
1637 If non-@code{nil}, play the Gnus jingle at startup.
1639 @item gnus-startup-jingle
1640 @vindex gnus-startup-jingle
1641 Jingle to be played if the above variable is non-@code{nil}. The
1642 default is @samp{Tuxedomoon.Jingle4.au}.
1648 @chapter Group Buffer
1649 @cindex group buffer
1651 @c Alex Schroeder suggests to rearrange this as follows:
1653 @c <kensanata> ok, just save it for reference. I'll go to bed in a minute.
1654 @c 1. Selecting a Group, 2. (new) Finding a Group, 3. Group Levels,
1655 @c 4. Subscription Commands, 5. Group Maneuvering, 6. Group Data,
1656 @c 7. Group Score, 8. Group Buffer Format
1657 @c <kensanata> Group Levels should have more information on levels 5 to 9. I
1658 @c suggest to split the 4th paragraph ("Gnus considers groups...") as follows:
1659 @c <kensanata> First, "Gnus considers groups... (default 9)."
1660 @c <kensanata> New, a table summarizing what levels 1 to 9 mean.
1661 @c <kensanata> Third, "Gnus treats subscribed ... reasons of efficiency"
1662 @c <kensanata> Then expand the next paragraph or add some more to it.
1663 @c This short one sentence explains levels 1 and 2, therefore I understand
1664 @c that I should keep important news at 3 and boring news at 4.
1665 @c Say so! Then go on to explain why I should bother with levels 6 to 9.
1666 @c Maybe keep those that you don't want to read temporarily at 6,
1667 @c those that you never want to read at 8, those that offend your
1668 @c human rights at 9...
1671 The @dfn{group buffer} lists all (or parts) of the available groups. It
1672 is the first buffer shown when Gnus starts, and will never be killed as
1673 long as Gnus is active.
1677 \gnusfigure{The Group Buffer}{320}{
1678 \put(75,50){\epsfig{figure=ps/group,height=9cm}}
1679 \put(120,37){\makebox(0,0)[t]{Buffer name}}
1680 \put(120,38){\vector(1,2){10}}
1681 \put(40,60){\makebox(0,0)[r]{Mode line}}
1682 \put(40,58){\vector(1,0){30}}
1683 \put(200,28){\makebox(0,0)[t]{Native select method}}
1684 \put(200,26){\vector(-1,2){15}}
1690 * Group Buffer Format:: Information listed and how you can change it.
1691 * Group Maneuvering:: Commands for moving in the group buffer.
1692 * Selecting a Group:: Actually reading news.
1693 * Subscription Commands:: Unsubscribing, killing, subscribing.
1694 * Group Data:: Changing the info for a group.
1695 * Group Levels:: Levels? What are those, then?
1696 * Group Score:: A mechanism for finding out what groups you like.
1697 * Marking Groups:: You can mark groups for later processing.
1698 * Foreign Groups:: Creating and editing groups.
1699 * Group Parameters:: Each group may have different parameters set.
1700 * Listing Groups:: Gnus can list various subsets of the groups.
1701 * Sorting Groups:: Re-arrange the group order.
1702 * Group Maintenance:: Maintaining a tidy @file{.newsrc} file.
1703 * Browse Foreign Server:: You can browse a server. See what it has to offer.
1704 * Exiting Gnus:: Stop reading news and get some work done.
1705 * Group Topics:: A folding group mode divided into topics.
1706 * Misc Group Stuff:: Other stuff that you can to do.
1710 @node Group Buffer Format
1711 @section Group Buffer Format
1714 * Group Line Specification:: Deciding how the group buffer is to look.
1715 * Group Modeline Specification:: The group buffer modeline.
1716 * Group Highlighting:: Having nice colors in the group buffer.
1720 @node Group Line Specification
1721 @subsection Group Line Specification
1722 @cindex group buffer format
1724 The default format of the group buffer is nice and dull, but you can
1725 make it as exciting and ugly as you feel like.
1727 Here's a couple of example group lines:
1730 25: news.announce.newusers
1731 * 0: alt.fan.andrea-dworkin
1736 You can see that there are 25 unread articles in
1737 @samp{news.announce.newusers}. There are no unread articles, but some
1738 ticked articles, in @samp{alt.fan.andrea-dworkin} (see that little
1739 asterisk at the beginning of the line?).
1741 @vindex gnus-group-line-format
1742 You can change that format to whatever you want by fiddling with the
1743 @code{gnus-group-line-format} variable. This variable works along the
1744 lines of a @code{format} specification, which is pretty much the same as
1745 a @code{printf} specifications, for those of you who use (feh!) C.
1746 @xref{Formatting Variables}.
1748 @samp{%M%S%5y:%B%(%g%)\n} is the value that produced those lines above.
1750 There should always be a colon on the line; the cursor always moves to
1751 the colon after performing an operation. @xref{Positioning
1752 Point}. Nothing else is required---not even the group name. All
1753 displayed text is just window dressing, and is never examined by Gnus.
1754 Gnus stores all real information it needs using text properties.
1756 (Note that if you make a really strange, wonderful, spreadsheet-like
1757 layout, everybody will believe you are hard at work with the accounting
1758 instead of wasting time reading news.)
1760 Here's a list of all available format characters:
1765 An asterisk if the group only has marked articles.
1768 Whether the group is subscribed.
1771 Level of subscribedness.
1774 Number of unread articles.
1777 Number of dormant articles.
1780 Number of ticked articles.
1783 Number of read articles.
1786 Number of unseen articles.
1789 Estimated total number of articles. (This is really @var{max-number}
1790 minus @var{min-number} plus 1.)
1792 Gnus uses this estimation because the @sc{nntp} protocol provides
1793 efficient access to @var{max-number} and @var{min-number} but getting
1794 the true unread message count is not possible efficiently. For
1795 hysterical raisins, even the mail back ends, where the true number of
1796 unread messages might be available efficiently, use the same limited
1797 interface. To remove this restriction from Gnus means that the back
1798 end interface has to be changed, which is not an easy job. If you
1799 want to work on this, please contact the Gnus mailing list.
1802 Number of unread, unticked, non-dormant articles.
1805 Number of ticked and dormant articles.
1814 Group comment (@pxref{Group Parameters}) or group name if there is no
1815 comment element in the group parameters.
1818 Newsgroup description.
1821 @samp{m} if moderated.
1824 @samp{(m)} if moderated.
1830 If the summary buffer for the group is open or not.
1836 A string that looks like @samp{<%s:%n>} if a foreign select method is
1840 Indentation based on the level of the topic (@pxref{Group Topics}).
1843 @vindex gnus-group-uncollapsed-levels
1844 Short (collapsed) group name. The @code{gnus-group-uncollapsed-levels}
1845 variable says how many levels to leave at the end of the group name.
1846 The default is 1---this will mean that group names like
1847 @samp{gnu.emacs.gnus} will be shortened to @samp{g.e.gnus}.
1850 @vindex gnus-new-mail-mark
1852 @samp{%} (@code{gnus-new-mail-mark}) if there has arrived new mail to
1856 @samp{#} (@code{gnus-process-mark}) if the group is process marked.
1859 A string that says when you last read the group (@pxref{Group
1863 User defined specifier. The next character in the format string should
1864 be a letter. Gnus will call the function
1865 @code{gnus-user-format-function-}@samp{X}, where @samp{X} is the letter
1866 following @samp{%u}. The function will be passed a single dummy
1867 parameter as argument. The function should return a string, which will
1868 be inserted into the buffer just like information from any other
1873 All the ``number-of'' specs will be filled with an asterisk (@samp{*})
1874 if no info is available---for instance, if it is a non-activated foreign
1875 group, or a bogus native group.
1878 @node Group Modeline Specification
1879 @subsection Group Modeline Specification
1880 @cindex group modeline
1882 @vindex gnus-group-mode-line-format
1883 The mode line can be changed by setting
1884 @code{gnus-group-mode-line-format} (@pxref{Mode Line Formatting}). It
1885 doesn't understand that many format specifiers:
1889 The native news server.
1891 The native select method.
1895 @node Group Highlighting
1896 @subsection Group Highlighting
1897 @cindex highlighting
1898 @cindex group highlighting
1900 @vindex gnus-group-highlight
1901 Highlighting in the group buffer is controlled by the
1902 @code{gnus-group-highlight} variable. This is an alist with elements
1903 that look like @code{(@var{form} . @var{face})}. If @var{form} evaluates to
1904 something non-@code{nil}, the @var{face} will be used on the line.
1906 Here's an example value for this variable that might look nice if the
1910 (cond (window-system
1911 (setq custom-background-mode 'light)
1912 (defface my-group-face-1
1913 '((t (:foreground "Red" :bold t))) "First group face")
1914 (defface my-group-face-2
1915 '((t (:foreground "DarkSeaGreen4" :bold t))) "Second group face")
1916 (defface my-group-face-3
1917 '((t (:foreground "Green4" :bold t))) "Third group face")
1918 (defface my-group-face-4
1919 '((t (:foreground "SteelBlue" :bold t))) "Fourth group face")
1920 (defface my-group-face-5
1921 '((t (:foreground "Blue" :bold t))) "Fifth group face")))
1923 (setq gnus-group-highlight
1924 '(((> unread 200) . my-group-face-1)
1925 ((and (< level 3) (zerop unread)) . my-group-face-2)
1926 ((< level 3) . my-group-face-3)
1927 ((zerop unread) . my-group-face-4)
1928 (t . my-group-face-5)))
1931 Also @pxref{Faces and Fonts}.
1933 Variables that are dynamically bound when the forms are evaluated
1940 The number of unread articles in the group.
1944 Whether the group is a mail group.
1946 The level of the group.
1948 The score of the group.
1950 The number of ticked articles in the group.
1952 The total number of articles in the group. Or rather,
1953 @var{max-number} minus @var{min-number} plus one.
1955 When using the topic minor mode, this variable is bound to the current
1956 topic being inserted.
1959 When the forms are @code{eval}ed, point is at the beginning of the line
1960 of the group in question, so you can use many of the normal Gnus
1961 functions for snarfing info on the group.
1963 @vindex gnus-group-update-hook
1964 @findex gnus-group-highlight-line
1965 @code{gnus-group-update-hook} is called when a group line is changed.
1966 It will not be called when @code{gnus-visual} is @code{nil}. This hook
1967 calls @code{gnus-group-highlight-line} by default.
1970 @node Group Maneuvering
1971 @section Group Maneuvering
1972 @cindex group movement
1974 All movement commands understand the numeric prefix and will behave as
1975 expected, hopefully.
1981 @findex gnus-group-next-unread-group
1982 Go to the next group that has unread articles
1983 (@code{gnus-group-next-unread-group}).
1989 @findex gnus-group-prev-unread-group
1990 Go to the previous group that has unread articles
1991 (@code{gnus-group-prev-unread-group}).
1995 @findex gnus-group-next-group
1996 Go to the next group (@code{gnus-group-next-group}).
2000 @findex gnus-group-prev-group
2001 Go to the previous group (@code{gnus-group-prev-group}).
2005 @findex gnus-group-next-unread-group-same-level
2006 Go to the next unread group on the same (or lower) level
2007 (@code{gnus-group-next-unread-group-same-level}).
2011 @findex gnus-group-prev-unread-group-same-level
2012 Go to the previous unread group on the same (or lower) level
2013 (@code{gnus-group-prev-unread-group-same-level}).
2016 Three commands for jumping to groups:
2022 @findex gnus-group-jump-to-group
2023 Jump to a group (and make it visible if it isn't already)
2024 (@code{gnus-group-jump-to-group}). Killed groups can be jumped to, just
2029 @findex gnus-group-best-unread-group
2030 Jump to the unread group with the lowest level
2031 (@code{gnus-group-best-unread-group}).
2035 @findex gnus-group-first-unread-group
2036 Jump to the first group with unread articles
2037 (@code{gnus-group-first-unread-group}).
2040 @vindex gnus-group-goto-unread
2041 If @code{gnus-group-goto-unread} is @code{nil}, all the movement
2042 commands will move to the next group, not the next unread group. Even
2043 the commands that say they move to the next unread group. The default
2047 @node Selecting a Group
2048 @section Selecting a Group
2049 @cindex group selection
2054 @kindex SPACE (Group)
2055 @findex gnus-group-read-group
2056 Select the current group, switch to the summary buffer and display the
2057 first unread article (@code{gnus-group-read-group}). If there are no
2058 unread articles in the group, or if you give a non-numerical prefix to
2059 this command, Gnus will offer to fetch all the old articles in this
2060 group from the server. If you give a numerical prefix @var{n}, @var{n}
2061 determines the number of articles Gnus will fetch. If @var{n} is
2062 positive, Gnus fetches the @var{n} newest articles, if @var{n} is
2063 negative, Gnus fetches the @code{abs(@var{n})} oldest articles.
2065 Thus, @kbd{SPC} enters the group normally, @kbd{C-u SPC} offers old
2066 articles, @kbd{C-u 4 2 SPC} fetches the 42 newest articles, and @kbd{C-u
2067 - 4 2 SPC} fetches the 42 oldest ones.
2069 When you are in the group (in the Summary buffer), you can type
2070 @kbd{M-g} to fetch new articles, or @kbd{C-u M-g} to also show the old
2075 @findex gnus-group-select-group
2076 Select the current group and switch to the summary buffer
2077 (@code{gnus-group-select-group}). Takes the same arguments as
2078 @code{gnus-group-read-group}---the only difference is that this command
2079 does not display the first unread article automatically upon group
2083 @kindex M-RET (Group)
2084 @findex gnus-group-quick-select-group
2085 This does the same as the command above, but tries to do it with the
2086 minimum amount of fuzz (@code{gnus-group-quick-select-group}). No
2087 scoring/killing will be performed, there will be no highlights and no
2088 expunging. This might be useful if you're in a real hurry and have to
2089 enter some humongous group. If you give a 0 prefix to this command
2090 (i.e., @kbd{0 M-RET}), Gnus won't even generate the summary buffer,
2091 which is useful if you want to toggle threading before generating the
2092 summary buffer (@pxref{Summary Generation Commands}).
2095 @kindex M-SPACE (Group)
2096 @findex gnus-group-visible-select-group
2097 This is yet one more command that does the same as the @kbd{RET}
2098 command, but this one does it without expunging and hiding dormants
2099 (@code{gnus-group-visible-select-group}).
2102 @kindex C-M-RET (Group)
2103 @findex gnus-group-select-group-ephemerally
2104 Finally, this command selects the current group ephemerally without
2105 doing any processing of its contents
2106 (@code{gnus-group-select-group-ephemerally}). Even threading has been
2107 turned off. Everything you do in the group after selecting it in this
2108 manner will have no permanent effects.
2112 @vindex gnus-large-newsgroup
2113 The @code{gnus-large-newsgroup} variable says what Gnus should consider
2114 to be a big group. This is 200 by default. If the group has more
2115 (unread and/or ticked) articles than this, Gnus will query the user
2116 before entering the group. The user can then specify how many articles
2117 should be fetched from the server. If the user specifies a negative
2118 number (@code{-n}), the @code{n} oldest articles will be fetched. If it
2119 is positive, the @code{n} articles that have arrived most recently will
2122 @vindex gnus-select-group-hook
2123 @vindex gnus-auto-select-first
2124 @vindex gnus-auto-select-subject
2125 If @code{gnus-auto-select-first} is non-@code{nil}, select an article
2126 automatically when entering a group with the @kbd{SPACE} command.
2127 Which article this is is controlled by the
2128 @code{gnus-auto-select-subject} variable. Valid values for this
2134 Place point on the subject line of the first unread article.
2137 Place point on the subject line of the first article.
2140 Place point on the subject line of the first unseen article.
2142 @item unseen-or-unread
2143 Place point on the subject line of the first unseen article, and if
2144 there is no such article, place point on the subject line of the first
2148 Place point on the subject line of the highest-scored unread article.
2152 This variable can also be a function. In that case, that function
2153 will be called to place point on a subject line.
2155 If you want to prevent automatic selection in some group (say, in a
2156 binary group with Huge articles) you can set the
2157 @code{gnus-auto-select-first} variable to @code{nil} in
2158 @code{gnus-select-group-hook}, which is called when a group is
2162 @node Subscription Commands
2163 @section Subscription Commands
2164 @cindex subscription
2172 @findex gnus-group-unsubscribe-current-group
2173 @c @icon{gnus-group-unsubscribe}
2174 Toggle subscription to the current group
2175 (@code{gnus-group-unsubscribe-current-group}).
2181 @findex gnus-group-unsubscribe-group
2182 Prompt for a group to subscribe, and then subscribe it. If it was
2183 subscribed already, unsubscribe it instead
2184 (@code{gnus-group-unsubscribe-group}).
2190 @findex gnus-group-kill-group
2191 @c @icon{gnus-group-kill-group}
2192 Kill the current group (@code{gnus-group-kill-group}).
2198 @findex gnus-group-yank-group
2199 Yank the last killed group (@code{gnus-group-yank-group}).
2202 @kindex C-x C-t (Group)
2203 @findex gnus-group-transpose-groups
2204 Transpose two groups (@code{gnus-group-transpose-groups}). This isn't
2205 really a subscription command, but you can use it instead of a
2206 kill-and-yank sequence sometimes.
2212 @findex gnus-group-kill-region
2213 Kill all groups in the region (@code{gnus-group-kill-region}).
2217 @findex gnus-group-kill-all-zombies
2218 Kill all zombie groups (@code{gnus-group-kill-all-zombies}).
2221 @kindex S C-k (Group)
2222 @findex gnus-group-kill-level
2223 Kill all groups on a certain level (@code{gnus-group-kill-level}).
2224 These groups can't be yanked back after killing, so this command should
2225 be used with some caution. The only time where this command comes in
2226 really handy is when you have a @file{.newsrc} with lots of unsubscribed
2227 groups that you want to get rid off. @kbd{S C-k} on level 7 will
2228 kill off all unsubscribed groups that do not have message numbers in the
2229 @file{.newsrc} file.
2233 Also @pxref{Group Levels}.
2243 @findex gnus-group-catchup-current
2244 @vindex gnus-group-catchup-group-hook
2245 @c @icon{gnus-group-catchup-current}
2246 Mark all unticked articles in this group as read
2247 (@code{gnus-group-catchup-current}).
2248 @code{gnus-group-catchup-group-hook} is called when catching up a group from
2253 @findex gnus-group-catchup-current-all
2254 Mark all articles in this group, even the ticked ones, as read
2255 (@code{gnus-group-catchup-current-all}).
2259 @findex gnus-group-clear-data
2260 Clear the data from the current group---nix out marks and the list of
2261 read articles (@code{gnus-group-clear-data}).
2263 @item M-x gnus-group-clear-data-on-native-groups
2264 @kindex M-x gnus-group-clear-data-on-native-groups
2265 @findex gnus-group-clear-data-on-native-groups
2266 If you have switched from one @sc{nntp} server to another, all your marks
2267 and read ranges have become worthless. You can use this command to
2268 clear out all data that you have on your native groups. Use with
2275 @section Group Levels
2279 All groups have a level of @dfn{subscribedness}. For instance, if a
2280 group is on level 2, it is more subscribed than a group on level 5. You
2281 can ask Gnus to just list groups on a given level or lower
2282 (@pxref{Listing Groups}), or to just check for new articles in groups on
2283 a given level or lower (@pxref{Scanning New Messages}).
2285 Remember: The higher the level of the group, the less important it is.
2291 @findex gnus-group-set-current-level
2292 Set the level of the current group. If a numeric prefix is given, the
2293 next @var{n} groups will have their levels set. The user will be
2294 prompted for a level.
2297 @vindex gnus-level-killed
2298 @vindex gnus-level-zombie
2299 @vindex gnus-level-unsubscribed
2300 @vindex gnus-level-subscribed
2301 Gnus considers groups from levels 1 to
2302 @code{gnus-level-subscribed} (inclusive) (default 5) to be subscribed,
2303 @code{gnus-level-subscribed} (exclusive) and
2304 @code{gnus-level-unsubscribed} (inclusive) (default 7) to be
2305 unsubscribed, @code{gnus-level-zombie} to be zombies (walking dead)
2306 (default 8) and @code{gnus-level-killed} to be killed (completely dead)
2307 (default 9). Gnus treats subscribed and unsubscribed groups exactly the
2308 same, but zombie and killed groups have no information on what articles
2309 you have read, etc, stored. This distinction between dead and living
2310 groups isn't done because it is nice or clever, it is done purely for
2311 reasons of efficiency.
2313 It is recommended that you keep all your mail groups (if any) on quite
2314 low levels (e.g. 1 or 2).
2316 Maybe the following description of the default behavior of Gnus helps to
2317 understand what these levels are all about. By default, Gnus shows you
2318 subscribed nonempty groups, but by hitting @kbd{L} you can have it show
2319 empty subscribed groups and unsubscribed groups, too. Type @kbd{l} to
2320 go back to showing nonempty subscribed groups again. Thus, unsubscribed
2321 groups are hidden, in a way.
2323 Zombie and killed groups are similar to unsubscribed groups in that they
2324 are hidden by default. But they are different from subscribed and
2325 unsubscribed groups in that Gnus doesn't ask the news server for
2326 information (number of messages, number of unread messages) on zombie
2327 and killed groups. Normally, you use @kbd{C-k} to kill the groups you
2328 aren't interested in. If most groups are killed, Gnus is faster.
2330 Why does Gnus distinguish between zombie and killed groups? Well, when
2331 a new group arrives on the server, Gnus by default makes it a zombie
2332 group. This means that you are normally not bothered with new groups,
2333 but you can type @kbd{A z} to get a list of all new groups. Subscribe
2334 the ones you like and kill the ones you don't want. (@kbd{A k} shows a
2335 list of killed groups.)
2337 If you want to play with the level variables, you should show some care.
2338 Set them once, and don't touch them ever again. Better yet, don't touch
2339 them at all unless you know exactly what you're doing.
2341 @vindex gnus-level-default-unsubscribed
2342 @vindex gnus-level-default-subscribed
2343 Two closely related variables are @code{gnus-level-default-subscribed}
2344 (default 3) and @code{gnus-level-default-unsubscribed} (default 6),
2345 which are the levels that new groups will be put on if they are
2346 (un)subscribed. These two variables should, of course, be inside the
2347 relevant valid ranges.
2349 @vindex gnus-keep-same-level
2350 If @code{gnus-keep-same-level} is non-@code{nil}, some movement commands
2351 will only move to groups of the same level (or lower). In
2352 particular, going from the last article in one group to the next group
2353 will go to the next group of the same level (or lower). This might be
2354 handy if you want to read the most important groups before you read the
2357 If this variable is @code{best}, Gnus will make the next newsgroup the
2358 one with the best level.
2360 @vindex gnus-group-default-list-level
2361 All groups with a level less than or equal to
2362 @code{gnus-group-default-list-level} will be listed in the group buffer
2365 @vindex gnus-group-list-inactive-groups
2366 If @code{gnus-group-list-inactive-groups} is non-@code{nil}, non-active
2367 groups will be listed along with the unread groups. This variable is
2368 @code{t} by default. If it is @code{nil}, inactive groups won't be
2371 @vindex gnus-group-use-permanent-levels
2372 If @code{gnus-group-use-permanent-levels} is non-@code{nil}, once you
2373 give a level prefix to @kbd{g} or @kbd{l}, all subsequent commands will
2374 use this level as the ``work'' level.
2376 @vindex gnus-activate-level
2377 Gnus will normally just activate (i. e., query the server about) groups
2378 on level @code{gnus-activate-level} or less. If you don't want to
2379 activate unsubscribed groups, for instance, you might set this variable
2380 to 5. The default is 6.
2384 @section Group Score
2389 You would normally keep important groups on high levels, but that scheme
2390 is somewhat restrictive. Don't you wish you could have Gnus sort the
2391 group buffer according to how often you read groups, perhaps? Within
2394 This is what @dfn{group score} is for. You can have Gnus assign a score
2395 to each group through the mechanism described below. You can then sort
2396 the group buffer based on this score. Alternatively, you can sort on
2397 score and then level. (Taken together, the level and the score is
2398 called the @dfn{rank} of the group. A group that is on level 4 and has
2399 a score of 1 has a higher rank than a group on level 5 that has a score
2400 of 300. (The level is the most significant part and the score is the
2401 least significant part.))
2403 @findex gnus-summary-bubble-group
2404 If you want groups you read often to get higher scores than groups you
2405 read seldom you can add the @code{gnus-summary-bubble-group} function to
2406 the @code{gnus-summary-exit-hook} hook. This will result (after
2407 sorting) in a bubbling sort of action. If you want to see that in
2408 action after each summary exit, you can add
2409 @code{gnus-group-sort-groups-by-rank} or
2410 @code{gnus-group-sort-groups-by-score} to the same hook, but that will
2411 slow things down somewhat.
2414 @node Marking Groups
2415 @section Marking Groups
2416 @cindex marking groups
2418 If you want to perform some command on several groups, and they appear
2419 subsequently in the group buffer, you would normally just give a
2420 numerical prefix to the command. Most group commands will then do your
2421 bidding on those groups.
2423 However, if the groups are not in sequential order, you can still
2424 perform a command on several groups. You simply mark the groups first
2425 with the process mark and then execute the command.
2433 @findex gnus-group-mark-group
2434 Set the mark on the current group (@code{gnus-group-mark-group}).
2440 @findex gnus-group-unmark-group
2441 Remove the mark from the current group
2442 (@code{gnus-group-unmark-group}).
2446 @findex gnus-group-unmark-all-groups
2447 Remove the mark from all groups (@code{gnus-group-unmark-all-groups}).
2451 @findex gnus-group-mark-region
2452 Mark all groups between point and mark (@code{gnus-group-mark-region}).
2456 @findex gnus-group-mark-buffer
2457 Mark all groups in the buffer (@code{gnus-group-mark-buffer}).
2461 @findex gnus-group-mark-regexp
2462 Mark all groups that match some regular expression
2463 (@code{gnus-group-mark-regexp}).
2466 Also @pxref{Process/Prefix}.
2468 @findex gnus-group-universal-argument
2469 If you want to execute some command on all groups that have been marked
2470 with the process mark, you can use the @kbd{M-&}
2471 (@code{gnus-group-universal-argument}) command. It will prompt you for
2472 the command to be executed.
2475 @node Foreign Groups
2476 @section Foreign Groups
2477 @cindex foreign groups
2479 Below are some group mode commands for making and editing general foreign
2480 groups, as well as commands to ease the creation of a few
2481 special-purpose groups. All these commands insert the newly created
2482 groups under point---@code{gnus-subscribe-newsgroup-method} is not
2489 @findex gnus-group-make-group
2490 @cindex making groups
2491 Make a new group (@code{gnus-group-make-group}). Gnus will prompt you
2492 for a name, a method and possibly an @dfn{address}. For an easier way
2493 to subscribe to @sc{nntp} groups, @pxref{Browse Foreign Server}.
2497 @findex gnus-group-rename-group
2498 @cindex renaming groups
2499 Rename the current group to something else
2500 (@code{gnus-group-rename-group}). This is valid only on some
2501 groups---mail groups mostly. This command might very well be quite slow
2507 @findex gnus-group-customize
2508 Customize the group parameters (@code{gnus-group-customize}).
2512 @findex gnus-group-edit-group-method
2513 @cindex renaming groups
2514 Enter a buffer where you can edit the select method of the current
2515 group (@code{gnus-group-edit-group-method}).
2519 @findex gnus-group-edit-group-parameters
2520 Enter a buffer where you can edit the group parameters
2521 (@code{gnus-group-edit-group-parameters}).
2525 @findex gnus-group-edit-group
2526 Enter a buffer where you can edit the group info
2527 (@code{gnus-group-edit-group}).
2531 @findex gnus-group-make-directory-group
2533 Make a directory group (@pxref{Directory Groups}). You will be prompted
2534 for a directory name (@code{gnus-group-make-directory-group}).
2539 @findex gnus-group-make-help-group
2540 Make the Gnus help group (@code{gnus-group-make-help-group}).
2544 @cindex (ding) archive
2545 @cindex archive group
2546 @findex gnus-group-make-archive-group
2547 @vindex gnus-group-archive-directory
2548 @vindex gnus-group-recent-archive-directory
2549 Make a Gnus archive group (@code{gnus-group-make-archive-group}). By
2550 default a group pointing to the most recent articles will be created
2551 (@code{gnus-group-recent-archive-directory}), but given a prefix, a full
2552 group will be created from @code{gnus-group-archive-directory}.
2556 @findex gnus-group-make-kiboze-group
2558 Make a kiboze group. You will be prompted for a name, for a regexp to
2559 match groups to be ``included'' in the kiboze group, and a series of
2560 strings to match on headers (@code{gnus-group-make-kiboze-group}).
2561 @xref{Kibozed Groups}.
2565 @findex gnus-group-enter-directory
2567 Read an arbitrary directory as if it were a newsgroup with the
2568 @code{nneething} back end (@code{gnus-group-enter-directory}).
2569 @xref{Anything Groups}.
2573 @findex gnus-group-make-doc-group
2574 @cindex ClariNet Briefs
2576 Make a group based on some file or other
2577 (@code{gnus-group-make-doc-group}). If you give a prefix to this
2578 command, you will be prompted for a file name and a file type.
2579 Currently supported types are @code{mbox}, @code{babyl},
2580 @code{digest}, @code{news}, @code{rnews}, @code{mmdf}, @code{forward},
2581 @code{rfc934}, @code{rfc822-forward}, @code{mime-parts},
2582 @code{standard-digest}, @code{slack-digest}, @code{clari-briefs},
2583 @code{nsmail}, @code{outlook}, @code{oe-dbx}, and @code{mailman}. If
2584 you run this command without a prefix, Gnus will guess at the file
2585 type. @xref{Document Groups}.
2589 @vindex gnus-useful-groups
2590 @findex gnus-group-make-useful-group
2591 Create one of the groups mentioned in @code{gnus-useful-groups}
2592 (@code{gnus-group-make-useful-group}).