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