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