Specify .texi encoding.
[bpt/emacs.git] / doc / misc / gnus-faq.texi
CommitLineData
4009494e
GM
1@c \input texinfo @c -*-texinfo-*-
2@c Uncomment 1st line before texing this file alone.
3@c %**start of header
ba318903 4@c Copyright (C) 1995, 2001-2014 Free Software Foundation, Inc.
4009494e 5@c
2fce4cd8
PE
6@c @setfilename gnus-faq.info
7@c @settitle Frequently Asked Questions
c6ab4664 8@c @documentencoding UTF-8
4009494e
GM
9@c %**end of header
10@c
11
12@node Frequently Asked Questions
13@section Frequently Asked Questions
14
15@menu
91af3942 16* FAQ - Changes::
4009494e
GM
17* FAQ - Introduction:: About Gnus and this FAQ.
18* FAQ 1 - Installation FAQ:: Installation of Gnus.
19* FAQ 2 - Startup / Group buffer:: Start up questions and the
20 first buffer Gnus shows you.
21* FAQ 3 - Getting Messages:: Making Gnus read your mail
22 and news.
23* FAQ 4 - Reading messages:: How to efficiently read
24 messages.
25* FAQ 5 - Composing messages:: Composing mails or Usenet
26 postings.
27* FAQ 6 - Old messages:: Importing, archiving,
28 searching and deleting messages.
29* FAQ 7 - Gnus in a dial-up environment:: Reading mail and news while
30 offline.
31* FAQ 8 - Getting help:: When this FAQ isn't enough.
32* FAQ 9 - Tuning Gnus:: How to make Gnus faster.
33* FAQ - Glossary:: Terms used in the FAQ
34 explained.
35@end menu
36
37@subheading Abstract
38
39This is the new Gnus Frequently Asked Questions list.
4009494e 40
91af3942 41Please submit features and suggestions to the
66627fa9 42@email{ding@@gnus.org, ding list}.
4009494e
GM
43
44@node FAQ - Changes
2fce4cd8 45@subsection Changes
4009494e
GM
46
47
48
49@itemize @bullet
50
51@item
2b968687
MB
522008-06-15: Adjust for message-fill-column. Add x-face-file.
53Clarify difference between ding and gnu.emacs.gnus. Remove
54reference to discontinued service.
55
56@item
572006-04-15: Added tip on how to delete sent buffer on exit.
4009494e
GM
58@end itemize
59
60@node FAQ - Introduction
2fce4cd8 61@subsection Introduction
4009494e
GM
62
63This is the Gnus Frequently Asked Questions list.
64
65Gnus is a Usenet Newsreader and Electronic Mail User Agent implemented
66as a part of Emacs. It's been around in some form for almost a decade
67now, and has been distributed as a standard part of Emacs for much of
68that time. Gnus 5 is the latest (and greatest) incarnation. The
1df7defd 69original version was called GNUS, and was written by Masanobu UMEDA@.
4009494e
GM
70When autumn crept up in '94, Lars Magne Ingebrigtsen grew bored and
71decided to rewrite Gnus.
72
73Its biggest strength is the fact that it is extremely
74customizable. It is somewhat intimidating at first glance, but
75most of the complexity can be ignored until you're ready to take
76advantage of it. If you receive a reasonable volume of e-mail
77(you're on various mailing lists), or you would like to read
78high-volume mailing lists but cannot keep up with them, or read
79high volume newsgroups or are just bored, then Gnus is what you
80want.
81
82This FAQ was maintained by Justin Sheehy until March 2002. He
83would like to thank Steve Baur and Per Abrahamsen for doing a wonderful
f99f1641 84job with this FAQ before him. We would like to do the same: thanks,
4009494e
GM
85Justin!
86
4009494e
GM
87This version is much nicer than the unofficial hypertext
88versions that are archived at Utrecht, Oxford, Smart Pages, Ohio
89State, and other FAQ archives. See the resources question below
90if you want information on obtaining it in another format.
91
92The information contained here was compiled with the assistance
93of the Gnus development mailing list, and any errors or
66627fa9 94misprints are the Gnus team's fault, sorry.
4009494e
GM
95
96@node FAQ 1 - Installation FAQ
97@subsection Installation FAQ
98
99@menu
2b968687
MB
100* FAQ 1-1:: What is the latest version of Gnus?
101* FAQ 1-2:: What's new in 5.10?
102* FAQ 1-3:: Where and how to get Gnus?
103* FAQ 1-4:: What to do with the tarball now?
104* FAQ 1-5:: I sometimes read references to No Gnus and Oort Gnus,
105 what are those?
106* FAQ 1-6:: Which version of Emacs do I need?
107* FAQ 1-7:: How do I run Gnus on both Emacs and XEmacs?
4009494e
GM
108@end menu
109
2b968687 110@node FAQ 1-1
4009494e
GM
111@subsubheading Question 1.1
112
113What is the latest version of Gnus?
114
115@subsubheading Answer
116
117Jingle please: Gnus 5.10 is released, get it while it's
118hot! As well as the step in version number is rather
119small, Gnus 5.10 has tons of new features which you
c7ff939a 120shouldn't miss. The current release (5.13) should be at
4009494e
GM
121least as stable as the latest release of the 5.8 series.
122
2b968687 123@node FAQ 1-2
4009494e
GM
124@subsubheading Question 1.2
125
126What's new in 5.10?
127
128@subsubheading Answer
129
130First of all, you should have a look into the file
131GNUS-NEWS in the toplevel directory of the Gnus tarball,
132there the most important changes are listed. Here's a
133short list of the changes I find especially
134important/interesting:
135
136@itemize @bullet
137
138@item
139Major rewrite of the Gnus agent, Gnus agent is now
140active by default.
141
142@item
143Many new article washing functions for dealing with
144ugly formatted articles.
145
146@item
147Anti Spam features.
148
149@item
150Message-utils now included in Gnus.
151
152@item
1df7defd 153New format specifiers for summary lines, e.g., %B for
4009494e
GM
154a complex trn-style thread tree.
155@end itemize
156
2b968687 157@node FAQ 1-3
4009494e
GM
158@subsubheading Question 1.3
159
160Where and how to get Gnus?
161
162@subsubheading Answer
163
164Gnus is released independent from releases of Emacs and XEmacs.
44e97401 165Therefore, the version bundled with Emacs or the version in XEmacs's
1df7defd 166package system might not be up to date (e.g., Gnus 5.9 bundled with Emacs
2b968687 16721 is outdated).
4009494e 168You can get the latest released version of Gnus from
2b968687 169@uref{http://www.gnus.org/dist/gnus.tar.gz}
91af3942 170or via anonymous FTP from
4009494e
GM
171@uref{ftp://ftp.gnus.org/pub/gnus/gnus.tar.gz}.
172
2b968687 173@node FAQ 1-4
4009494e
GM
174@subsubheading Question 1.4
175
176What to do with the tarball now?
177
178@subsubheading Answer
179
91af3942 180Untar it via @samp{tar xvzf gnus.tar.gz} and do the common
4009494e
GM
181@samp{./configure; make; make install} circle.
182(under MS-Windows either get the Cygwin environment from
183@uref{http://www.cygwin.com}
184which allows you to do what's described above or unpack the
1df7defd 185tarball with some packer (e.g., Winace from
4009494e
GM
186@uref{http://www.winace.com})
187and use the batch-file make.bat included in the tarball to install
188Gnus.) If you don't want to (or aren't allowed to) install Gnus
189system-wide, you can install it in your home directory and add the
190following lines to your ~/.xemacs/init.el or ~/.emacs:
191
192@example
193(add-to-list 'load-path "/path/to/gnus/lisp")
194(if (featurep 'xemacs)
195 (add-to-list 'Info-directory-list "/path/to/gnus/texi/")
196 (add-to-list 'Info-default-directory-list "/path/to/gnus/texi/"))
197@end example
198@noindent
199
200Make sure that you don't have any Gnus related stuff
201before this line, on MS Windows use something like
202"C:/path/to/lisp" (yes, "/").
203
2b968687 204@node FAQ 1-5
4009494e
GM
205@subsubheading Question 1.5
206
207I sometimes read references to No Gnus and Oort Gnus,
208what are those?
209
210@subsubheading Answer
211
212Oort Gnus was the name of the development version of
213Gnus, which became Gnus 5.10 in autumn 2003. No Gnus is
214the name of the current development version which will
215once become Gnus 5.12 or Gnus 6. (If you're wondering why
216not 5.11, the odd version numbers are normally used for
217the Gnus versions bundled with Emacs)
218
2b968687 219@node FAQ 1-6
4009494e
GM
220@subsubheading Question 1.6
221
222Which version of Emacs do I need?
223
224@subsubheading Answer
225
6ed7a66a
G
226Gnus 5.13 requires an Emacs version that is greater than or equal
227to Emacs 23.1 or XEmacs 21.1, although there are some features that
228only work on Emacs 24.
4009494e 229
2b968687 230@node FAQ 1-7
4009494e
GM
231@subsubheading Question 1.7
232
233How do I run Gnus on both Emacs and XEmacs?
234
235@subsubheading Answer
236
237You can't use the same copy of Gnus in both as the Lisp
238files are byte-compiled to a format which is different
239depending on which Emacs did the compilation. Get one copy
240of Gnus for Emacs and one for XEmacs.
241
242@node FAQ 2 - Startup / Group buffer
243@subsection Startup / Group buffer
244
245@menu
2b968687
MB
246* FAQ 2-1:: Every time I start Gnus I get a message "Gnus auto-save
247 file exists. Do you want to read it?", what does this mean and
248 how to prevent it?
249* FAQ 2-2:: Gnus doesn't remember which groups I'm subscribed to,
250 what's this?
251* FAQ 2-3:: How to change the format of the lines in Group buffer?
252* FAQ 2-4:: My group buffer becomes a bit crowded, is there a way to
253 sort my groups into categories so I can easier browse through
254 them?
255* FAQ 2-5:: How to manually sort the groups in Group buffer? How to
256 sort the groups in a topic?
4009494e
GM
257@end menu
258
2b968687 259@node FAQ 2-1
4009494e
GM
260@subsubheading Question 2.1
261
262Every time I start Gnus I get a message "Gnus auto-save
263file exists. Do you want to read it?", what does this mean
264and how to prevent it?
265
266@subsubheading Answer
267
268This message means that the last time you used Gnus, it
a98edce9 269wasn't properly exited and therefore couldn't write its
1df7defd 270information to disk (e.g., which messages you read), you
a98edce9 271are now asked if you want to restore that information
4009494e
GM
272from the auto-save file.
273
274To prevent this message make sure you exit Gnus
275via @samp{q} in group buffer instead of
276just killing Emacs.
277
2b968687 278@node FAQ 2-2
4009494e
GM
279@subsubheading Question 2.2
280
281Gnus doesn't remember which groups I'm subscribed to,
282what's this?
283
284@subsubheading Answer
285
286You get the message described in the q/a pair above while
287starting Gnus, right? It's an other symptom for the same
288problem, so read the answer above.
289
2b968687 290@node FAQ 2-3
4009494e
GM
291@subsubheading Question 2.3
292
293How to change the format of the lines in Group buffer?
294
295@subsubheading Answer
296
297You've got to tweak the value of the variable
298gnus-group-line-format. See the manual node "Group Line
299Specification" for information on how to do this. An
300example for this (guess from whose .gnus :-)):
301
302@example
303(setq gnus-group-line-format "%P%M%S[%5t]%5y : %(%g%)\n")
304@end example
305@noindent
306
2b968687 307@node FAQ 2-4
4009494e
GM
308@subsubheading Question 2.4
309
310My group buffer becomes a bit crowded, is there a way to
311sort my groups into categories so I can easier browse
312through them?
313
314@subsubheading Answer
315
316Gnus offers the topic mode, it allows you to sort your
1df7defd 317groups in, well, topics, e.g., all groups dealing with
4009494e
GM
318Linux under the topic linux, all dealing with music under
319the topic music and all dealing with scottish music under
320the topic scottish which is a subtopic of music.
321
322To enter topic mode, just hit t while in Group buffer. Now
323you can use @samp{T n} to create a topic
324at point and @samp{T m} to move a group to
325a specific topic. For more commands see the manual or the
326menu. You might want to include the %P specifier at the
327beginning of your gnus-group-line-format variable to have
328the groups nicely indented.
329
2b968687 330@node FAQ 2-5
4009494e
GM
331@subsubheading Question 2.5
332
333How to manually sort the groups in Group buffer? How to
334sort the groups in a topic?
335
336@subsubheading Answer
337
338Move point over the group you want to move and
339hit @samp{C-k}, now move point to the
340place where you want the group to be and
341hit @samp{C-y}.
342
343@node FAQ 3 - Getting Messages
344@subsection Getting Messages
345
346@menu
91af3942 347* FAQ 3-1:: I just installed Gnus, started it via @samp{M-x gnus}
2b968687
MB
348 but it only says "nntp (news) open error", what to do?
349* FAQ 3-2:: I'm working under Windows and have no idea what
350 ~/.gnus.el means.
351* FAQ 3-3:: My news server requires authentication, how to store
352 user name and password on disk?
353* FAQ 3-4:: Gnus seems to start up OK, but I can't find out how to
354 subscribe to a group.
355* FAQ 3-5:: Gnus doesn't show all groups / Gnus says I'm not allowed
356 to post on this server as well as I am, what's that?
357* FAQ 3-6:: I want Gnus to fetch news from several servers, is this
358 possible?
359* FAQ 3-7:: And how about local spool files?
360* FAQ 3-8:: OK, reading news works now, but I want to be able to
361 read my mail with Gnus, too. How to do it?
362* FAQ 3-9:: And what about IMAP?
363* FAQ 3-10:: At the office we use one of those MS Exchange servers,
364 can I use Gnus to read my mail from it?
365* FAQ 3-11:: Can I tell Gnus not to delete the mails on the server it
366 retrieves via POP3?
4009494e
GM
367@end menu
368
2b968687 369@node FAQ 3-1
4009494e
GM
370@subsubheading Question 3.1
371
91af3942
PE
372I just installed Gnus, started it via
373@samp{M-x gnus}
4009494e
GM
374but it only says "nntp (news) open error", what to do?
375
376@subsubheading Answer
377
378You've got to tell Gnus where to fetch the news from. Read
379the documentation for information on how to do this. As a
380first start, put those lines in ~/.gnus.el:
381
382@example
383(setq gnus-select-method '(nntp "news.yourprovider.net"))
384(setq user-mail-address "you@@yourprovider.net")
385(setq user-full-name "Your Name")
386@end example
387@noindent
388
2b968687 389@node FAQ 3-2
4009494e
GM
390@subsubheading Question 3.2
391
392I'm working under Windows and have no idea what ~/.gnus.el means.
393
394@subsubheading Answer
395
396The ~/ means the home directory where Gnus and Emacs look
397for the configuration files. However, you don't really
398need to know what this means, it suffices that Emacs knows
91af3942
PE
399what it means :-) You can type
400@samp{C-x C-f ~/.gnus.el RET }
4009494e
GM
401(yes, with the forward slash, even on Windows), and
402Emacs will open the right file for you. (It will most
403likely be new, and thus empty.)
404However, I'd discourage you from doing so, since the
405directory Emacs chooses will most certainly not be what
91af3942 406you want, so let's do it the correct way.
4009494e
GM
407The first thing you've got to do is to
408create a suitable directory (no blanks in directory name
1df7defd 409please), e.g., c:\myhome. Then you must set the environment
b46a6a83 410variable HOME to this directory. To do this under Windows 9x
4009494e
GM
411or Me include the line
412
413@example
414SET HOME=C:\myhome
415@end example
416@noindent
417
418in your autoexec.bat and reboot. Under NT, 2000 and XP, hit
2b968687
MB
419Winkey+Pause/Break to enter system options (if it doesn't work, go
420to Control Panel -> System -> Advanced). There you'll find the
421possibility to set environment variables. Create a new one with
422name HOME and value C:\myhome. Rebooting is not necessary.
4009494e
GM
423
424Now to create ~/.gnus.el, say
425@samp{C-x C-f ~/.gnus.el RET C-x C-s}.
426in Emacs.
427
2b968687 428@node FAQ 3-3
4009494e
GM
429@subsubheading Question 3.3
430
431My news server requires authentication, how to store
432user name and password on disk?
433
434@subsubheading Answer
435
436Create a file ~/.authinfo which includes for each server a line like this
437
438@example
439machine news.yourprovider.net login YourUserName password YourPassword
440@end example
441@noindent
442.
443Make sure that the file isn't readable to others if you
444work on a OS which is capable of doing so. (Under Unix
91af3942 445say
4009494e
GM
446@example
447chmod 600 ~/.authinfo
448@end example
449@noindent
450
451in a shell.)
452
2b968687 453@node FAQ 3-4
4009494e
GM
454@subsubheading Question 3.4
455
456Gnus seems to start up OK, but I can't find out how to
457subscribe to a group.
458
459@subsubheading Answer
460
461If you know the name of the group say @samp{U
462name.of.group RET} in group buffer (use the
463tab-completion Luke). Otherwise hit ^ in group buffer,
464this brings you to the server buffer. Now place point (the
465cursor) over the server which carries the group you want,
466hit @samp{RET}, move point to the group
467you want to subscribe to and say @samp{u}
468to subscribe to it.
469
2b968687 470@node FAQ 3-5
4009494e
GM
471@subsubheading Question 3.5
472
473Gnus doesn't show all groups / Gnus says I'm not allowed to
474post on this server as well as I am, what's that?
475
476@subsubheading Answer
477
478Some providers allow restricted anonymous access and full
479access only after authorization. To make Gnus send authinfo
91af3942 480to those servers append
4009494e
GM
481
482@example
483force yes
484@end example
485@noindent
91af3942 486
4009494e
GM
487to the line for those servers in ~/.authinfo.
488
2b968687 489@node FAQ 3-6
4009494e
GM
490@subsubheading Question 3.6
491
492I want Gnus to fetch news from several servers, is this possible?
493
494@subsubheading Answer
495
496Of course. You can specify more sources for articles in the
497variable gnus-secondary-select-methods. Add something like
498this in ~/.gnus.el:
499
500@example
501(add-to-list 'gnus-secondary-select-methods
502 '(nntp "news.yourSecondProvider.net"))
503(add-to-list 'gnus-secondary-select-methods
504 '(nntp "news.yourThirdProvider.net"))
505@end example
506@noindent
507
2b968687 508@node FAQ 3-7
4009494e
GM
509@subsubheading Question 3.7
510
511And how about local spool files?
512
513@subsubheading Answer
514
515No problem, this is just one more select method called
516nnspool, so you want this:
517
518@example
519(add-to-list 'gnus-secondary-select-methods '(nnspool ""))
520@end example
521@noindent
522
523Or this if you don't want an NNTP Server as primary news source:
524
525@example
526(setq gnus-select-method '(nnspool ""))
527@end example
528@noindent
529
530Gnus will look for the spool file in /usr/spool/news, if you
531want something different, change the line above to something like this:
532
533@example
534(add-to-list 'gnus-secondary-select-methods
535 '(nnspool ""
9360256a 536 (nnspool-directory "/usr/local/myspoolddir")))
4009494e
GM
537@end example
538@noindent
539
540This sets the spool directory for this server only.
541You might have to specify more stuff like the program used
542to post articles, see the Gnus manual on how to do this.
543
2b968687 544@node FAQ 3-8
4009494e
GM
545@subsubheading Question 3.8
546
547OK, reading news works now, but I want to be able to read my mail
548with Gnus, too. How to do it?
549
550@subsubheading Answer
551
552That's a bit harder since there are many possible sources
553for mail, many possible ways for storing mail and many
554different ways for sending mail. The most common cases are
555these: 1: You want to read your mail from a pop3 server and
556send them directly to a SMTP Server 2: Some program like
557fetchmail retrieves your mail and stores it on disk from
558where Gnus shall read it. Outgoing mail is sent by
1df7defd 559Sendmail, Postfix or some other MTA@. Sometimes, you even
4009494e
GM
560need a combination of the above cases.
561
562However, the first thing to do is to tell Gnus in which way
563it should store the mail, in Gnus terminology which back end
564to use. Gnus supports many different back ends, the most
565commonly used one is nnml. It stores every mail in one file
a98edce9 566and is therefore quite fast. However you might prefer a one
4009494e
GM
567file per group approach if your file system has problems with
568many small files, the nnfolder back end is then probably the
569choice for you. To use nnml add the following to ~/.gnus.el:
570
571@example
572(add-to-list 'gnus-secondary-select-methods '(nnml ""))
573@end example
574@noindent
575
576As you might have guessed, if you want nnfolder, it's
577
578@example
579(add-to-list 'gnus-secondary-select-methods '(nnfolder ""))
580@end example
581@noindent
582
a98edce9 583Now we need to tell Gnus, where to get its mail from. If
4009494e
GM
584it's a POP3 server, then you need something like this:
585
586@example
587(eval-after-load "mail-source"
588 '(add-to-list 'mail-sources '(pop :server "pop.YourProvider.net"
589 :user "yourUserName"
590 :password "yourPassword")))
591@end example
592@noindent
593
594Make sure ~/.gnus.el isn't readable to others if you store
595your password there. If you want to read your mail from a
596traditional spool file on your local machine, it's
597
598@example
599(eval-after-load "mail-source"
600 '(add-to-list 'mail-sources '(file :path "/path/to/spool/file"))
601@end example
602@noindent
603
604If it's a Maildir, with one file per message as used by
605postfix, Qmail and (optionally) fetchmail it's
606
607@example
608(eval-after-load "mail-source"
609 '(add-to-list 'mail-sources '(maildir :path "/path/to/Maildir/"
610 :subdirs ("cur" "new")))
611@end example
612@noindent
613
614And finally if you want to read your mail from several files
615in one directory, for example because procmail already split your
616mail, it's
617
618@example
619(eval-after-load "mail-source"
620 '(add-to-list 'mail-sources
9360256a
GM
621 '(directory :path "/path/to/procmail-dir/"
622 :suffix ".prcml")))
4009494e
GM
623@end example
624@noindent
625
626Where :suffix ".prcml" tells Gnus only to use files with the
627suffix .prcml.
628
629OK, now you only need to tell Gnus how to send mail. If you
630want to send mail via sendmail (or whichever MTA is playing
631the role of sendmail on your system), you don't need to do
632anything. However, if you want to send your mail to an
633SMTP Server you need the following in your ~/.gnus.el
634
635@example
636(setq send-mail-function 'smtpmail-send-it)
637(setq message-send-mail-function 'smtpmail-send-it)
638(setq smtpmail-default-smtp-server "smtp.yourProvider.net")
639@end example
640@noindent
641
2b968687 642@node FAQ 3-9
4009494e
GM
643@subsubheading Question 3.9
644
645And what about IMAP?
646
647@subsubheading Answer
648
649There are two ways of using IMAP with Gnus. The first one is
650to use IMAP like POP3, that means Gnus fetches the mail from
651the IMAP server and stores it on disk. If you want to do
652this (you don't really want to do this) add the following to
653~/.gnus.el
654
655@example
656(add-to-list 'mail-sources '(imap :server "mail.mycorp.com"
657 :user "username"
658 :pass "password"
659 :stream network
660 :authentication login
661 :mailbox "INBOX"
662 :fetchflag "\\Seen"))
663@end example
664@noindent
665
666You might have to tweak the values for stream and/or
667authentication, see the Gnus manual node "Mail Source
668Specifiers" for possible values.
669
670If you want to use IMAP the way it's intended, you've got to
671follow a different approach. You've got to add the nnimap
672back end to your select method and give the information
673about the server there.
674
675@example
676(add-to-list 'gnus-secondary-select-methods
9360256a
GM
677 '(nnimap "Give the baby a name"
678 (nnimap-address "imap.yourProvider.net")
679 (nnimap-port 143)
680 (nnimap-list-pattern "archive.*")))
4009494e
GM
681@end example
682@noindent
683
684Again, you might have to specify how to authenticate to the
685server if Gnus can't guess the correct way, see the Manual
686Node "IMAP" for detailed information.
687
2b968687 688@node FAQ 3-10
4009494e
GM
689@subsubheading Question 3.10
690
691At the office we use one of those MS Exchange servers, can I use
692Gnus to read my mail from it?
693
694@subsubheading Answer
695
696Offer your administrator a pair of new running shoes for
697activating IMAP on the server and follow the instructions
698above.
699
2b968687 700@node FAQ 3-11
4009494e
GM
701@subsubheading Question 3.11
702
703Can I tell Gnus not to delete the mails on the server it
704retrieves via POP3?
705
706@subsubheading Answer
707
3cd23a35
KY
708Yes, if the POP3 server supports the UIDL control (maybe almost servers
709do it nowadays). To do that, add a @code{:leave VALUE} pair to each
710POP3 mail source. See @pxref{Mail Source Specifiers} for VALUE.
4009494e
GM
711
712@node FAQ 4 - Reading messages
713@subsection Reading messages
714
715@menu
2b968687
MB
716* FAQ 4-1:: When I enter a group, all read messages are gone. How to
717 view them again?
718* FAQ 4-2:: How to tell Gnus to show an important message every time
719 I enter a group, even when it's read?
720* FAQ 4-3:: How to view the headers of a message?
721* FAQ 4-4:: How to view the raw unformatted message?
722* FAQ 4-5:: How can I change the headers Gnus displays by default at
723 the top of the article buffer?
724* FAQ 4-6:: I'd like Gnus NOT to render HTML-mails but show me the
725 text part if it's available. How to do it?
726* FAQ 4-7:: Can I use some other browser than w3 to render my
727 HTML-mails?
728* FAQ 4-8:: Is there anything I can do to make poorly formatted
729 mails more readable?
730* FAQ 4-9:: Is there a way to automatically ignore posts by specific
731 authors or with specific words in the subject? And can I
732 highlight more interesting ones in some way?
1df7defd 733* FAQ 4-10:: How can I disable threading in some (e.g., mail-) groups,
2b968687
MB
734 or set other variables specific for some groups?
735* FAQ 4-11:: Can I highlight messages written by me and follow-ups to
736 those?
737* FAQ 4-12:: The number of total messages in a group which Gnus
738 displays in group buffer is by far to high, especially in mail
739 groups. Is this a bug?
740* FAQ 4-13:: I don't like the layout of summary and article buffer,
741 how to change it? Perhaps even a three pane display?
742* FAQ 4-14:: I don't like the way the Summary buffer looks, how to
743 tweak it?
744* FAQ 4-15:: How to split incoming mails in several groups?
4009494e
GM
745@end menu
746
2b968687 747@node FAQ 4-1
4009494e
GM
748@subsubheading Question 4.1
749
750When I enter a group, all read messages are gone. How to view them again?
751
752@subsubheading Answer
753
91af3942 754If you enter the group by saying
4009494e
GM
755@samp{RET}
756in group buffer with point over the group, only unread and ticked messages are loaded. Say
757@samp{C-u RET}
1df7defd 758instead to load all available messages. If you want only the 300 newest say
4009494e
GM
759@samp{C-u 300 RET}
760
761Loading only unread messages can be annoying if you have threaded view enabled, say
762
763@example
764(setq gnus-fetch-old-headers 'some)
765@end example
766@noindent
91af3942 767
4009494e 768in ~/.gnus.el to load enough old articles to prevent teared threads, replace 'some with t to load
91af3942 769all articles (Warning: Both settings enlarge the amount of data which is
4009494e
GM
770fetched when you enter a group and slow down the process of entering a group).
771
91af3942
PE
772If you already use Gnus 5.10, you can say
773@samp{/o N}
4009494e
GM
774In summary buffer to load the last N messages, this feature is not available in 5.8.8
775
776If you don't want all old messages, but the parent of the message you're just reading,
777you can say @samp{^}, if you want to retrieve the whole thread
778the message you're just reading belongs to, @samp{A T} is your friend.
779
2b968687 780@node FAQ 4-2
4009494e
GM
781@subsubheading Question 4.2
782
783How to tell Gnus to show an important message every time I
784enter a group, even when it's read?
785
786@subsubheading Answer
787
788You can tick important messages. To do this hit
789@samp{u} while point is in summary buffer
790over the message. When you want to remove the mark, hit
791either @samp{d} (this deletes the tick
792mark and set's unread mark) or @samp{M c}
793(which deletes all marks for the message).
794
2b968687 795@node FAQ 4-3
4009494e
GM
796@subsubheading Question 4.3
797
798How to view the headers of a message?
799
800@subsubheading Answer
801
91af3942 802Say @samp{t}
4009494e 803to show all headers, one more
91af3942 804@samp{t}
4009494e
GM
805hides them again.
806
2b968687 807@node FAQ 4-4
4009494e
GM
808@subsubheading Question 4.4
809
810How to view the raw unformatted message?
811
812@subsubheading Answer
813
91af3942
PE
814Say
815@samp{C-u g}
4009494e 816to show the raw message
91af3942 817@samp{g}
4009494e
GM
818returns to normal view.
819
2b968687 820@node FAQ 4-5
4009494e
GM
821@subsubheading Question 4.5
822
823How can I change the headers Gnus displays by default at
824the top of the article buffer?
825
826@subsubheading Answer
827
828The variable gnus-visible-headers controls which headers
829are shown, its value is a regular expression, header lines
830which match it are shown. So if you want author, subject,
831date, and if the header exists, Followup-To and MUA / NUA
832say this in ~/.gnus.el:
833
834@example
835(setq gnus-visible-headers
836 '("^From" "^Subject" "^Date" "^Newsgroups" "^Followup-To"
9360256a 837 "^User-Agent" "^X-Newsreader" "^X-Mailer"))
4009494e
GM
838@end example
839@noindent
840
2b968687 841@node FAQ 4-6
4009494e
GM
842@subsubheading Question 4.6
843
844I'd like Gnus NOT to render HTML-mails but show me the
845text part if it's available. How to do it?
846
847@subsubheading Answer
848
849Say
850
851@example
852(eval-after-load "mm-decode"
91af3942 853 '(progn
4009494e
GM
854 (add-to-list 'mm-discouraged-alternatives "text/html")
855 (add-to-list 'mm-discouraged-alternatives "text/richtext")))
856@end example
857@noindent
858
859in ~/.gnus.el. If you don't want HTML rendered, even if there's no text alternative add
860
861@example
862(setq mm-automatic-display (remove "text/html" mm-automatic-display))
863@end example
864@noindent
865
866too.
867
2b968687 868@node FAQ 4-7
4009494e
GM
869@subsubheading Question 4.7
870
871Can I use some other browser than w3 to render my HTML-mails?
872
873@subsubheading Answer
874
875Only if you use Gnus 5.10 or younger. In this case you've got the
876choice between w3, w3m, links, lynx and html2text, which
877one is used can be specified in the variable
878mm-text-html-renderer, so if you want links to render your
879mail say
880
881@example
882(setq mm-text-html-renderer 'links)
883@end example
884@noindent
885
2b968687 886@node FAQ 4-8
4009494e
GM
887@subsubheading Question 4.8
888
889Is there anything I can do to make poorly formatted mails
890more readable?
891
892@subsubheading Answer
893
894Gnus offers you several functions to "wash" incoming mail, you can
895find them if you browse through the menu, item
896Article->Washing. The most interesting ones are probably "Wrap
897long lines" (@samp{W w}), "Decode ROT13"
898(@samp{W r}) and "Outlook Deuglify" which repairs
899the dumb quoting used by many users of Microsoft products
900(@samp{W Y f} gives you full deuglify.
901See @samp{W Y C-h} or have a look at the menus for
902other deuglifications). Outlook deuglify is only available since
903Gnus 5.10.
904
2b968687 905@node FAQ 4-9
4009494e
GM
906@subsubheading Question 4.9
907
908Is there a way to automatically ignore posts by specific
909authors or with specific words in the subject? And can I
910highlight more interesting ones in some way?
911
912@subsubheading Answer
913
914You want Scoring. Scoring means, that you define rules
915which assign each message an integer value. Depending on
916the value the message is highlighted in summary buffer (if
917it's high, say +2000) or automatically marked read (if the
918value is low, say -800) or some other action happens.
919
920There are basically three ways of setting up rules which assign
921the scoring-value to messages. The first and easiest way is to set
922up rules based on the article you are just reading. Say you're
923reading a message by a guy who always writes nonsense and you want
924to ignore his messages in the future. Hit
925@samp{L}, to set up a rule which lowers the score.
926Now Gnus asks you which the criteria for lowering the Score shall
927be. Hit @samp{?} twice to see all possibilities,
928we want @samp{a} which means the author (the from
929header). Now Gnus wants to know which kind of matching we want.
930Hit either @samp{e} for an exact match or
931@samp{s} for substring-match and delete afterwards
932everything but the name to score down all authors with the given
933name no matter which email address is used. Now you need to tell
1df7defd 934Gnus when to apply the rule and how long it should last, hit
4009494e
GM
935@samp{p} to apply the rule now and let it last
936forever. If you want to raise the score instead of lowering it say
937@samp{I} instead of @samp{L}.
938
939You can also set up rules by hand. To do this say @samp{V
940f} in summary buffer. Then you are asked for the name
941of the score file, it's name.of.group.SCORE for rules valid in
942only one group or all.Score for rules valid in all groups. See the
943Gnus manual for the exact syntax, basically it's one big list
944whose elements are lists again. the first element of those lists
945is the header to score on, then one more list with what to match,
946which score to assign, when to expire the rule and how to do the
1df7defd 947matching. If you find me very interesting, you could add the
4009494e
GM
948following to your all.Score:
949
950@example
951(("references" ("hschmi22.userfqdn.rz-online.de" 500 nil s))
952 ("message-id" ("hschmi22.userfqdn.rz-online.de" 999 nil s)))
953@end example
954@noindent
955
956This would add 999 to the score of messages written by me
957and 500 to the score of messages which are a (possibly
958indirect) answer to a message written by me. Of course
959nobody with a sane mind would do this :-)
960
961The third alternative is adaptive scoring. This means Gnus
962watches you and tries to find out what you find
963interesting and what annoying and sets up rules
964which reflect this. Adaptive scoring can be a huge help
965when reading high traffic groups. If you want to activate
966adaptive scoring say
967
968@example
969(setq gnus-use-adaptive-scoring t)
970@end example
971@noindent
972
973in ~/.gnus.el.
974
2b968687 975@node FAQ 4-10
4009494e
GM
976@subsubheading Question 4.10
977
1df7defd 978How can I disable threading in some (e.g., mail-) groups, or
4009494e
GM
979set other variables specific for some groups?
980
981@subsubheading Answer
982
983While in group buffer move point over the group and hit
984@samp{G c}, this opens a buffer where you
985can set options for the group. At the bottom of the buffer
986you'll find an item that allows you to set variables
987locally for the group. To disable threading enter
988gnus-show-threads as name of variable and nil as
989value. Hit button done at the top of the buffer when
990you're ready.
991
2b968687 992@node FAQ 4-11
4009494e
GM
993@subsubheading Question 4.11
994
995Can I highlight messages written by me and follow-ups to
996those?
997
998@subsubheading Answer
999
1000Stop those "Can I ..." questions, the answer is always yes
1001in Gnus Country :-). It's a three step process: First we
1002make faces (specifications of how summary-line shall look
1003like) for those postings, then we'll give them some
1004special score and finally we'll tell Gnus to use the new
66627fa9 1005faces.
4009494e 1006
2b968687 1007@node FAQ 4-12
4009494e
GM
1008@subsubheading Question 4.12
1009
1010The number of total messages in a group which Gnus
1011displays in group buffer is by far to high, especially in
1012mail groups. Is this a bug?
1013
1014@subsubheading Answer
1015
1016No, that's a matter of design of Gnus, fixing this would
1017mean reimplementation of major parts of Gnus'
f99f1641 1018back ends. Gnus thinks "highest-article-number @minus{}
4009494e
GM
1019lowest-article-number = total-number-of-articles". This
1020works OK for Usenet groups, but if you delete and move
1021many messages in mail groups, this fails. To cure the
91af3942 1022symptom, enter the group via @samp{C-u RET}
4009494e
GM
1023(this makes Gnus get all messages), then
1024hit @samp{M P b} to mark all messages and
1025then say @samp{B m name.of.group} to move
1026all messages to the group they have been in before, they
1027get new message numbers in this process and the count is
1028right again (until you delete and move your mail to other
1029groups again).
1030
2b968687 1031@node FAQ 4-13
4009494e
GM
1032@subsubheading Question 4.13
1033
1034I don't like the layout of summary and article buffer, how
1035to change it? Perhaps even a three pane display?
1036
1037@subsubheading Answer
1038
1039You can control the windows configuration by calling the
1040function gnus-add-configuration. The syntax is a bit
1041complicated but explained very well in the manual node
1042"Window Layout". Some popular examples:
1043
1044Instead 25% summary 75% article buffer 35% summary and 65%
1045article (the 1.0 for article means "take the remaining
1046space"):
1047
1048@example
1049(gnus-add-configuration
1050 '(article (vertical 1.0 (summary .35 point) (article 1.0))))
1051@end example
1052@noindent
1053
1054A three pane layout, Group buffer on the left, summary
1055buffer top-right, article buffer bottom-right:
1056
1057@example
1058(gnus-add-configuration
1059 '(article
1060 (horizontal 1.0
9360256a
GM
1061 (vertical 25
1062 (group 1.0))
1063 (vertical 1.0
1064 (summary 0.25 point)
1065 (article 1.0)))))
4009494e
GM
1066(gnus-add-configuration
1067 '(summary
1068 (horizontal 1.0
9360256a
GM
1069 (vertical 25
1070 (group 1.0))
1071 (vertical 1.0
1072 (summary 1.0 point)))))
4009494e
GM
1073@end example
1074@noindent
1075
2b968687 1076@node FAQ 4-14
4009494e
GM
1077@subsubheading Question 4.14
1078
1079I don't like the way the Summary buffer looks, how to tweak it?
1080
1081@subsubheading Answer
1082
1083You've got to play around with the variable
a98edce9 1084gnus-summary-line-format. Its value is a string of
4009494e
GM
1085symbols which stand for things like author, date, subject
1086etc. A list of the available specifiers can be found in the
1087manual node "Summary Buffer Lines" and the often forgotten
a98edce9 1088node "Formatting Variables" and its sub-nodes. There
4009494e
GM
1089you'll find useful things like positioning the cursor and
1090tabulators which allow you a summary in table form, but
1091sadly hard tabulators are broken in 5.8.8.
1092
1093Since 5.10, Gnus offers you some very nice new specifiers,
1df7defd 1094e.g., %B which draws a thread-tree and %&user-date which
4009494e
GM
1095gives you a date where the details are dependent of the
1096articles age. Here's an example which uses both:
1097
1098@example
1099(setq gnus-summary-line-format ":%U%R %B %s %-60=|%4L |%-20,20f |%&user-date; \n")
1100@end example
1101@noindent
1102
1103resulting in:
1104
1105@example
1106:O Re: [Richard Stallman] rfc2047.el | 13 |Lars Magne Ingebrigt |Sat 23:06
1107:O Re: Revival of the ding-patches list | 13 |Lars Magne Ingebrigt |Sat 23:12
1108:R > Re: Find correct list of articles for a gro| 25 |Lars Magne Ingebrigt |Sat 23:16
1109:O \-> ... | 21 |Kai Grossjohann | 0:01
1110:R > Re: Cry for help: deuglify.el - moving stuf| 28 |Lars Magne Ingebrigt |Sat 23:34
1111:O \-> ... | 115 |Raymond Scholz | 1:24
1112:O \-> ... | 19 |Lars Magne Ingebrigt |15:33
1113:O Slow mailing list | 13 |Lars Magne Ingebrigt |Sat 23:49
1114:O Re: `@@' mark not documented | 13 |Lars Magne Ingebrigt |Sat 23:50
1115:R > Re: Gnus still doesn't count messages prope| 23 |Lars Magne Ingebrigt |Sat 23:57
1116:O \-> ... | 18 |Kai Grossjohann | 0:35
1117:O \-> ... | 13 |Lars Magne Ingebrigt | 0:56
1118@end example
1119@noindent
1120
2b968687 1121@node FAQ 4-15
4009494e
GM
1122@subsubheading Question 4.15
1123
1124How to split incoming mails in several groups?
1125
1126@subsubheading Answer
1127
1128Gnus offers two possibilities for splitting mail, the easy
1129nnmail-split-methods and the more powerful Fancy Mail
1130Splitting. I'll only talk about the first one, refer to
1131the manual, node "Fancy Mail Splitting" for the latter.
1132
1133The value of nnmail-split-methods is a list, each element
1134is a list which stands for a splitting rule. Each rule has
1135the form "group where matching articles should go to",
1136"regular expression which has to be matched", the first
1137rule which matches wins. The last rule must always be a
1138general rule (regular expression .*) which denotes where
1139articles should go which don't match any other rule. If
1140the folder doesn't exist yet, it will be created as soon
1141as an article lands there. By default the mail will be
91af3942 1142send to all groups whose rules match. If you
4009494e
GM
1143don't want that (you probably don't want), say
1144
1145@example
1146(setq nnmail-crosspost nil)
1147@end example
1148@noindent
1149
1150in ~/.gnus.el.
1151
1152An example might be better than thousand words, so here's
1153my nnmail-split-methods. Note that I send duplicates in a
1154special group and that the default group is spam, since I
1155filter all mails out which are from some list I'm
1156subscribed to or which are addressed directly to me
1157before. Those rules kill about 80% of the Spam which
1158reaches me (Email addresses are changed to prevent spammers
1159from using them):
1160
1161@example
1162(setq nnmail-split-methods
1163 '(("duplicates" "^Gnus-Warning:.*duplicate")
1164 ("XEmacs-NT" "^\\(To:\\|CC:\\).*localpart@@xemacs.invalid.*")
1165 ("Gnus-Tut" "^\\(To:\\|CC:\\).*localpart@@socha.invalid.*")
1166 ("tcsh" "^\\(To:\\|CC:\\).*localpart@@mx.gw.invalid.*")
1167 ("BAfH" "^\\(To:\\|CC:\\).*localpart@@.*uni-muenchen.invalid.*")
1168 ("Hamster-src" "^\\(CC:\\|To:\\).*hamster-sourcen@@yahoogroups.\\(de\\|com\\).*")
1169 ("Tagesschau" "^From: tagesschau <localpart@@www.tagesschau.invalid>$")
1170 ("Replies" "^\\(CC:\\|To:\\).*localpart@@Frank-Schmitt.invalid.*")
1171 ("EK" "^From:.*\\(localpart@@privateprovider.invalid\\|localpart@@workplace.invalid\\).*")
1172 ("Spam" "^Content-Type:.*\\(ks_c_5601-1987\\|EUC-KR\\|big5\\|iso-2022-jp\\).*")
1173 ("Spam" "^Subject:.*\\(This really work\\|XINGA\\|ADV:\\|XXX\\|adult\\|sex\\).*")
1174 ("Spam" "^Subject:.*\\(\=\?ks_c_5601-1987\?\\|\=\?euc-kr\?\\|\=\?big5\?\\).*")
1175 ("Spam" "^X-Mailer:\\(.*BulkMailer.*\\|.*MIME::Lite.*\\|\\)")
1176 ("Spam" "^X-Mailer:\\(.*CyberCreek Avalanche\\|.*http\:\/\/GetResponse\.com\\)")
1177 ("Spam" "^From:.*\\(verizon\.net\\|prontomail\.com\\|money\\|ConsumerDirect\\).*")
1178 ("Spam" "^Delivered-To: GMX delivery to spamtrap@@gmx.invalid$")
1179 ("Spam" "^Received: from link2buy.com")
1180 ("Spam" "^CC: .*azzrael@@t-online.invalid")
1181 ("Spam" "^X-Mailer-Version: 1.50 BETA")
1182 ("Uni" "^\\(CC:\\|To:\\).*localpart@@uni-koblenz.invalid.*")
91af3942 1183 ("Inbox" "^\\(CC:\\|To:\\).*\\(my\ name\\|address@@one.invalid\\|address@@two.invalid\\)")
4009494e
GM
1184 ("Spam" "")))
1185@end example
1186@noindent
1187
1188@node FAQ 5 - Composing messages
1189@subsection Composing messages
1190
1191@menu
2b968687
MB
1192* FAQ 5-1:: What are the basic commands I need to know for sending
1193 mail and postings?
1194* FAQ 5-2:: How to enable automatic word-wrap when composing
1195 messages?
1196* FAQ 5-3:: How to set stuff like From, Organization, Reply-To,
1197 signature...?
65e7ca35 1198* FAQ 5-4:: Can I set things like From, Signature etc. group based on
2b968687
MB
1199 the group I post too?
1200* FAQ 5-5:: Is there a spell-checker? Perhaps even on-the-fly
1201 spell-checking?
1202* FAQ 5-6:: Can I set the dictionary based on the group I'm posting
1203 to?
1204* FAQ 5-7:: Is there some kind of address-book, so I needn't
1205 remember all those email addresses?
1206* FAQ 5-8:: Sometimes I see little images at the top of article
1207 buffer. What's that and how can I send one with my postings,
1208 too?
1209* FAQ 5-9:: Sometimes I accidentally hit r instead of f in
1210 newsgroups. Can Gnus warn me, when I'm replying by mail in
1211 newsgroups?
1212* FAQ 5-10:: How to tell Gnus not to generate a sender header?
1213* FAQ 5-11:: I want Gnus to locally store copies of my send mail and
1214 news, how to do it?
1215* FAQ 5-12:: I want Gnus to kill the buffer after successful sending
1216 instead of keeping it alive as "Sent mail to...", how to do it?
1217* FAQ 5-13:: People tell me my Message-IDs are not correct, why
1218 aren't they and how to fix it?
4009494e
GM
1219@end menu
1220
2b968687 1221@node FAQ 5-1
4009494e
GM
1222@subsubheading Question 5.1
1223
1224What are the basic commands I need to know for sending mail and postings?
1225
1226@subsubheading Answer
1227
1228To start composing a new mail hit @samp{m}
1229either in Group or Summary buffer, for a posting, it's
1230either @samp{a} in Group buffer and
1231filling the Newsgroups header manually
1232or @samp{a} in the Summary buffer of the
1233group where the posting shall be send to. Replying by mail
1234is
1235@samp{r} if you don't want to cite the
1236author, or import the cited text manually and
1237@samp{R} to cite the text of the original
1238message. For a follow up to a newsgroup, it's
1239@samp{f} and @samp{F}
1240(analogously to @samp{r} and
1241@samp{R}).
1242
1243Enter new headers above the line saying "--text follows
1244this line--", enter the text below the line. When ready
1245hit @samp{C-c C-c}, to send the message,
1246if you want to finish it later hit @samp{C-c
1247C-d} to save it in the drafts group, where you
1248can start editing it again by saying @samp{D
1249e}.
1250
2b968687 1251@node FAQ 5-2
4009494e
GM
1252@subsubheading Question 5.2
1253
1254How to enable automatic word-wrap when composing messages?
1255
1256@subsubheading Answer
1257
01c52d31
MB
1258Starting from No Gnus, automatic word-wrap is already enabled by
1259default, see the variable message-fill-column.
1260
1261For other versions of Gnus, say
4009494e
GM
1262
1263@example
01c52d31
MB
1264(unless (boundp 'message-fill-column)
1265 (add-hook 'message-mode-hook
1266 (lambda ()
1267 (setq fill-column 72)
1268 (turn-on-auto-fill))))
4009494e
GM
1269@end example
1270@noindent
1271
01c52d31
MB
1272in ~/.gnus.el.
1273
2b968687
MB
1274You can reformat a paragraph by hitting @samp{M-q}
1275(as usual).
4009494e 1276
2b968687 1277@node FAQ 5-3
4009494e
GM
1278@subsubheading Question 5.3
1279
1280How to set stuff like From, Organization, Reply-To, signature...?
1281
1282@subsubheading Answer
1283
1284There are other ways, but you should use posting styles
1285for this. (See below why).
1286This example should make the syntax clear:
1287
1288@example
1289(setq gnus-posting-styles
1290 '((".*"
1291 (name "Frank Schmitt")
1292 (address "me@@there.invalid")
1293 (organization "Hamme net, kren mer och nimmi")
1294 (signature-file "~/.signature")
1295 ("X-SampleHeader" "foobar")
1296 (eval (setq some-variable "Foo bar")))))
1297@end example
1298@noindent
1299
1300The ".*" means that this settings are the default ones
1301(see below), valid values for the first element of the
1302following lists are signature, signature-file,
1303organization, address, name or body. The attribute name
1304can also be a string. In that case, this will be used as
1305a header name, and the value will be inserted in the
1306headers of the article; if the value is `nil', the header
1307name will be removed. You can also say (eval (foo bar)),
1308then the function foo will be evaluated with argument bar
1309and the result will be thrown away.
1310
2b968687 1311@node FAQ 5-4
4009494e
GM
1312@subsubheading Question 5.4
1313
1314Can I set things like From, Signature etc group based on the group I post too?
1315
1316@subsubheading Answer
1317
1318That's the strength of posting styles. Before, we used ".*"
1319to set the default for all groups. You can use a regexp
1320like "^gmane" and the following settings are only applied
1321to postings you send to the gmane hierarchy, use
1322".*binaries" instead and they will be applied to postings
1323send to groups containing the string binaries in their
1324name etc.
1325
1326You can instead of specifying a regexp specify a function
1327which is evaluated, only if it returns true, the
1328corresponding settings take effect. Two interesting
1329candidates for this are message-news-p which returns t if
1330the current Group is a newsgroup and the corresponding
1331message-mail-p.
1332
1333Note that all forms that match are applied, that means in
1334the example below, when I post to
1335gmane.mail.spam.spamassassin.general, the settings under
1336".*" are applied and the settings under message-news-p and
1337those under "^gmane" and those under
1338"^gmane\\.mail\\.spam\\.spamassassin\\.general$". Because
1339of this put general settings at the top and specific ones
1340at the bottom.
1341
1342@example
1343(setq gnus-posting-styles
1344 '((".*" ;;default
1345 (name "Frank Schmitt")
1346 (organization "Hamme net, kren mer och nimmi")
1347 (signature-file "~/.signature"))
1348 ((message-news-p) ;;Usenet news?
1349 (address "mySpamTrap@@Frank-Schmitt.invalid")
1350 (reply-to "hereRealRepliesOnlyPlease@@Frank-Schmitt.invalid"))
1351 ((message-mail-p) ;;mail?
1352 (address "usedForMails@@Frank-Schmitt.invalid"))
1353 ("^gmane" ;;this is mail, too in fact
1354 (address "usedForMails@@Frank-Schmitt.invalid")
1355 (reply-to nil))
1356 ("^gmane\\.mail\\.spam\\.spamassassin\\.general$"
1357 (eval (set (make-local-variable 'message-sendmail-envelope-from)
1358 "Azzrael@@rz-online.de")))))
1359@end example
1360@noindent
1361
2b968687 1362@node FAQ 5-5
4009494e
GM
1363@subsubheading Question 5.5
1364
1365Is there a spell-checker? Perhaps even on-the-fly spell-checking?
1366
1367@subsubheading Answer
1368
1369You can use ispell.el to spell-check stuff in Emacs. So the
1370first thing to do is to make sure that you've got either
1371@uref{http://fmg-www.cs.ucla.edu/fmg-members/geoff/ispell.html, ispell}
1372or @uref{http://aspell.sourceforge.net/, aspell}
91af3942 1373installed and in your Path. Then you need
4009494e 1374@uref{http://www.kdstevens.com/~stevens/ispell-page.html, ispell.el}
91af3942 1375and for on-the-fly spell-checking
66627fa9 1376@uref{http://www-sop.inria.fr/members/Manuel.Serrano/flyspell/flyspell.html, flyspell.el}.
91af3942
PE
1377Ispell.el is shipped with Emacs and available through the XEmacs package system,
1378flyspell.el is shipped with Emacs and part of XEmacs text-modes package which is
1379available through the package system, so there should be no need to install them
4009494e
GM
1380manually.
1381
1382Ispell.el assumes you use ispell, if you choose aspell say
1383
1384@example
1385(setq ispell-program-name "aspell")
1386@end example
1387@noindent
91af3942 1388
4009494e
GM
1389in your Emacs configuration file.
1390
1391If you want your outgoing messages to be spell-checked, say
1392
1393@example
1394(add-hook 'message-send-hook 'ispell-message)
1395@end example
1396@noindent
1397
1398In your ~/.gnus.el, if you prefer on-the-fly spell-checking say
1399
1400@example
1401(add-hook 'message-mode-hook (lambda () (flyspell-mode 1)))
1402@end example
1403@noindent
1404
2b968687 1405@node FAQ 5-6
4009494e
GM
1406@subsubheading Question 5.6
1407
1408Can I set the dictionary based on the group I'm posting to?
1409
1410@subsubheading Answer
1411
1412Yes, say something like
1413
1414@example
1415(add-hook 'gnus-select-group-hook
1416 (lambda ()
1417 (cond
1418 ((string-match
1419 "^de\\." (gnus-group-real-name gnus-newsgroup-name))
1420 (ispell-change-dictionary "deutsch8"))
1421 (t
1422 (ispell-change-dictionary "english")))))
1423@end example
1424@noindent
91af3942 1425
4009494e
GM
1426in ~/.gnus.el. Change "^de\\." and "deutsch8" to something
1427that suits your needs.
1428
2b968687 1429@node FAQ 5-7
4009494e
GM
1430@subsubheading Question 5.7
1431
1432Is there some kind of address-book, so I needn't remember
1433all those email addresses?
1434
1435@subsubheading Answer
1436
1437There's an very basic solution for this, mail aliases.
1438You can store your mail addresses in a ~/.mailrc file using a simple
1439alias syntax:
1440
1441@example
9360256a 1442alias al "Al <al@@english-heritage.invalid>"
4009494e
GM
1443@end example
1444@noindent
1445
1446Then typing your alias (followed by a space or punctuation
1447character) on a To: or Cc: line in the message buffer will
1448cause Gnus to insert the full address for you. See the
1449node "Mail Aliases" in Message (not Gnus) manual for
1450details.
1451
91af3942 1452However, what you really want is the Insidious Big Brother
4009494e
GM
1453Database bbdb. Get it through the XEmacs package system or from
1454@uref{http://bbdb.sourceforge.net/, bbdb's homepage}.
1455Now place the following in ~/.gnus.el, to activate bbdb for Gnus:
1456
1457@example
1458(require 'bbdb)
1459(bbdb-initialize 'gnus 'message)
1460@end example
1461@noindent
1462
1463Now you probably want some general bbdb configuration,
1464place them in ~/.emacs:
1465
1466@example
1467(require 'bbdb)
91af3942 1468;;If you don't live in Northern America, you should disable the
4009494e
GM
1469;;syntax check for telephone numbers by saying
1470(setq bbdb-north-american-phone-numbers-p nil)
1471;;Tell bbdb about your email address:
1472(setq bbdb-user-mail-names
1473 (regexp-opt '("Your.Email@@here.invalid"
1474 "Your.other@@mail.there.invalid")))
1475;;cycling while completing email addresses
1476(setq bbdb-complete-name-allow-cycling t)
1477;;No popup-buffers
1478(setq bbdb-use-pop-up nil)
1479@end example
1480@noindent
1481
1482Now you should be ready to go. Say @samp{M-x bbdb RET
1483RET} to open a bbdb buffer showing all
1484entries. Say @samp{c} to create a new
1485entry, @samp{b} to search your BBDB and
1486@samp{C-o} to add a new field to an
1487entry. If you want to add a sender to the BBDB you can
1488also just hit `:' on the posting in the summary buffer and
1489you are done. When you now compose a new mail,
1490hit @samp{TAB} to cycle through know
1491recipients.
1492
2b968687 1493@node FAQ 5-8
4009494e
GM
1494@subsubheading Question 5.8
1495
1496Sometimes I see little images at the top of article
1497buffer. What's that and how can I send one with my
1498postings, too?
1499
1500@subsubheading Answer
1501
1502Those images are called X-Faces. They are 48*48 pixel b/w
1503pictures, encoded in a header line. If you want to include
1504one in your posts, you've got to convert some image to a
1505X-Face. So fire up some image manipulation program (say
1506Gimp), open the image you want to include, cut out the
1507relevant part, reduce color depth to 1 bit, resize to
150848*48 and save as bitmap. Now you should get the compface
91af3942 1509package from
4009494e
GM
1510@uref{ftp://ftp.cs.indiana.edu:/pub/faces/, this site}.
1511and create the actual X-face by saying
1512
1513@example
1514cat file.xbm | xbm2ikon | compface > file.face
1515cat file.face | sed 's/\\/\\\\/g;s/\"/\\\"/g;' > file.face.quoted
1516@end example
1517@noindent
1518
91af3942 1519If you can't use compface, there's an online X-face converter at
4009494e 1520@uref{http://www.dairiki.org/xface/}.
f2a538a2
GM
1521If you use MS Windows, you could also use the WinFace program,
1522which used to be available from
1523@indicateurl{http://www.xs4all.nl/~walterln/winface/}.
4009494e
GM
1524Now you only have to tell Gnus to include the X-face in your postings by saying
1525
1526@example
1527(setq message-default-headers
1528 (with-temp-buffer
1529 (insert "X-Face: ")
1530 (insert-file-contents "~/.xface")
1531 (buffer-string)))
1532@end example
1533@noindent
1534
1535in ~/.gnus.el. If you use Gnus 5.10, you can simply add an entry
1536
1537@example
1538(x-face-file "~/.xface")
1539@end example
1540@noindent
1541
1542to gnus-posting-styles.
1543
2b968687 1544@node FAQ 5-9
4009494e
GM
1545@subsubheading Question 5.9
1546
1547Sometimes I accidentally hit r instead of f in
1548newsgroups. Can Gnus warn me, when I'm replying by mail in
1549newsgroups?
1550
1551@subsubheading Answer
1552
1553Put this in ~/.gnus.el:
1554
1555@example
1556(setq gnus-confirm-mail-reply-to-news t)
1557@end example
1558@noindent
1559
1560if you already use Gnus 5.10, if you still use 5.8.8 or
15615.9 try this instead:
1562
1563@example
1564(eval-after-load "gnus-msg"
1565 '(unless (boundp 'gnus-confirm-mail-reply-to-news)
1566 (defadvice gnus-summary-reply (around reply-in-news activate)
1567 "Request confirmation when replying to news."
1568 (interactive)
1569 (when (or (not (gnus-news-group-p gnus-newsgroup-name))
1570 (y-or-n-p "Really reply by mail to article author? "))
1571 ad-do-it))))
1572@end example
1573@noindent
1574
2b968687 1575@node FAQ 5-10
4009494e
GM
1576@subsubheading Question 5.10
1577
1578How to tell Gnus not to generate a sender header?
1579
1580@subsubheading Answer
1581
1582Since 5.10 Gnus doesn't generate a sender header by
1583default. For older Gnus' try this in ~/.gnus.el:
1584
1585@example
1586(eval-after-load "message"
1587 '(add-to-list 'message-syntax-checks '(sender . disabled)))
1588@end example
1589@noindent
1590
2b968687 1591@node FAQ 5-11
4009494e
GM
1592@subsubheading Question 5.11
1593
1594I want Gnus to locally store copies of my send mail and
1595news, how to do it?
1596
1597@subsubheading Answer
1598
1599You must set the variable gnus-message-archive-group to do
1600this. You can set it to a string giving the name of the
1601group where the copies shall go or like in the example
1602below use a function which is evaluated and which returns
1603the group to use.
1604
1605@example
1606(setq gnus-message-archive-group
9360256a
GM
1607 '((if (message-news-p)
1608 "nnml:Send-News"
1609 "nnml:Send-Mail")))
4009494e
GM
1610@end example
1611@noindent
1612
2b968687 1613@node FAQ 5-12
4009494e
GM
1614@subsubheading Question 5.12
1615
2b968687
MB
1616I want Gnus to kill the buffer after successful sending instead of keeping
1617it alive as "Sent mail to...", how to do it?
1618
1619@subsubheading Answer
1620
1621Add this to your ~/.gnus:
1622
1623@example
1624(setq message-kill-buffer-on-exit t)
1625@end example
1626@noindent
1627
1628@node FAQ 5-13
1629@subsubheading Question 5.13
1630
4009494e
GM
1631People tell me my Message-IDs are not correct, why
1632aren't they and how to fix it?
1633
1634@subsubheading Answer
1635
1636The message-ID is an unique identifier for messages you
1637send. To make it unique, Gnus need to know which machine
1638name to put after the "@@". If the name of the machine
1639where Gnus is running isn't suitable (it probably isn't
1640at most private machines) you can tell Gnus what to use
1641by saying:
1642
1643@example
1644(setq message-user-fqdn "yourmachine.yourdomain.tld")
1645@end example
1646@noindent
1647
1648in ~/.gnus.el. If you use Gnus 5.9 or earlier, you can use this
91af3942 1649instead (works for newer versions as well):
4009494e
GM
1650
1651@example
1652(eval-after-load "message"
1653 '(let ((fqdn "yourmachine.yourdomain.tld"));; <-- Edit this!
1654 (if (boundp 'message-user-fqdn)
1655 (setq message-user-fqdn fqdn)
1656 (gnus-message 1 "Redefining `message-make-fqdn'.")
1657 (defun message-make-fqdn ()
1658 "Return user's fully qualified domain name."
1659 fqdn))))
1660@end example
1661@noindent
1662
1663If you have no idea what to insert for
1664"yourmachine.yourdomain.tld", you've got several
1665choices. You can either ask your provider if he allows
1666you to use something like
1667yourUserName.userfqdn.provider.net, or you can use
1668somethingUnique.yourdomain.tld if you own the domain
1669yourdomain.tld, or you can register at a service which
01c52d31 1670gives private users a FQDN for free.
4009494e
GM
1671
1672Finally you can tell Gnus not to generate a Message-ID
1673for News at all (and letting the server do the job) by saying
1674
1675@example
1676(setq message-required-news-headers
1677 (remove' Message-ID message-required-news-headers))
1678@end example
1679@noindent
1680
1681you can also tell Gnus not to generate Message-IDs for mail by saying
1682
1683@example
1684(setq message-required-mail-headers
1685 (remove' Message-ID message-required-mail-headers))
1686@end example
1687@noindent
1688
1689, however some mail servers don't generate proper
1690Message-IDs, too, so test if your Mail Server behaves
1691correctly by sending yourself a Mail and looking at the Message-ID.
1692
1693@node FAQ 6 - Old messages
1694@subsection Old messages
1695
1696@menu
2b968687
MB
1697* FAQ 6-1:: How to import my old mail into Gnus?
1698* FAQ 6-2:: How to archive interesting messages?
1699* FAQ 6-3:: How to search for a specific message?
1700* FAQ 6-4:: How to get rid of old unwanted mail?
1701* FAQ 6-5:: I want that all read messages are expired (at least in
1702 some groups). How to do it?
1703* FAQ 6-6:: I don't want expiration to delete my mails but to move
1704 them to another group.
4009494e
GM
1705@end menu
1706
2b968687 1707@node FAQ 6-1
4009494e
GM
1708@subsubheading Question 6.1
1709
1710How to import my old mail into Gnus?
1711
1712@subsubheading Answer
1713
1714The easiest way is to tell your old mail program to
1715export the messages in mbox format. Most Unix mailers
1716are able to do this, if you come from the MS Windows
1717world, you may find tools at
1718@uref{http://mbx2mbox.sourceforge.net/}.
1719
1720Now you've got to import this mbox file into Gnus. To do
1721this, create a nndoc group based on the mbox file by
1722saying @samp{G f /path/file.mbox RET} in
1723Group buffer. You now have read-only access to your
1724mail. If you want to import the messages to your normal
1725Gnus mail groups hierarchy, enter the nndoc group you've
1726just created by saying @samp{C-u RET}
1727(thus making sure all messages are retrieved), mark all
1728messages by saying @samp{M P b} and
1729either copy them to the desired group by saying
1730@samp{B c name.of.group RET} or send them
1731through nnmail-split-methods (respool them) by saying
1732@samp{B r}.
1733
2b968687 1734@node FAQ 6-2
4009494e
GM
1735@subsubheading Question 6.2
1736
1737How to archive interesting messages?
1738
1739@subsubheading Answer
1740
1741If you stumble across an interesting message, say in
1742gnu.emacs.gnus and want to archive it there are several
1743solutions. The first and easiest is to save it to a file
1744by saying @samp{O f}. However, wouldn't
1745it be much more convenient to have more direct access to
1746the archived message from Gnus? If you say yes, put this
1747snippet by Frank Haun <pille3003@@fhaun.de> in
1748~/.gnus.el:
1749
1750@example
1751(defun my-archive-article (&optional n)
1df7defd 1752 "Copies one or more article(s) to a corresponding `nnml:' group, e.g.,
4009494e
GM
1753`gnus.ding' goes to `nnml:1.gnus.ding'. And `nnml:List-gnus.ding' goes
1754to `nnml:1.List-gnus-ding'.
1755
1756Use process marks or mark a region in the summary buffer to archive
1757more then one article."
1758 (interactive "P")
1759 (let ((archive-name
1760 (format
1761 "nnml:1.%s"
1762 (if (featurep 'xemacs)
1763 (replace-in-string gnus-newsgroup-name "^.*:" "")
1764 (replace-regexp-in-string "^.*:" "" gnus-newsgroup-name)))))
1765 (gnus-summary-copy-article n archive-name)))
1766@end example
1767@noindent
1768
1769You can now say @samp{M-x
1770my-archive-article} in summary buffer to
1771archive the article under the cursor in a nnml
1772group. (Change nnml to your preferred back end)
1773
1774Of course you can also make sure the cache is enabled by saying
1775
1776@example
1777(setq gnus-use-cache t)
1778@end example
1779@noindent
1780
1781then you only have to set either the tick or the dormant
1782mark for articles you want to keep, setting the read
1783mark will remove them from cache.
1784
2b968687 1785@node FAQ 6-3
4009494e
GM
1786@subsubheading Question 6.3
1787
1788How to search for a specific message?
1789
1790@subsubheading Answer
1791
1792There are several ways for this, too. For a posting from
1793a Usenet group the easiest solution is probably to ask
1794@uref{http://groups.google.com, groups.google.com},
1795if you found the posting there, tell Google to display
1796the raw message, look for the message-id, and say
1797@samp{M-^ the@@message.id RET} in a
1798summary buffer.
1799Since Gnus 5.10 there's also a Gnus interface for
1800groups.google.com which you can call with
1801@samp{G W}) in group buffer.
1802
1803Another idea which works for both mail and news groups
1804is to enter the group where the message you are
1805searching is and use the standard Emacs search
1806@samp{C-s}, it's smart enough to look at
1807articles in collapsed threads, too. If you want to
1808search bodies, too try @samp{M-s}
1809instead. Further on there are the
1810gnus-summary-limit-to-foo functions, which can help you,
1811too.
1812
1813Of course you can also use grep to search through your
1814local mail, but this is both slow for big archives and
1815inconvenient since you are not displaying the found mail
f2a538a2 1816in Gnus. Here nnir comes into action. Nnir is a front end
4009494e 1817to search engines like swish-e or swish++ and
f2a538a2 1818others. You index your mail with one of those search
333f9019 1819engines and with the help of nnir you can search through
4009494e 1820the indexed mail and generate a temporary group with all
f2a538a2
GM
1821messages which met your search criteria. If this sounds
1822cool to you, get nnir.el from
1823@c FIXME Isn't this file in Gnus?
1824@ignore
1825@c Dead link 2013/7.
4009494e 1826@uref{ftp://ls6-ftp.cs.uni-dortmund.de/pub/src/emacs/}
f2a538a2
GM
1827or
1828@end ignore
1829@uref{ftp://ftp.is.informatik.uni-duisburg.de/pub/src/emacs/}.
4009494e
GM
1830Instructions on how to use it are at the top of the file.
1831
2b968687 1832@node FAQ 6-4
4009494e
GM
1833@subsubheading Question 6.4
1834
1835How to get rid of old unwanted mail?
1836
1837@subsubheading Answer
1838
1839You can of course just mark the mail you don't need
1840anymore by saying @samp{#} with point
1841over the mail and then say @samp{B DEL}
1842to get rid of them forever. You could also instead of
1843actually deleting them, send them to a junk-group by
1844saying @samp{B m nnml:trash-bin} which
1845you clear from time to time, but both are not the intended
1846way in Gnus.
1847
1848In Gnus, we let mail expire like news expires on a news
1849server. That means you tell Gnus the message is
1850expirable (you tell Gnus "I don't need this mail
1851anymore") by saying @samp{E} with point
1852over the mail in summary buffer. Now when you leave the
1853group, Gnus looks at all messages which you marked as
1854expirable before and if they are old enough (default is
1855older than a week) they are deleted.
1856
2b968687 1857@node FAQ 6-5
4009494e
GM
1858@subsubheading Question 6.5
1859
1860I want that all read messages are expired (at least in
1861some groups). How to do it?
1862
1863@subsubheading Answer
1864
1df7defd 1865If you want all read messages to be expired (e.g., in
4009494e
GM
1866mailing lists where there's an online archive), you've
1867got two choices: auto-expire and
1868total-expire. Auto-expire means, that every article
1869which has no marks set and is selected for reading is
1870marked as expirable, Gnus hits @samp{E}
1871for you every time you read a message. Total-expire
1872follows a slightly different approach, here all article
1873where the read mark is set are expirable.
1874
1875To activate auto-expire, include auto-expire in the
1876Group parameters for the group. (Hit @samp{G
1877c} in summary buffer with point over the
1878group to change group parameters). For total-expire add
1879total-expire to the group-parameters.
1880
1881Which method you choose is merely a matter of taste:
1882Auto-expire is faster, but it doesn't play together with
1883Adaptive Scoring, so if you want to use this feature,
1884you should use total-expire.
1885
1886If you want a message to be excluded from expiration in
1887a group where total or auto expire is active, set either
1888tick (hit @samp{u}) or dormant mark (hit
1889@samp{u}), when you use auto-expire, you
1890can also set the read mark (hit
1891@samp{d}).
1892
2b968687 1893@node FAQ 6-6
4009494e
GM
1894@subsubheading Question 6.6
1895
1896I don't want expiration to delete my mails but to move them
1897to another group.
1898
1899@subsubheading Answer
1900
1901Say something like this in ~/.gnus.el:
1902
1903@example
1904(setq nnmail-expiry-target "nnml:expired")
1905@end example
1906@noindent
1907
1908(If you want to change the value of nnmail-expiry-target
1909on a per group basis see the question "How can I disable
1df7defd 1910threading in some (e.g., mail-) groups, or set other
4009494e
GM
1911variables specific for some groups?")
1912
1913@node FAQ 7 - Gnus in a dial-up environment
1914@subsection Gnus in a dial-up environment
1915
1916@menu
2b968687
MB
1917* FAQ 7-1:: I don't have a permanent connection to the net, how can I
1918 minimize the time I've got to be connected?
1919* FAQ 7-2:: So what was this thing about the Agent?
1920* FAQ 7-3:: I want to store article bodies on disk, too. How to do
1921 it?
1922* FAQ 7-4:: How to tell Gnus not to try to send mails / postings
1923 while I'm offline?
4009494e
GM
1924@end menu
1925
2b968687 1926@node FAQ 7-1
4009494e
GM
1927@subsubheading Question 7.1
1928
1929I don't have a permanent connection to the net, how can
1930I minimize the time I've got to be connected?
1931
1932@subsubheading Answer
1933
1934You've got basically two options: Either you use the
1935Gnus Agent (see below) for this, or you can install
1936programs which fetch your news and mail to your local
1937disk and Gnus reads the stuff from your local
1938machine.
1939
1940If you want to follow the second approach, you need a
1941program which fetches news and offers them to Gnus, a
1942program which does the same for mail and a program which
1943receives the mail you write from Gnus and sends them
1944when you're online.
1945
1946Let's talk about Unix systems first: For the news part,
91af3942 1947the easiest solution is a small nntp server like
4009494e
GM
1948@uref{http://www.leafnode.org/, Leafnode} or
1949@uref{http://infa.abo.fi/~patrik/sn/, sn},
1950of course you can also install a full featured news
91af3942 1951server like
f2a538a2 1952@uref{http://www.isc.org/software/inn/, inn}.
4009494e
GM
1953Then you want to fetch your Mail, popular choices
1954are @uref{http://www.catb.org/~esr/fetchmail/, fetchmail}
66627fa9 1955and @uref{http://pyropus.ca/software/getmail/, getmail}.
4009494e
GM
1956You should tell those to write the mail to your disk and
1957Gnus to read it from there. Last but not least the mail
1958sending part: This can be done with every MTA like
1959@uref{http://www.sendmail.org/, sendmail},
1960@uref{http://www.qmail.org/, postfix},
1961@uref{http://www.exim.org/, exim} or
1962@uref{http://www.qmail.org/, qmail}.
1963
91af3942
PE
1964On windows boxes I'd vote for
1965@uref{http://www.tglsoft.de/, Hamster},
4009494e
GM
1966it's a small freeware, open-source program which fetches
1967your mail and news from remote servers and offers them
1968to Gnus (or any other mail and/or news reader) via nntp
1df7defd 1969respectively POP3 or IMAP@. It also includes a smtp
4009494e
GM
1970server for receiving mails from Gnus.
1971
2b968687 1972@node FAQ 7-2
4009494e
GM
1973@subsubheading Question 7.2
1974
1975So what was this thing about the Agent?
1976
1977@subsubheading Answer
1978
1979The Gnus agent is part of Gnus, it allows you to fetch
1980mail and news and store them on disk for reading them
1981later when you're offline. It kind of mimics offline
1df7defd 1982newsreaders like Forte Agent. If you want to use
4009494e
GM
1983the Agent place the following in ~/.gnus.el if you are
1984still using 5.8.8 or 5.9 (it's the default since 5.10):
1985
1986@example
1987(setq gnus-agent t)
1988@end example
1989@noindent
1990
1991Now you've got to select the servers whose groups can be
1992stored locally. To do this, open the server buffer
1993(that is press @samp{^} while in the
1994group buffer). Now select a server by moving point to
1995the line naming that server. Finally, agentize the
1996server by typing @samp{J a}. If you
1997make a mistake, or change your mind, you can undo this
1998action by typing @samp{J r}. When
1999you're done, type 'q' to return to the group buffer.
2000Now the next time you enter a group on a agentized
2001server, the headers will be stored on disk and read from
2002there the next time you enter the group.
2003
2b968687 2004@node FAQ 7-3
4009494e
GM
2005@subsubheading Question 7.3
2006
2007I want to store article bodies on disk, too. How to do it?
2008
2009@subsubheading Answer
2010
2011You can tell the agent to automatically fetch the bodies
2012of articles which fulfill certain predicates, this is
2013done in a special buffer which can be reached by
2014saying @samp{J c} in group
2015buffer. Please refer to the documentation for
2016information which predicates are possible and how
2017exactly to do it.
2018
2019Further on you can tell the agent manually which
2020articles to store on disk. There are two ways to do
2021this: Number one: In the summary buffer, process mark a
2022set of articles that shall be stored in the agent by
2023saying @samp{#} with point over the
2024article and then type @samp{J s}. The
2025other possibility is to set, again in the summary
2026buffer, downloadable (%) marks for the articles you
2027want by typing @samp{@@} with point over
2028the article and then typing @samp{J u}.
2029What's the difference? Well, process marks are erased as
2030soon as you exit the summary buffer while downloadable
2031marks are permanent. You can actually set downloadable
2032marks in several groups then use fetch session ('J s' in
2033the GROUP buffer) to fetch all of those articles. The
2034only downside is that fetch session also fetches all of
2035the headers for every selected group on an agentized
2036server. Depending on the volume of headers, the initial
2037fetch session could take hours.
2038
2b968687 2039@node FAQ 7-4
4009494e
GM
2040@subsubheading Question 7.4
2041
2042How to tell Gnus not to try to send mails / postings
2043while I'm offline?
2044
2045@subsubheading Answer
2046
2047All you've got to do is to tell Gnus when you are online
2048(plugged) and when you are offline (unplugged), the rest
2049works automatically. You can toggle plugged/unplugged
2050state by saying @samp{J j} in group
2051buffer. To start Gnus unplugged say @samp{M-x
2052gnus-unplugged} instead of
2053@samp{M-x gnus}. Note that for this to
2054work, the agent must be active.
2055
2056@node FAQ 8 - Getting help
2057@subsection Getting help
2058
2059@menu
2b968687 2060* FAQ 8-1:: How to find information and help inside Emacs?
1df7defd 2061* FAQ 8-2:: I can't find anything in the Gnus manual about X (e.g.,
2b968687
MB
2062 attachments, PGP, MIME...), is it not documented?
2063* FAQ 8-3:: Which websites should I know?
2064* FAQ 8-4:: Which mailing lists and newsgroups are there?
2065* FAQ 8-5:: Where to report bugs?
2066* FAQ 8-6:: I need real-time help, where to find it?
4009494e
GM
2067@end menu
2068
2b968687 2069@node FAQ 8-1
4009494e
GM
2070@subsubheading Question 8.1
2071
2072How to find information and help inside Emacs?
2073
2074@subsubheading Answer
2075
2076The first stop should be the Gnus manual (Say
2077@samp{C-h i d m Gnus RET} to start the
2078Gnus manual, then walk through the menus or do a
2079full-text search with @samp{s}). Then
2080there are the general Emacs help commands starting with
2081C-h, type @samp{C-h ? ?} to get a list
2082of all available help commands and their meaning. Finally
2083@samp{M-x apropos-command} lets you
2084search through all available functions and @samp{M-x
2085apropos} searches the bound variables.
2086
2b968687 2087@node FAQ 8-2
4009494e
GM
2088@subsubheading Question 8.2
2089
2090I can't find anything in the Gnus manual about X
1df7defd 2091(e.g., attachments, PGP, MIME...), is it not documented?
4009494e
GM
2092
2093@subsubheading Answer
2094
3d439cd1
CY
2095There's not only the Gnus manual but also the manuals for message,
2096emacs-mime, sieve, EasyPG Assistant, and pgg. Those packages are
2097distributed with Gnus and used by Gnus but aren't really part of core
2098Gnus, so they are documented in different info files, you should have
2099a look in those manuals, too.
4009494e 2100
2b968687 2101@node FAQ 8-3
4009494e
GM
2102@subsubheading Question 8.3
2103
2104Which websites should I know?
2105
2106@subsubheading Answer
2107
66627fa9 2108The most important one is the
4009494e 2109@uref{http://www.gnus.org, official Gnus website}.
4009494e
GM
2110
2111Tell me about other sites which are interesting.
2112
2b968687 2113@node FAQ 8-4
4009494e
GM
2114@subsubheading Question 8.4
2115
2116Which mailing lists and newsgroups are there?
2117
2118@subsubheading Answer
2119
9b3ebcb6 2120There's the newsgroup gnu.emacs.gnus (also available as
91af3942 2121@uref{http://dir.gmane.org/gmane.emacs.gnus.user,
2b968687
MB
2122gmane.emacs.gnus.user}) which deals with general Gnus
2123questions. If you have questions about development versions of
2124Gnus, you should better ask on the ding mailing list, see below.
4009494e
GM
2125
2126If you want to stay in the big8,
d7ca410a 2127news.software.readers is also read by some Gnus
4009494e 2128users (but chances for qualified help are much better in
2b968687 2129the above groups). If you speak German, there's
4009494e
GM
2130de.comm.software.gnus.
2131
9b3ebcb6
MB
2132The ding mailing list (ding@@gnus.org) deals with development of
2133Gnus. You can read the ding list via NNTP, too under the name
91af3942 2134@uref{http://dir.gmane.org/gmane.emacs.gnus.general,
9b3ebcb6
MB
2135gmane.emacs.gnus.general} from news.gmane.org.
2136
2b968687 2137@node FAQ 8-5
4009494e
GM
2138@subsubheading Question 8.5
2139
2140Where to report bugs?
2141
2142@subsubheading Answer
2143
2144Say @samp{M-x gnus-bug}, this will start
91af3942 2145a message to the
4009494e
GM
2146@email{bugs@@gnus.org, gnus bug mailing list}
2147including information about your environment which make
2148it easier to help you.
2149
2b968687 2150@node FAQ 8-6
4009494e
GM
2151@subsubheading Question 8.6
2152
2153I need real-time help, where to find it?
2154
2155@subsubheading Answer
2156
2157Point your IRC client to irc.freenode.net, channel #gnus.
2158
2159@node FAQ 9 - Tuning Gnus
2160@subsection Tuning Gnus
2161
2162@menu
2b968687
MB
2163* FAQ 9-1:: Starting Gnus is really slow, how to speed it up?
2164* FAQ 9-2:: How to speed up the process of entering a group?
2165* FAQ 9-3:: Sending mail becomes slower and slower, what's up?
4009494e
GM
2166@end menu
2167
2b968687 2168@node FAQ 9-1
4009494e
GM
2169@subsubheading Question 9.1
2170
2171Starting Gnus is really slow, how to speed it up?
2172
2173@subsubheading Answer
2174
a98edce9 2175The reason for this could be the way Gnus reads its
4009494e
GM
2176active file, see the node "The Active File" in the Gnus
2177manual for things you might try to speed the process up.
2178An other idea would be to byte compile your ~/.gnus.el (say
2179@samp{M-x byte-compile-file RET ~/.gnus.el
2180RET} to do it). Finally, if you have require
2181statements in your .gnus, you could replace them with
2182eval-after-load, which loads the stuff not at startup
2183time, but when it's needed. Say you've got this in your
2184~/.gnus.el:
2185
2186@example
2187(require 'message)
2188(add-to-list 'message-syntax-checks '(sender . disabled))
2189@end example
2190@noindent
2191
2192then as soon as you start Gnus, message.el is loaded. If
2193you replace it with
2194
2195@example
2196(eval-after-load "message"
2197 '(add-to-list 'message-syntax-checks '(sender . disabled)))
2198@end example
2199@noindent
2200
2201it's loaded when it's needed.
2202
2b968687 2203@node FAQ 9-2
4009494e
GM
2204@subsubheading Question 9.2
2205
2206How to speed up the process of entering a group?
2207
2208@subsubheading Answer
2209
2210A speed killer is setting the variable
2211gnus-fetch-old-headers to anything different from nil,
2212so don't do this if speed is an issue. To speed up
2213building of summary say
2214
2215@example
2216(gnus-compile)
2217@end example
2218@noindent
2219
2220at the bottom of your ~/.gnus.el, this will make gnus
2221byte-compile things like
91af3942 2222gnus-summary-line-format.
4009494e
GM
2223then you could increase the value of gc-cons-threshold
2224by saying something like
2225
2226@example
2227(setq gc-cons-threshold 3500000)
2228@end example
2229@noindent
2230
2231in ~/.emacs. If you don't care about width of CJK
2232characters or use Gnus 5.10 or younger together with a
2233recent GNU Emacs, you should say
2234
2235@example
2236(setq gnus-use-correct-string-widths nil)
2237@end example
2238@noindent
91af3942 2239
4009494e
GM
2240in ~/.gnus.el (thanks to Jesper harder for the last
2241two suggestions). Finally if you are still using 5.8.8
2242or 5.9 and experience speed problems with summary
2243buffer generation, you definitely should update to
22445.10 since there quite some work on improving it has
2245been done.
2246
2b968687 2247@node FAQ 9-3
4009494e
GM
2248@subsubheading Question 9.3
2249
2250Sending mail becomes slower and slower, what's up?
2251
2252@subsubheading Answer
2253
2254The reason could be that you told Gnus to archive the
2255messages you wrote by setting
2256gnus-message-archive-group. Try to use a nnml group
2257instead of an archive group, this should bring you back
2258to normal speed.
2259
2260@node FAQ - Glossary
2261@subsection Glossary
2262
2263@table @dfn
2264
2265@item ~/.gnus.el
2266When the term ~/.gnus.el is used it just means your Gnus
2267configuration file. You might as well call it ~/.gnus or
2268specify another name.
2269
2270@item Back End
2271In Gnus terminology a back end is a virtual server, a layer
2272between core Gnus and the real NNTP-, POP3-, IMAP- or
2273whatever-server which offers Gnus a standardized interface
2274to functions like "get message", "get Headers" etc.
2275
2276@item Emacs
2277When the term Emacs is used in this FAQ, it means either GNU
2278Emacs or XEmacs.
2279
2280@item Message
2281In this FAQ message means a either a mail or a posting to a
2282Usenet Newsgroup or to some other fancy back end, no matter
2283of which kind it is.
2284
2285@item MUA
2286MUA is an acronym for Mail User Agent, it's the program you
2287use to read and write e-mails.
2288
2289@item NUA
2290NUA is an acronym for News User Agent, it's the program you
2291use to read and write Usenet news.
2292
2293@end table