1 @c \input texinfo @c -*-texinfo-*-
2 @c Uncomment 1st line before texing this file alone.
4 @c Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
5 @c 2009, 2010, 2011 Free Software Foundation, Inc.
7 @c Do not modify this file, it was generated from gnus-faq.xml, available from
8 @c <URL:http://my.gnus.org/FAQ/>.
10 @setfilename gnus-faq.info
11 @settitle Frequently Asked Questions
15 @node Frequently Asked Questions
16 @section Frequently Asked Questions
20 * FAQ - Introduction:: About Gnus and this FAQ.
21 * FAQ 1 - Installation FAQ:: Installation of Gnus.
22 * FAQ 2 - Startup / Group buffer:: Start up questions and the
23 first buffer Gnus shows you.
24 * FAQ 3 - Getting Messages:: Making Gnus read your mail
26 * FAQ 4 - Reading messages:: How to efficiently read
28 * FAQ 5 - Composing messages:: Composing mails or Usenet
30 * FAQ 6 - Old messages:: Importing, archiving,
31 searching and deleting messages.
32 * FAQ 7 - Gnus in a dial-up environment:: Reading mail and news while
34 * FAQ 8 - Getting help:: When this FAQ isn't enough.
35 * FAQ 9 - Tuning Gnus:: How to make Gnus faster.
36 * FAQ - Glossary:: Terms used in the FAQ
42 This is the new Gnus Frequently Asked Questions list.
43 If you have a Web browser, the official hypertext version is at
44 @uref{http://my.gnus.org/FAQ/},
45 the Docbook source is available from
46 @uref{http://sourceforge.net/projects/gnus/, http://sourceforge.net}.
48 Please submit features and suggestions to the
49 @email{faq-discuss@@my.gnus.org, FAQ discussion list}.
50 The list is protected against junk mail with
51 @uref{http://smarden.org/qconfirm/index.html, qconfirm}. As
52 a subscriber, your submissions will automatically pass. You can
53 also subscribe to the list by sending a blank email to
54 @email{faq-discuss-subscribe@@my.gnus.org, faq-discuss-subscribe@@my.gnus.org}
55 and @uref{http://mail1.kens.com/cgi-bin/ezmlm-browse?command=monthbythread%26list=faq-discuss, browse
56 the archive (BROKEN)}.
66 2008-06-15: Adjust for message-fill-column. Add x-face-file.
67 Clarify difference between ding and gnu.emacs.gnus. Remove
68 reference to discontinued service.
71 2006-04-15: Added tip on how to delete sent buffer on exit.
74 @node FAQ - Introduction
75 @subheading Introduction
77 This is the Gnus Frequently Asked Questions list.
79 Gnus is a Usenet Newsreader and Electronic Mail User Agent implemented
80 as a part of Emacs. It's been around in some form for almost a decade
81 now, and has been distributed as a standard part of Emacs for much of
82 that time. Gnus 5 is the latest (and greatest) incarnation. The
83 original version was called GNUS, and was written by Masanobu UMEDA.
84 When autumn crept up in '94, Lars Magne Ingebrigtsen grew bored and
85 decided to rewrite Gnus.
87 Its biggest strength is the fact that it is extremely
88 customizable. It is somewhat intimidating at first glance, but
89 most of the complexity can be ignored until you're ready to take
90 advantage of it. If you receive a reasonable volume of e-mail
91 (you're on various mailing lists), or you would like to read
92 high-volume mailing lists but cannot keep up with them, or read
93 high volume newsgroups or are just bored, then Gnus is what you
96 This FAQ was maintained by Justin Sheehy until March 2002. He
97 would like to thank Steve Baur and Per Abrahamsen for doing a wonderful
98 job with this FAQ before him. We would like to do the same - thanks,
101 If you have a Web browser, the official hypertext version is at:
102 @uref{http://my.gnus.org/FAQ/}.
103 This version is much nicer than the unofficial hypertext
104 versions that are archived at Utrecht, Oxford, Smart Pages, Ohio
105 State, and other FAQ archives. See the resources question below
106 if you want information on obtaining it in another format.
108 The information contained here was compiled with the assistance
109 of the Gnus development mailing list, and any errors or
110 misprints are the my.gnus.org team's fault, sorry.
112 @node FAQ 1 - Installation FAQ
113 @subsection Installation FAQ
116 * FAQ 1-1:: What is the latest version of Gnus?
117 * FAQ 1-2:: What's new in 5.10?
118 * FAQ 1-3:: Where and how to get Gnus?
119 * FAQ 1-4:: What to do with the tarball now?
120 * FAQ 1-5:: I sometimes read references to No Gnus and Oort Gnus,
122 * FAQ 1-6:: Which version of Emacs do I need?
123 * FAQ 1-7:: How do I run Gnus on both Emacs and XEmacs?
127 @subsubheading Question 1.1
129 What is the latest version of Gnus?
131 @subsubheading Answer
133 Jingle please: Gnus 5.10 is released, get it while it's
134 hot! As well as the step in version number is rather
135 small, Gnus 5.10 has tons of new features which you
136 shouldn't miss. The current release (5.13) should be at
137 least as stable as the latest release of the 5.8 series.
140 @subsubheading Question 1.2
144 @subsubheading Answer
146 First of all, you should have a look into the file
147 GNUS-NEWS in the toplevel directory of the Gnus tarball,
148 there the most important changes are listed. Here's a
149 short list of the changes I find especially
150 important/interesting:
155 Major rewrite of the Gnus agent, Gnus agent is now
159 Many new article washing functions for dealing with
160 ugly formatted articles.
166 Message-utils now included in Gnus.
169 New format specifiers for summary lines, e.g. %B for
170 a complex trn-style thread tree.
174 @subsubheading Question 1.3
176 Where and how to get Gnus?
178 @subsubheading Answer
180 Gnus is released independent from releases of Emacs and XEmacs.
181 Therefore, the version bundled with Emacs or the version in XEmacs'
182 package system might not be up to date (e.g. Gnus 5.9 bundled with Emacs
184 You can get the latest released version of Gnus from
185 @uref{http://www.gnus.org/dist/gnus.tar.gz}
186 or via anonymous FTP from
187 @uref{ftp://ftp.gnus.org/pub/gnus/gnus.tar.gz}.
190 @subsubheading Question 1.4
192 What to do with the tarball now?
194 @subsubheading Answer
196 Untar it via @samp{tar xvzf gnus.tar.gz} and do the common
197 @samp{./configure; make; make install} circle.
198 (under MS-Windows either get the Cygwin environment from
199 @uref{http://www.cygwin.com}
200 which allows you to do what's described above or unpack the
201 tarball with some packer (e.g. Winace from
202 @uref{http://www.winace.com})
203 and use the batch-file make.bat included in the tarball to install
204 Gnus.) If you don't want to (or aren't allowed to) install Gnus
205 system-wide, you can install it in your home directory and add the
206 following lines to your ~/.xemacs/init.el or ~/.emacs:
209 (add-to-list 'load-path "/path/to/gnus/lisp")
210 (if (featurep 'xemacs)
211 (add-to-list 'Info-directory-list "/path/to/gnus/texi/")
212 (add-to-list 'Info-default-directory-list "/path/to/gnus/texi/"))
216 Make sure that you don't have any Gnus related stuff
217 before this line, on MS Windows use something like
218 "C:/path/to/lisp" (yes, "/").
221 @subsubheading Question 1.5
223 I sometimes read references to No Gnus and Oort Gnus,
226 @subsubheading Answer
228 Oort Gnus was the name of the development version of
229 Gnus, which became Gnus 5.10 in autumn 2003. No Gnus is
230 the name of the current development version which will
231 once become Gnus 5.12 or Gnus 6. (If you're wondering why
232 not 5.11, the odd version numbers are normally used for
233 the Gnus versions bundled with Emacs)
236 @subsubheading Question 1.6
238 Which version of Emacs do I need?
240 @subsubheading Answer
242 Gnus 5.10 requires an Emacs version that is greater than or equal
243 to Emacs 20.7 or XEmacs 21.1.
244 The development versions of Gnus (aka No Gnus) requires Emacs 21
248 @subsubheading Question 1.7
250 How do I run Gnus on both Emacs and XEmacs?
252 @subsubheading Answer
254 You can't use the same copy of Gnus in both as the Lisp
255 files are byte-compiled to a format which is different
256 depending on which Emacs did the compilation. Get one copy
257 of Gnus for Emacs and one for XEmacs.
259 @node FAQ 2 - Startup / Group buffer
260 @subsection Startup / Group buffer
263 * FAQ 2-1:: Every time I start Gnus I get a message "Gnus auto-save
264 file exists. Do you want to read it?", what does this mean and
266 * FAQ 2-2:: Gnus doesn't remember which groups I'm subscribed to,
268 * FAQ 2-3:: How to change the format of the lines in Group buffer?
269 * FAQ 2-4:: My group buffer becomes a bit crowded, is there a way to
270 sort my groups into categories so I can easier browse through
272 * FAQ 2-5:: How to manually sort the groups in Group buffer? How to
273 sort the groups in a topic?
277 @subsubheading Question 2.1
279 Every time I start Gnus I get a message "Gnus auto-save
280 file exists. Do you want to read it?", what does this mean
281 and how to prevent it?
283 @subsubheading Answer
285 This message means that the last time you used Gnus, it
286 wasn't properly exited and therefor couldn't write its
287 informations to disk (e.g. which messages you read), you
288 are now asked if you want to restore those informations
289 from the auto-save file.
291 To prevent this message make sure you exit Gnus
292 via @samp{q} in group buffer instead of
296 @subsubheading Question 2.2
298 Gnus doesn't remember which groups I'm subscribed to,
301 @subsubheading Answer
303 You get the message described in the q/a pair above while
304 starting Gnus, right? It's an other symptom for the same
305 problem, so read the answer above.
308 @subsubheading Question 2.3
310 How to change the format of the lines in Group buffer?
312 @subsubheading Answer
314 You've got to tweak the value of the variable
315 gnus-group-line-format. See the manual node "Group Line
316 Specification" for information on how to do this. An
317 example for this (guess from whose .gnus :-)):
320 (setq gnus-group-line-format "%P%M%S[%5t]%5y : %(%g%)\n")
325 @subsubheading Question 2.4
327 My group buffer becomes a bit crowded, is there a way to
328 sort my groups into categories so I can easier browse
331 @subsubheading Answer
333 Gnus offers the topic mode, it allows you to sort your
334 groups in, well, topics, e.g. all groups dealing with
335 Linux under the topic linux, all dealing with music under
336 the topic music and all dealing with scottish music under
337 the topic scottish which is a subtopic of music.
339 To enter topic mode, just hit t while in Group buffer. Now
340 you can use @samp{T n} to create a topic
341 at point and @samp{T m} to move a group to
342 a specific topic. For more commands see the manual or the
343 menu. You might want to include the %P specifier at the
344 beginning of your gnus-group-line-format variable to have
345 the groups nicely indented.
348 @subsubheading Question 2.5
350 How to manually sort the groups in Group buffer? How to
351 sort the groups in a topic?
353 @subsubheading Answer
355 Move point over the group you want to move and
356 hit @samp{C-k}, now move point to the
357 place where you want the group to be and
360 @node FAQ 3 - Getting Messages
361 @subsection Getting Messages
364 * FAQ 3-1:: I just installed Gnus, started it via @samp{M-x gnus}
365 but it only says "nntp (news) open error", what to do?
366 * FAQ 3-2:: I'm working under Windows and have no idea what
368 * FAQ 3-3:: My news server requires authentication, how to store
369 user name and password on disk?
370 * FAQ 3-4:: Gnus seems to start up OK, but I can't find out how to
371 subscribe to a group.
372 * FAQ 3-5:: Gnus doesn't show all groups / Gnus says I'm not allowed
373 to post on this server as well as I am, what's that?
374 * FAQ 3-6:: I want Gnus to fetch news from several servers, is this
376 * FAQ 3-7:: And how about local spool files?
377 * FAQ 3-8:: OK, reading news works now, but I want to be able to
378 read my mail with Gnus, too. How to do it?
379 * FAQ 3-9:: And what about IMAP?
380 * FAQ 3-10:: At the office we use one of those MS Exchange servers,
381 can I use Gnus to read my mail from it?
382 * FAQ 3-11:: Can I tell Gnus not to delete the mails on the server it
387 @subsubheading Question 3.1
389 I just installed Gnus, started it via
391 but it only says "nntp (news) open error", what to do?
393 @subsubheading Answer
395 You've got to tell Gnus where to fetch the news from. Read
396 the documentation for information on how to do this. As a
397 first start, put those lines in ~/.gnus.el:
400 (setq gnus-select-method '(nntp "news.yourprovider.net"))
401 (setq user-mail-address "you@@yourprovider.net")
402 (setq user-full-name "Your Name")
407 @subsubheading Question 3.2
409 I'm working under Windows and have no idea what ~/.gnus.el means.
411 @subsubheading Answer
413 The ~/ means the home directory where Gnus and Emacs look
414 for the configuration files. However, you don't really
415 need to know what this means, it suffices that Emacs knows
416 what it means :-) You can type
417 @samp{C-x C-f ~/.gnus.el RET }
418 (yes, with the forward slash, even on Windows), and
419 Emacs will open the right file for you. (It will most
420 likely be new, and thus empty.)
421 However, I'd discourage you from doing so, since the
422 directory Emacs chooses will most certainly not be what
423 you want, so let's do it the correct way.
424 The first thing you've got to do is to
425 create a suitable directory (no blanks in directory name
426 please) e.g. c:\myhome. Then you must set the environment
427 variable HOME to this directory. To do this under Win9x
428 or Me include the line
435 in your autoexec.bat and reboot. Under NT, 2000 and XP, hit
436 Winkey+Pause/Break to enter system options (if it doesn't work, go
437 to Control Panel -> System -> Advanced). There you'll find the
438 possibility to set environment variables. Create a new one with
439 name HOME and value C:\myhome. Rebooting is not necessary.
441 Now to create ~/.gnus.el, say
442 @samp{C-x C-f ~/.gnus.el RET C-x C-s}.
446 @subsubheading Question 3.3
448 My news server requires authentication, how to store
449 user name and password on disk?
451 @subsubheading Answer
453 Create a file ~/.authinfo which includes for each server a line like this
456 machine news.yourprovider.net login YourUserName password YourPassword
460 Make sure that the file isn't readable to others if you
461 work on a OS which is capable of doing so. (Under Unix
464 chmod 600 ~/.authinfo
471 @subsubheading Question 3.4
473 Gnus seems to start up OK, but I can't find out how to
474 subscribe to a group.
476 @subsubheading Answer
478 If you know the name of the group say @samp{U
479 name.of.group RET} in group buffer (use the
480 tab-completion Luke). Otherwise hit ^ in group buffer,
481 this brings you to the server buffer. Now place point (the
482 cursor) over the server which carries the group you want,
483 hit @samp{RET}, move point to the group
484 you want to subscribe to and say @samp{u}
488 @subsubheading Question 3.5
490 Gnus doesn't show all groups / Gnus says I'm not allowed to
491 post on this server as well as I am, what's that?
493 @subsubheading Answer
495 Some providers allow restricted anonymous access and full
496 access only after authorization. To make Gnus send authinfo
497 to those servers append
504 to the line for those servers in ~/.authinfo.
507 @subsubheading Question 3.6
509 I want Gnus to fetch news from several servers, is this possible?
511 @subsubheading Answer
513 Of course. You can specify more sources for articles in the
514 variable gnus-secondary-select-methods. Add something like
518 (add-to-list 'gnus-secondary-select-methods
519 '(nntp "news.yourSecondProvider.net"))
520 (add-to-list 'gnus-secondary-select-methods
521 '(nntp "news.yourThirdProvider.net"))
526 @subsubheading Question 3.7
528 And how about local spool files?
530 @subsubheading Answer
532 No problem, this is just one more select method called
533 nnspool, so you want this:
536 (add-to-list 'gnus-secondary-select-methods '(nnspool ""))
540 Or this if you don't want an NNTP Server as primary news source:
543 (setq gnus-select-method '(nnspool ""))
547 Gnus will look for the spool file in /usr/spool/news, if you
548 want something different, change the line above to something like this:
551 (add-to-list 'gnus-secondary-select-methods
553 (nnspool-directory "/usr/local/myspoolddir")))
557 This sets the spool directory for this server only.
558 You might have to specify more stuff like the program used
559 to post articles, see the Gnus manual on how to do this.
562 @subsubheading Question 3.8
564 OK, reading news works now, but I want to be able to read my mail
565 with Gnus, too. How to do it?
567 @subsubheading Answer
569 That's a bit harder since there are many possible sources
570 for mail, many possible ways for storing mail and many
571 different ways for sending mail. The most common cases are
572 these: 1: You want to read your mail from a pop3 server and
573 send them directly to a SMTP Server 2: Some program like
574 fetchmail retrieves your mail and stores it on disk from
575 where Gnus shall read it. Outgoing mail is sent by
576 Sendmail, Postfix or some other MTA. Sometimes, you even
577 need a combination of the above cases.
579 However, the first thing to do is to tell Gnus in which way
580 it should store the mail, in Gnus terminology which back end
581 to use. Gnus supports many different back ends, the most
582 commonly used one is nnml. It stores every mail in one file
583 and is therefor quite fast. However you might prefer a one
584 file per group approach if your file system has problems with
585 many small files, the nnfolder back end is then probably the
586 choice for you. To use nnml add the following to ~/.gnus.el:
589 (add-to-list 'gnus-secondary-select-methods '(nnml ""))
593 As you might have guessed, if you want nnfolder, it's
596 (add-to-list 'gnus-secondary-select-methods '(nnfolder ""))
600 Now we need to tell Gnus, where to get it's mail from. If
601 it's a POP3 server, then you need something like this:
604 (eval-after-load "mail-source"
605 '(add-to-list 'mail-sources '(pop :server "pop.YourProvider.net"
607 :password "yourPassword")))
611 Make sure ~/.gnus.el isn't readable to others if you store
612 your password there. If you want to read your mail from a
613 traditional spool file on your local machine, it's
616 (eval-after-load "mail-source"
617 '(add-to-list 'mail-sources '(file :path "/path/to/spool/file"))
621 If it's a Maildir, with one file per message as used by
622 postfix, Qmail and (optionally) fetchmail it's
625 (eval-after-load "mail-source"
626 '(add-to-list 'mail-sources '(maildir :path "/path/to/Maildir/"
627 :subdirs ("cur" "new")))
631 And finally if you want to read your mail from several files
632 in one directory, for example because procmail already split your
636 (eval-after-load "mail-source"
637 '(add-to-list 'mail-sources
638 '(directory :path "/path/to/procmail-dir/"
643 Where :suffix ".prcml" tells Gnus only to use files with the
646 OK, now you only need to tell Gnus how to send mail. If you
647 want to send mail via sendmail (or whichever MTA is playing
648 the role of sendmail on your system), you don't need to do
649 anything. However, if you want to send your mail to an
650 SMTP Server you need the following in your ~/.gnus.el
653 (setq send-mail-function 'smtpmail-send-it)
654 (setq message-send-mail-function 'smtpmail-send-it)
655 (setq smtpmail-default-smtp-server "smtp.yourProvider.net")
660 @subsubheading Question 3.9
664 @subsubheading Answer
666 There are two ways of using IMAP with Gnus. The first one is
667 to use IMAP like POP3, that means Gnus fetches the mail from
668 the IMAP server and stores it on disk. If you want to do
669 this (you don't really want to do this) add the following to
673 (add-to-list 'mail-sources '(imap :server "mail.mycorp.com"
677 :authentication login
679 :fetchflag "\\Seen"))
683 You might have to tweak the values for stream and/or
684 authentication, see the Gnus manual node "Mail Source
685 Specifiers" for possible values.
687 If you want to use IMAP the way it's intended, you've got to
688 follow a different approach. You've got to add the nnimap
689 back end to your select method and give the information
690 about the server there.
693 (add-to-list 'gnus-secondary-select-methods
694 '(nnimap "Give the baby a name"
695 (nnimap-address "imap.yourProvider.net")
697 (nnimap-list-pattern "archive.*")))
701 Again, you might have to specify how to authenticate to the
702 server if Gnus can't guess the correct way, see the Manual
703 Node "IMAP" for detailed information.
706 @subsubheading Question 3.10
708 At the office we use one of those MS Exchange servers, can I use
709 Gnus to read my mail from it?
711 @subsubheading Answer
713 Offer your administrator a pair of new running shoes for
714 activating IMAP on the server and follow the instructions
718 @subsubheading Question 3.11
720 Can I tell Gnus not to delete the mails on the server it
723 @subsubheading Answer
725 First of all, that's not the way POP3 is intended to work,
726 if you have the possibility, you should use the IMAP
727 Protocol if you want your messages to stay on the
728 server. Nevertheless there might be situations where you
729 need the feature, but sadly Gnus itself has no predefined
730 functionality to do so.
732 However this is Gnus county so there are possibilities to
733 achieve what you want. The easiest way is to get an external
734 program which retrieves copies of the mail and stores them
735 on disk, so Gnus can read it from there. On Unix systems you
736 could use e.g. fetchmail for this, on MS Windows you can use
737 Hamster, an excellent local news and mail server.
739 The other solution would be, to replace the method Gnus
740 uses to get mail from POP3 servers by one which is capable
741 of leaving the mail on the server. If you use XEmacs, get
742 the package mail-lib, it includes an enhanced pop3.el,
743 look in the file, there's documentation on how to tell
744 Gnus to use it and not to delete the retrieved mail. For
745 GNU Emacs look for the file epop3.el which can do the same
746 (If you know the home of this file, please send me an
747 e-mail). You can also tell Gnus to use an external program
748 (e.g. fetchmail) to fetch your mail, see the info node
749 "Mail Source Specifiers" in the Gnus manual on how to do
752 @node FAQ 4 - Reading messages
753 @subsection Reading messages
756 * FAQ 4-1:: When I enter a group, all read messages are gone. How to
758 * FAQ 4-2:: How to tell Gnus to show an important message every time
759 I enter a group, even when it's read?
760 * FAQ 4-3:: How to view the headers of a message?
761 * FAQ 4-4:: How to view the raw unformatted message?
762 * FAQ 4-5:: How can I change the headers Gnus displays by default at
763 the top of the article buffer?
764 * FAQ 4-6:: I'd like Gnus NOT to render HTML-mails but show me the
765 text part if it's available. How to do it?
766 * FAQ 4-7:: Can I use some other browser than w3 to render my
768 * FAQ 4-8:: Is there anything I can do to make poorly formatted
770 * FAQ 4-9:: Is there a way to automatically ignore posts by specific
771 authors or with specific words in the subject? And can I
772 highlight more interesting ones in some way?
773 * FAQ 4-10:: How can I disable threading in some (e.g. mail-) groups,
774 or set other variables specific for some groups?
775 * FAQ 4-11:: Can I highlight messages written by me and follow-ups to
777 * FAQ 4-12:: The number of total messages in a group which Gnus
778 displays in group buffer is by far to high, especially in mail
779 groups. Is this a bug?
780 * FAQ 4-13:: I don't like the layout of summary and article buffer,
781 how to change it? Perhaps even a three pane display?
782 * FAQ 4-14:: I don't like the way the Summary buffer looks, how to
784 * FAQ 4-15:: How to split incoming mails in several groups?
788 @subsubheading Question 4.1
790 When I enter a group, all read messages are gone. How to view them again?
792 @subsubheading Answer
794 If you enter the group by saying
796 in group buffer with point over the group, only unread and ticked messages are loaded. Say
798 instead to load all available messages. If you want only the e.g. 300 newest say
801 Loading only unread messages can be annoying if you have threaded view enabled, say
804 (setq gnus-fetch-old-headers 'some)
808 in ~/.gnus.el to load enough old articles to prevent teared threads, replace 'some with t to load
809 all articles (Warning: Both settings enlarge the amount of data which is
810 fetched when you enter a group and slow down the process of entering a group).
812 If you already use Gnus 5.10, you can say
814 In summary buffer to load the last N messages, this feature is not available in 5.8.8
816 If you don't want all old messages, but the parent of the message you're just reading,
817 you can say @samp{^}, if you want to retrieve the whole thread
818 the message you're just reading belongs to, @samp{A T} is your friend.
821 @subsubheading Question 4.2
823 How to tell Gnus to show an important message every time I
824 enter a group, even when it's read?
826 @subsubheading Answer
828 You can tick important messages. To do this hit
829 @samp{u} while point is in summary buffer
830 over the message. When you want to remove the mark, hit
831 either @samp{d} (this deletes the tick
832 mark and set's unread mark) or @samp{M c}
833 (which deletes all marks for the message).
836 @subsubheading Question 4.3
838 How to view the headers of a message?
840 @subsubheading Answer
843 to show all headers, one more
848 @subsubheading Question 4.4
850 How to view the raw unformatted message?
852 @subsubheading Answer
856 to show the raw message
858 returns to normal view.
861 @subsubheading Question 4.5
863 How can I change the headers Gnus displays by default at
864 the top of the article buffer?
866 @subsubheading Answer
868 The variable gnus-visible-headers controls which headers
869 are shown, its value is a regular expression, header lines
870 which match it are shown. So if you want author, subject,
871 date, and if the header exists, Followup-To and MUA / NUA
872 say this in ~/.gnus.el:
875 (setq gnus-visible-headers
876 '("^From" "^Subject" "^Date" "^Newsgroups" "^Followup-To"
877 "^User-Agent" "^X-Newsreader" "^X-Mailer"))
882 @subsubheading Question 4.6
884 I'd like Gnus NOT to render HTML-mails but show me the
885 text part if it's available. How to do it?
887 @subsubheading Answer
892 (eval-after-load "mm-decode"
894 (add-to-list 'mm-discouraged-alternatives "text/html")
895 (add-to-list 'mm-discouraged-alternatives "text/richtext")))
899 in ~/.gnus.el. If you don't want HTML rendered, even if there's no text alternative add
902 (setq mm-automatic-display (remove "text/html" mm-automatic-display))
909 @subsubheading Question 4.7
911 Can I use some other browser than w3 to render my HTML-mails?
913 @subsubheading Answer
915 Only if you use Gnus 5.10 or younger. In this case you've got the
916 choice between w3, w3m, links, lynx and html2text, which
917 one is used can be specified in the variable
918 mm-text-html-renderer, so if you want links to render your
922 (setq mm-text-html-renderer 'links)
927 @subsubheading Question 4.8
929 Is there anything I can do to make poorly formatted mails
932 @subsubheading Answer
934 Gnus offers you several functions to "wash" incoming mail, you can
935 find them if you browse through the menu, item
936 Article->Washing. The most interesting ones are probably "Wrap
937 long lines" (@samp{W w}), "Decode ROT13"
938 (@samp{W r}) and "Outlook Deuglify" which repairs
939 the dumb quoting used by many users of Microsoft products
940 (@samp{W Y f} gives you full deuglify.
941 See @samp{W Y C-h} or have a look at the menus for
942 other deuglifications). Outlook deuglify is only available since
946 @subsubheading Question 4.9
948 Is there a way to automatically ignore posts by specific
949 authors or with specific words in the subject? And can I
950 highlight more interesting ones in some way?
952 @subsubheading Answer
954 You want Scoring. Scoring means, that you define rules
955 which assign each message an integer value. Depending on
956 the value the message is highlighted in summary buffer (if
957 it's high, say +2000) or automatically marked read (if the
958 value is low, say -800) or some other action happens.
960 There are basically three ways of setting up rules which assign
961 the scoring-value to messages. The first and easiest way is to set
962 up rules based on the article you are just reading. Say you're
963 reading a message by a guy who always writes nonsense and you want
964 to ignore his messages in the future. Hit
965 @samp{L}, to set up a rule which lowers the score.
966 Now Gnus asks you which the criteria for lowering the Score shall
967 be. Hit @samp{?} twice to see all possibilities,
968 we want @samp{a} which means the author (the from
969 header). Now Gnus wants to know which kind of matching we want.
970 Hit either @samp{e} for an exact match or
971 @samp{s} for substring-match and delete afterwards
972 everything but the name to score down all authors with the given
973 name no matter which email address is used. Now you need to tell
974 Gnus when to apply the rule and how long it should last, hit e.g.
975 @samp{p} to apply the rule now and let it last
976 forever. If you want to raise the score instead of lowering it say
977 @samp{I} instead of @samp{L}.
979 You can also set up rules by hand. To do this say @samp{V
980 f} in summary buffer. Then you are asked for the name
981 of the score file, it's name.of.group.SCORE for rules valid in
982 only one group or all.Score for rules valid in all groups. See the
983 Gnus manual for the exact syntax, basically it's one big list
984 whose elements are lists again. the first element of those lists
985 is the header to score on, then one more list with what to match,
986 which score to assign, when to expire the rule and how to do the
987 matching. If you find me very interesting, you could e.g. add the
988 following to your all.Score:
991 (("references" ("hschmi22.userfqdn.rz-online.de" 500 nil s))
992 ("message-id" ("hschmi22.userfqdn.rz-online.de" 999 nil s)))
996 This would add 999 to the score of messages written by me
997 and 500 to the score of messages which are a (possibly
998 indirect) answer to a message written by me. Of course
999 nobody with a sane mind would do this :-)
1001 The third alternative is adaptive scoring. This means Gnus
1002 watches you and tries to find out what you find
1003 interesting and what annoying and sets up rules
1004 which reflect this. Adaptive scoring can be a huge help
1005 when reading high traffic groups. If you want to activate
1006 adaptive scoring say
1009 (setq gnus-use-adaptive-scoring t)
1016 @subsubheading Question 4.10
1018 How can I disable threading in some (e.g. mail-) groups, or
1019 set other variables specific for some groups?
1021 @subsubheading Answer
1023 While in group buffer move point over the group and hit
1024 @samp{G c}, this opens a buffer where you
1025 can set options for the group. At the bottom of the buffer
1026 you'll find an item that allows you to set variables
1027 locally for the group. To disable threading enter
1028 gnus-show-threads as name of variable and nil as
1029 value. Hit button done at the top of the buffer when
1033 @subsubheading Question 4.11
1035 Can I highlight messages written by me and follow-ups to
1038 @subsubheading Answer
1040 Stop those "Can I ..." questions, the answer is always yes
1041 in Gnus Country :-). It's a three step process: First we
1042 make faces (specifications of how summary-line shall look
1043 like) for those postings, then we'll give them some
1044 special score and finally we'll tell Gnus to use the new
1045 faces. You can find detailed instructions on how to do it on
1046 @uref{http://my.gnus.org/node/view/224, my.gnus.org}
1049 @subsubheading Question 4.12
1051 The number of total messages in a group which Gnus
1052 displays in group buffer is by far to high, especially in
1053 mail groups. Is this a bug?
1055 @subsubheading Answer
1057 No, that's a matter of design of Gnus, fixing this would
1058 mean reimplementation of major parts of Gnus'
1059 back ends. Gnus thinks "highest-article-number -
1060 lowest-article-number = total-number-of-articles". This
1061 works OK for Usenet groups, but if you delete and move
1062 many messages in mail groups, this fails. To cure the
1063 symptom, enter the group via @samp{C-u RET}
1064 (this makes Gnus get all messages), then
1065 hit @samp{M P b} to mark all messages and
1066 then say @samp{B m name.of.group} to move
1067 all messages to the group they have been in before, they
1068 get new message numbers in this process and the count is
1069 right again (until you delete and move your mail to other
1073 @subsubheading Question 4.13
1075 I don't like the layout of summary and article buffer, how
1076 to change it? Perhaps even a three pane display?
1078 @subsubheading Answer
1080 You can control the windows configuration by calling the
1081 function gnus-add-configuration. The syntax is a bit
1082 complicated but explained very well in the manual node
1083 "Window Layout". Some popular examples:
1085 Instead 25% summary 75% article buffer 35% summary and 65%
1086 article (the 1.0 for article means "take the remaining
1090 (gnus-add-configuration
1091 '(article (vertical 1.0 (summary .35 point) (article 1.0))))
1095 A three pane layout, Group buffer on the left, summary
1096 buffer top-right, article buffer bottom-right:
1099 (gnus-add-configuration
1105 (summary 0.25 point)
1107 (gnus-add-configuration
1113 (summary 1.0 point)))))
1118 @subsubheading Question 4.14
1120 I don't like the way the Summary buffer looks, how to tweak it?
1122 @subsubheading Answer
1124 You've got to play around with the variable
1125 gnus-summary-line-format. It's value is a string of
1126 symbols which stand for things like author, date, subject
1127 etc. A list of the available specifiers can be found in the
1128 manual node "Summary Buffer Lines" and the often forgotten
1129 node "Formatting Variables" and it's sub-nodes. There
1130 you'll find useful things like positioning the cursor and
1131 tabulators which allow you a summary in table form, but
1132 sadly hard tabulators are broken in 5.8.8.
1134 Since 5.10, Gnus offers you some very nice new specifiers,
1135 e.g. %B which draws a thread-tree and %&user-date which
1136 gives you a date where the details are dependent of the
1137 articles age. Here's an example which uses both:
1140 (setq gnus-summary-line-format ":%U%R %B %s %-60=|%4L |%-20,20f |%&user-date; \n")
1147 :O Re: [Richard Stallman] rfc2047.el | 13 |Lars Magne Ingebrigt |Sat 23:06
1148 :O Re: Revival of the ding-patches list | 13 |Lars Magne Ingebrigt |Sat 23:12
1149 :R > Re: Find correct list of articles for a gro| 25 |Lars Magne Ingebrigt |Sat 23:16
1150 :O \-> ... | 21 |Kai Grossjohann | 0:01
1151 :R > Re: Cry for help: deuglify.el - moving stuf| 28 |Lars Magne Ingebrigt |Sat 23:34
1152 :O \-> ... | 115 |Raymond Scholz | 1:24
1153 :O \-> ... | 19 |Lars Magne Ingebrigt |15:33
1154 :O Slow mailing list | 13 |Lars Magne Ingebrigt |Sat 23:49
1155 :O Re: `@@' mark not documented | 13 |Lars Magne Ingebrigt |Sat 23:50
1156 :R > Re: Gnus still doesn't count messages prope| 23 |Lars Magne Ingebrigt |Sat 23:57
1157 :O \-> ... | 18 |Kai Grossjohann | 0:35
1158 :O \-> ... | 13 |Lars Magne Ingebrigt | 0:56
1163 @subsubheading Question 4.15
1165 How to split incoming mails in several groups?
1167 @subsubheading Answer
1169 Gnus offers two possibilities for splitting mail, the easy
1170 nnmail-split-methods and the more powerful Fancy Mail
1171 Splitting. I'll only talk about the first one, refer to
1172 the manual, node "Fancy Mail Splitting" for the latter.
1174 The value of nnmail-split-methods is a list, each element
1175 is a list which stands for a splitting rule. Each rule has
1176 the form "group where matching articles should go to",
1177 "regular expression which has to be matched", the first
1178 rule which matches wins. The last rule must always be a
1179 general rule (regular expression .*) which denotes where
1180 articles should go which don't match any other rule. If
1181 the folder doesn't exist yet, it will be created as soon
1182 as an article lands there. By default the mail will be
1183 send to all groups whose rules match. If you
1184 don't want that (you probably don't want), say
1187 (setq nnmail-crosspost nil)
1193 An example might be better than thousand words, so here's
1194 my nnmail-split-methods. Note that I send duplicates in a
1195 special group and that the default group is spam, since I
1196 filter all mails out which are from some list I'm
1197 subscribed to or which are addressed directly to me
1198 before. Those rules kill about 80% of the Spam which
1199 reaches me (Email addresses are changed to prevent spammers
1203 (setq nnmail-split-methods
1204 '(("duplicates" "^Gnus-Warning:.*duplicate")
1205 ("XEmacs-NT" "^\\(To:\\|CC:\\).*localpart@@xemacs.invalid.*")
1206 ("Gnus-Tut" "^\\(To:\\|CC:\\).*localpart@@socha.invalid.*")
1207 ("tcsh" "^\\(To:\\|CC:\\).*localpart@@mx.gw.invalid.*")
1208 ("BAfH" "^\\(To:\\|CC:\\).*localpart@@.*uni-muenchen.invalid.*")
1209 ("Hamster-src" "^\\(CC:\\|To:\\).*hamster-sourcen@@yahoogroups.\\(de\\|com\\).*")
1210 ("Tagesschau" "^From: tagesschau <localpart@@www.tagesschau.invalid>$")
1211 ("Replies" "^\\(CC:\\|To:\\).*localpart@@Frank-Schmitt.invalid.*")
1212 ("EK" "^From:.*\\(localpart@@privateprovider.invalid\\|localpart@@workplace.invalid\\).*")
1213 ("Spam" "^Content-Type:.*\\(ks_c_5601-1987\\|EUC-KR\\|big5\\|iso-2022-jp\\).*")
1214 ("Spam" "^Subject:.*\\(This really work\\|XINGA\\|ADV:\\|XXX\\|adult\\|sex\\).*")
1215 ("Spam" "^Subject:.*\\(\=\?ks_c_5601-1987\?\\|\=\?euc-kr\?\\|\=\?big5\?\\).*")
1216 ("Spam" "^X-Mailer:\\(.*BulkMailer.*\\|.*MIME::Lite.*\\|\\)")
1217 ("Spam" "^X-Mailer:\\(.*CyberCreek Avalanche\\|.*http\:\/\/GetResponse\.com\\)")
1218 ("Spam" "^From:.*\\(verizon\.net\\|prontomail\.com\\|money\\|ConsumerDirect\\).*")
1219 ("Spam" "^Delivered-To: GMX delivery to spamtrap@@gmx.invalid$")
1220 ("Spam" "^Received: from link2buy.com")
1221 ("Spam" "^CC: .*azzrael@@t-online.invalid")
1222 ("Spam" "^X-Mailer-Version: 1.50 BETA")
1223 ("Uni" "^\\(CC:\\|To:\\).*localpart@@uni-koblenz.invalid.*")
1224 ("Inbox" "^\\(CC:\\|To:\\).*\\(my\ name\\|address@@one.invalid\\|adress@@two.invalid\\)")
1229 @node FAQ 5 - Composing messages
1230 @subsection Composing messages
1233 * FAQ 5-1:: What are the basic commands I need to know for sending
1235 * FAQ 5-2:: How to enable automatic word-wrap when composing
1237 * FAQ 5-3:: How to set stuff like From, Organization, Reply-To,
1239 * FAQ 5-4:: Can I set things like From, Signature etc group based on
1240 the group I post too?
1241 * FAQ 5-5:: Is there a spell-checker? Perhaps even on-the-fly
1243 * FAQ 5-6:: Can I set the dictionary based on the group I'm posting
1245 * FAQ 5-7:: Is there some kind of address-book, so I needn't
1246 remember all those email addresses?
1247 * FAQ 5-8:: Sometimes I see little images at the top of article
1248 buffer. What's that and how can I send one with my postings,
1250 * FAQ 5-9:: Sometimes I accidentally hit r instead of f in
1251 newsgroups. Can Gnus warn me, when I'm replying by mail in
1253 * FAQ 5-10:: How to tell Gnus not to generate a sender header?
1254 * FAQ 5-11:: I want Gnus to locally store copies of my send mail and
1256 * FAQ 5-12:: I want Gnus to kill the buffer after successful sending
1257 instead of keeping it alive as "Sent mail to...", how to do it?
1258 * FAQ 5-13:: People tell me my Message-IDs are not correct, why
1259 aren't they and how to fix it?
1263 @subsubheading Question 5.1
1265 What are the basic commands I need to know for sending mail and postings?
1267 @subsubheading Answer
1269 To start composing a new mail hit @samp{m}
1270 either in Group or Summary buffer, for a posting, it's
1271 either @samp{a} in Group buffer and
1272 filling the Newsgroups header manually
1273 or @samp{a} in the Summary buffer of the
1274 group where the posting shall be send to. Replying by mail
1276 @samp{r} if you don't want to cite the
1277 author, or import the cited text manually and
1278 @samp{R} to cite the text of the original
1279 message. For a follow up to a newsgroup, it's
1280 @samp{f} and @samp{F}
1281 (analogously to @samp{r} and
1284 Enter new headers above the line saying "--text follows
1285 this line--", enter the text below the line. When ready
1286 hit @samp{C-c C-c}, to send the message,
1287 if you want to finish it later hit @samp{C-c
1288 C-d} to save it in the drafts group, where you
1289 can start editing it again by saying @samp{D
1293 @subsubheading Question 5.2
1295 How to enable automatic word-wrap when composing messages?
1297 @subsubheading Answer
1299 Starting from No Gnus, automatic word-wrap is already enabled by
1300 default, see the variable message-fill-column.
1302 For other versions of Gnus, say
1305 (unless (boundp 'message-fill-column)
1306 (add-hook 'message-mode-hook
1308 (setq fill-column 72)
1309 (turn-on-auto-fill))))
1315 You can reformat a paragraph by hitting @samp{M-q}
1319 @subsubheading Question 5.3
1321 How to set stuff like From, Organization, Reply-To, signature...?
1323 @subsubheading Answer
1325 There are other ways, but you should use posting styles
1326 for this. (See below why).
1327 This example should make the syntax clear:
1330 (setq gnus-posting-styles
1332 (name "Frank Schmitt")
1333 (address "me@@there.invalid")
1334 (organization "Hamme net, kren mer och nimmi")
1335 (signature-file "~/.signature")
1336 ("X-SampleHeader" "foobar")
1337 (eval (setq some-variable "Foo bar")))))
1341 The ".*" means that this settings are the default ones
1342 (see below), valid values for the first element of the
1343 following lists are signature, signature-file,
1344 organization, address, name or body. The attribute name
1345 can also be a string. In that case, this will be used as
1346 a header name, and the value will be inserted in the
1347 headers of the article; if the value is `nil', the header
1348 name will be removed. You can also say (eval (foo bar)),
1349 then the function foo will be evaluated with argument bar
1350 and the result will be thrown away.
1353 @subsubheading Question 5.4
1355 Can I set things like From, Signature etc group based on the group I post too?
1357 @subsubheading Answer
1359 That's the strength of posting styles. Before, we used ".*"
1360 to set the default for all groups. You can use a regexp
1361 like "^gmane" and the following settings are only applied
1362 to postings you send to the gmane hierarchy, use
1363 ".*binaries" instead and they will be applied to postings
1364 send to groups containing the string binaries in their
1367 You can instead of specifying a regexp specify a function
1368 which is evaluated, only if it returns true, the
1369 corresponding settings take effect. Two interesting
1370 candidates for this are message-news-p which returns t if
1371 the current Group is a newsgroup and the corresponding
1374 Note that all forms that match are applied, that means in
1375 the example below, when I post to
1376 gmane.mail.spam.spamassassin.general, the settings under
1377 ".*" are applied and the settings under message-news-p and
1378 those under "^gmane" and those under
1379 "^gmane\\.mail\\.spam\\.spamassassin\\.general$". Because
1380 of this put general settings at the top and specific ones
1384 (setq gnus-posting-styles
1386 (name "Frank Schmitt")
1387 (organization "Hamme net, kren mer och nimmi")
1388 (signature-file "~/.signature"))
1389 ((message-news-p) ;;Usenet news?
1390 (address "mySpamTrap@@Frank-Schmitt.invalid")
1391 (reply-to "hereRealRepliesOnlyPlease@@Frank-Schmitt.invalid"))
1392 ((message-mail-p) ;;mail?
1393 (address "usedForMails@@Frank-Schmitt.invalid"))
1394 ("^gmane" ;;this is mail, too in fact
1395 (address "usedForMails@@Frank-Schmitt.invalid")
1397 ("^gmane\\.mail\\.spam\\.spamassassin\\.general$"
1398 (eval (set (make-local-variable 'message-sendmail-envelope-from)
1399 "Azzrael@@rz-online.de")))))
1404 @subsubheading Question 5.5
1406 Is there a spell-checker? Perhaps even on-the-fly spell-checking?
1408 @subsubheading Answer
1410 You can use ispell.el to spell-check stuff in Emacs. So the
1411 first thing to do is to make sure that you've got either
1412 @uref{http://fmg-www.cs.ucla.edu/fmg-members/geoff/ispell.html, ispell}
1413 or @uref{http://aspell.sourceforge.net/, aspell}
1414 installed and in your Path. Then you need
1415 @uref{http://www.kdstevens.com/~stevens/ispell-page.html, ispell.el}
1416 and for on-the-fly spell-checking
1417 @uref{http://www-sop.inria.fr/mimosa/personnel/Manuel.Serrano/flyspell/flyspell.html, flyspell.el}.
1418 Ispell.el is shipped with Emacs and available through the XEmacs package system,
1419 flyspell.el is shipped with Emacs and part of XEmacs text-modes package which is
1420 available through the package system, so there should be no need to install them
1423 Ispell.el assumes you use ispell, if you choose aspell say
1426 (setq ispell-program-name "aspell")
1430 in your Emacs configuration file.
1432 If you want your outgoing messages to be spell-checked, say
1435 (add-hook 'message-send-hook 'ispell-message)
1439 In your ~/.gnus.el, if you prefer on-the-fly spell-checking say
1442 (add-hook 'message-mode-hook (lambda () (flyspell-mode 1)))
1447 @subsubheading Question 5.6
1449 Can I set the dictionary based on the group I'm posting to?
1451 @subsubheading Answer
1453 Yes, say something like
1456 (add-hook 'gnus-select-group-hook
1460 "^de\\." (gnus-group-real-name gnus-newsgroup-name))
1461 (ispell-change-dictionary "deutsch8"))
1463 (ispell-change-dictionary "english")))))
1467 in ~/.gnus.el. Change "^de\\." and "deutsch8" to something
1468 that suits your needs.
1471 @subsubheading Question 5.7
1473 Is there some kind of address-book, so I needn't remember
1474 all those email addresses?
1476 @subsubheading Answer
1478 There's an very basic solution for this, mail aliases.
1479 You can store your mail addresses in a ~/.mailrc file using a simple
1483 alias al "Al <al@@english-heritage.invalid>"
1487 Then typing your alias (followed by a space or punctuation
1488 character) on a To: or Cc: line in the message buffer will
1489 cause Gnus to insert the full address for you. See the
1490 node "Mail Aliases" in Message (not Gnus) manual for
1493 However, what you really want is the Insidious Big Brother
1494 Database bbdb. Get it through the XEmacs package system or from
1495 @uref{http://bbdb.sourceforge.net/, bbdb's homepage}.
1496 Now place the following in ~/.gnus.el, to activate bbdb for Gnus:
1500 (bbdb-initialize 'gnus 'message)
1504 Now you probably want some general bbdb configuration,
1505 place them in ~/.emacs:
1509 ;;If you don't live in Northern America, you should disable the
1510 ;;syntax check for telephone numbers by saying
1511 (setq bbdb-north-american-phone-numbers-p nil)
1512 ;;Tell bbdb about your email address:
1513 (setq bbdb-user-mail-names
1514 (regexp-opt '("Your.Email@@here.invalid"
1515 "Your.other@@mail.there.invalid")))
1516 ;;cycling while completing email addresses
1517 (setq bbdb-complete-name-allow-cycling t)
1519 (setq bbdb-use-pop-up nil)
1523 Now you should be ready to go. Say @samp{M-x bbdb RET
1524 RET} to open a bbdb buffer showing all
1525 entries. Say @samp{c} to create a new
1526 entry, @samp{b} to search your BBDB and
1527 @samp{C-o} to add a new field to an
1528 entry. If you want to add a sender to the BBDB you can
1529 also just hit `:' on the posting in the summary buffer and
1530 you are done. When you now compose a new mail,
1531 hit @samp{TAB} to cycle through know
1535 @subsubheading Question 5.8
1537 Sometimes I see little images at the top of article
1538 buffer. What's that and how can I send one with my
1541 @subsubheading Answer
1543 Those images are called X-Faces. They are 48*48 pixel b/w
1544 pictures, encoded in a header line. If you want to include
1545 one in your posts, you've got to convert some image to a
1546 X-Face. So fire up some image manipulation program (say
1547 Gimp), open the image you want to include, cut out the
1548 relevant part, reduce color depth to 1 bit, resize to
1549 48*48 and save as bitmap. Now you should get the compface
1551 @uref{ftp://ftp.cs.indiana.edu:/pub/faces/, this site}.
1552 and create the actual X-face by saying
1555 cat file.xbm | xbm2ikon | compface > file.face
1556 cat file.face | sed 's/\\/\\\\/g;s/\"/\\\"/g;' > file.face.quoted
1560 If you can't use compface, there's an online X-face converter at
1561 @uref{http://www.dairiki.org/xface/}.
1562 If you use MS Windows, you could also use the WinFace program from
1563 @uref{http://www.xs4all.nl/~walterln/winface/}.
1564 Now you only have to tell Gnus to include the X-face in your postings by saying
1567 (setq message-default-headers
1570 (insert-file-contents "~/.xface")
1575 in ~/.gnus.el. If you use Gnus 5.10, you can simply add an entry
1578 (x-face-file "~/.xface")
1582 to gnus-posting-styles.
1585 @subsubheading Question 5.9
1587 Sometimes I accidentally hit r instead of f in
1588 newsgroups. Can Gnus warn me, when I'm replying by mail in
1591 @subsubheading Answer
1593 Put this in ~/.gnus.el:
1596 (setq gnus-confirm-mail-reply-to-news t)
1600 if you already use Gnus 5.10, if you still use 5.8.8 or
1601 5.9 try this instead:
1604 (eval-after-load "gnus-msg"
1605 '(unless (boundp 'gnus-confirm-mail-reply-to-news)
1606 (defadvice gnus-summary-reply (around reply-in-news activate)
1607 "Request confirmation when replying to news."
1609 (when (or (not (gnus-news-group-p gnus-newsgroup-name))
1610 (y-or-n-p "Really reply by mail to article author? "))
1616 @subsubheading Question 5.10
1618 How to tell Gnus not to generate a sender header?
1620 @subsubheading Answer
1622 Since 5.10 Gnus doesn't generate a sender header by
1623 default. For older Gnus' try this in ~/.gnus.el:
1626 (eval-after-load "message"
1627 '(add-to-list 'message-syntax-checks '(sender . disabled)))
1632 @subsubheading Question 5.11
1634 I want Gnus to locally store copies of my send mail and
1637 @subsubheading Answer
1639 You must set the variable gnus-message-archive-group to do
1640 this. You can set it to a string giving the name of the
1641 group where the copies shall go or like in the example
1642 below use a function which is evaluated and which returns
1646 (setq gnus-message-archive-group
1647 '((if (message-news-p)
1654 @subsubheading Question 5.12
1656 I want Gnus to kill the buffer after successful sending instead of keeping
1657 it alive as "Sent mail to...", how to do it?
1659 @subsubheading Answer
1661 Add this to your ~/.gnus:
1664 (setq message-kill-buffer-on-exit t)
1669 @subsubheading Question 5.13
1671 People tell me my Message-IDs are not correct, why
1672 aren't they and how to fix it?
1674 @subsubheading Answer
1676 The message-ID is an unique identifier for messages you
1677 send. To make it unique, Gnus need to know which machine
1678 name to put after the "@@". If the name of the machine
1679 where Gnus is running isn't suitable (it probably isn't
1680 at most private machines) you can tell Gnus what to use
1684 (setq message-user-fqdn "yourmachine.yourdomain.tld")
1688 in ~/.gnus.el. If you use Gnus 5.9 or earlier, you can use this
1689 instead (works for newer versions as well):
1692 (eval-after-load "message"
1693 '(let ((fqdn "yourmachine.yourdomain.tld"));; <-- Edit this!
1694 (if (boundp 'message-user-fqdn)
1695 (setq message-user-fqdn fqdn)
1696 (gnus-message 1 "Redefining `message-make-fqdn'.")
1697 (defun message-make-fqdn ()
1698 "Return user's fully qualified domain name."
1703 If you have no idea what to insert for
1704 "yourmachine.yourdomain.tld", you've got several
1705 choices. You can either ask your provider if he allows
1706 you to use something like
1707 yourUserName.userfqdn.provider.net, or you can use
1708 somethingUnique.yourdomain.tld if you own the domain
1709 yourdomain.tld, or you can register at a service which
1710 gives private users a FQDN for free.
1712 Finally you can tell Gnus not to generate a Message-ID
1713 for News at all (and letting the server do the job) by saying
1716 (setq message-required-news-headers
1717 (remove' Message-ID message-required-news-headers))
1721 you can also tell Gnus not to generate Message-IDs for mail by saying
1724 (setq message-required-mail-headers
1725 (remove' Message-ID message-required-mail-headers))
1729 , however some mail servers don't generate proper
1730 Message-IDs, too, so test if your Mail Server behaves
1731 correctly by sending yourself a Mail and looking at the Message-ID.
1733 @node FAQ 6 - Old messages
1734 @subsection Old messages
1737 * FAQ 6-1:: How to import my old mail into Gnus?
1738 * FAQ 6-2:: How to archive interesting messages?
1739 * FAQ 6-3:: How to search for a specific message?
1740 * FAQ 6-4:: How to get rid of old unwanted mail?
1741 * FAQ 6-5:: I want that all read messages are expired (at least in
1742 some groups). How to do it?
1743 * FAQ 6-6:: I don't want expiration to delete my mails but to move
1744 them to another group.
1748 @subsubheading Question 6.1
1750 How to import my old mail into Gnus?
1752 @subsubheading Answer
1754 The easiest way is to tell your old mail program to
1755 export the messages in mbox format. Most Unix mailers
1756 are able to do this, if you come from the MS Windows
1757 world, you may find tools at
1758 @uref{http://mbx2mbox.sourceforge.net/}.
1760 Now you've got to import this mbox file into Gnus. To do
1761 this, create a nndoc group based on the mbox file by
1762 saying @samp{G f /path/file.mbox RET} in
1763 Group buffer. You now have read-only access to your
1764 mail. If you want to import the messages to your normal
1765 Gnus mail groups hierarchy, enter the nndoc group you've
1766 just created by saying @samp{C-u RET}
1767 (thus making sure all messages are retrieved), mark all
1768 messages by saying @samp{M P b} and
1769 either copy them to the desired group by saying
1770 @samp{B c name.of.group RET} or send them
1771 through nnmail-split-methods (respool them) by saying
1775 @subsubheading Question 6.2
1777 How to archive interesting messages?
1779 @subsubheading Answer
1781 If you stumble across an interesting message, say in
1782 gnu.emacs.gnus and want to archive it there are several
1783 solutions. The first and easiest is to save it to a file
1784 by saying @samp{O f}. However, wouldn't
1785 it be much more convenient to have more direct access to
1786 the archived message from Gnus? If you say yes, put this
1787 snippet by Frank Haun <pille3003@@fhaun.de> in
1791 (defun my-archive-article (&optional n)
1792 "Copies one or more article(s) to a corresponding `nnml:' group, e.g.
1793 `gnus.ding' goes to `nnml:1.gnus.ding'. And `nnml:List-gnus.ding' goes
1794 to `nnml:1.List-gnus-ding'.
1796 Use process marks or mark a region in the summary buffer to archive
1797 more then one article."
1802 (if (featurep 'xemacs)
1803 (replace-in-string gnus-newsgroup-name "^.*:" "")
1804 (replace-regexp-in-string "^.*:" "" gnus-newsgroup-name)))))
1805 (gnus-summary-copy-article n archive-name)))
1809 You can now say @samp{M-x
1810 my-archive-article} in summary buffer to
1811 archive the article under the cursor in a nnml
1812 group. (Change nnml to your preferred back end)
1814 Of course you can also make sure the cache is enabled by saying
1817 (setq gnus-use-cache t)
1821 then you only have to set either the tick or the dormant
1822 mark for articles you want to keep, setting the read
1823 mark will remove them from cache.
1826 @subsubheading Question 6.3
1828 How to search for a specific message?
1830 @subsubheading Answer
1832 There are several ways for this, too. For a posting from
1833 a Usenet group the easiest solution is probably to ask
1834 @uref{http://groups.google.com, groups.google.com},
1835 if you found the posting there, tell Google to display
1836 the raw message, look for the message-id, and say
1837 @samp{M-^ the@@message.id RET} in a
1839 Since Gnus 5.10 there's also a Gnus interface for
1840 groups.google.com which you can call with
1841 @samp{G W}) in group buffer.
1843 Another idea which works for both mail and news groups
1844 is to enter the group where the message you are
1845 searching is and use the standard Emacs search
1846 @samp{C-s}, it's smart enough to look at
1847 articles in collapsed threads, too. If you want to
1848 search bodies, too try @samp{M-s}
1849 instead. Further on there are the
1850 gnus-summary-limit-to-foo functions, which can help you,
1853 Of course you can also use grep to search through your
1854 local mail, but this is both slow for big archives and
1855 inconvenient since you are not displaying the found mail
1856 in Gnus. Here comes nnir into action. Nnir is a front end
1857 to search engines like swish-e or swish++ and
1858 others. You index your mail with one of those search
1859 engines and with the help of nnir you can search trough
1860 the indexed mail and generate a temporary group with all
1861 messages which met your search criteria. If this sound
1862 cool to you get nnir.el from
1863 @uref{ftp://ls6-ftp.cs.uni-dortmund.de/pub/src/emacs/}
1864 or @uref{ftp://ftp.is.informatik.uni-duisburg.de/pub/src/emacs/}.
1865 Instructions on how to use it are at the top of the file.
1868 @subsubheading Question 6.4
1870 How to get rid of old unwanted mail?
1872 @subsubheading Answer
1874 You can of course just mark the mail you don't need
1875 anymore by saying @samp{#} with point
1876 over the mail and then say @samp{B DEL}
1877 to get rid of them forever. You could also instead of
1878 actually deleting them, send them to a junk-group by
1879 saying @samp{B m nnml:trash-bin} which
1880 you clear from time to time, but both are not the intended
1883 In Gnus, we let mail expire like news expires on a news
1884 server. That means you tell Gnus the message is
1885 expirable (you tell Gnus "I don't need this mail
1886 anymore") by saying @samp{E} with point
1887 over the mail in summary buffer. Now when you leave the
1888 group, Gnus looks at all messages which you marked as
1889 expirable before and if they are old enough (default is
1890 older than a week) they are deleted.
1893 @subsubheading Question 6.5
1895 I want that all read messages are expired (at least in
1896 some groups). How to do it?
1898 @subsubheading Answer
1900 If you want all read messages to be expired (e.g. in
1901 mailing lists where there's an online archive), you've
1902 got two choices: auto-expire and
1903 total-expire. Auto-expire means, that every article
1904 which has no marks set and is selected for reading is
1905 marked as expirable, Gnus hits @samp{E}
1906 for you every time you read a message. Total-expire
1907 follows a slightly different approach, here all article
1908 where the read mark is set are expirable.
1910 To activate auto-expire, include auto-expire in the
1911 Group parameters for the group. (Hit @samp{G
1912 c} in summary buffer with point over the
1913 group to change group parameters). For total-expire add
1914 total-expire to the group-parameters.
1916 Which method you choose is merely a matter of taste:
1917 Auto-expire is faster, but it doesn't play together with
1918 Adaptive Scoring, so if you want to use this feature,
1919 you should use total-expire.
1921 If you want a message to be excluded from expiration in
1922 a group where total or auto expire is active, set either
1923 tick (hit @samp{u}) or dormant mark (hit
1924 @samp{u}), when you use auto-expire, you
1925 can also set the read mark (hit
1929 @subsubheading Question 6.6
1931 I don't want expiration to delete my mails but to move them
1934 @subsubheading Answer
1936 Say something like this in ~/.gnus.el:
1939 (setq nnmail-expiry-target "nnml:expired")
1943 (If you want to change the value of nnmail-expiry-target
1944 on a per group basis see the question "How can I disable
1945 threading in some (e.g. mail-) groups, or set other
1946 variables specific for some groups?")
1948 @node FAQ 7 - Gnus in a dial-up environment
1949 @subsection Gnus in a dial-up environment
1952 * FAQ 7-1:: I don't have a permanent connection to the net, how can I
1953 minimize the time I've got to be connected?
1954 * FAQ 7-2:: So what was this thing about the Agent?
1955 * FAQ 7-3:: I want to store article bodies on disk, too. How to do
1957 * FAQ 7-4:: How to tell Gnus not to try to send mails / postings
1962 @subsubheading Question 7.1
1964 I don't have a permanent connection to the net, how can
1965 I minimize the time I've got to be connected?
1967 @subsubheading Answer
1969 You've got basically two options: Either you use the
1970 Gnus Agent (see below) for this, or you can install
1971 programs which fetch your news and mail to your local
1972 disk and Gnus reads the stuff from your local
1975 If you want to follow the second approach, you need a
1976 program which fetches news and offers them to Gnus, a
1977 program which does the same for mail and a program which
1978 receives the mail you write from Gnus and sends them
1981 Let's talk about Unix systems first: For the news part,
1982 the easiest solution is a small nntp server like
1983 @uref{http://www.leafnode.org/, Leafnode} or
1984 @uref{http://infa.abo.fi/~patrik/sn/, sn},
1985 of course you can also install a full featured news
1987 @uref{http://www.isc.org/products/INN/, inn}.
1988 Then you want to fetch your Mail, popular choices
1989 are @uref{http://www.catb.org/~esr/fetchmail/, fetchmail}
1990 and @uref{http://www.qcc.ca/~charlesc/software/getmail-3.0/, getmail}.
1991 You should tell those to write the mail to your disk and
1992 Gnus to read it from there. Last but not least the mail
1993 sending part: This can be done with every MTA like
1994 @uref{http://www.sendmail.org/, sendmail},
1995 @uref{http://www.qmail.org/, postfix},
1996 @uref{http://www.exim.org/, exim} or
1997 @uref{http://www.qmail.org/, qmail}.
1999 On windows boxes I'd vote for
2000 @uref{http://www.tglsoft.de/, Hamster},
2001 it's a small freeware, open-source program which fetches
2002 your mail and news from remote servers and offers them
2003 to Gnus (or any other mail and/or news reader) via nntp
2004 respectively POP3 or IMAP. It also includes a smtp
2005 server for receiving mails from Gnus.
2008 @subsubheading Question 7.2
2010 So what was this thing about the Agent?
2012 @subsubheading Answer
2014 The Gnus agent is part of Gnus, it allows you to fetch
2015 mail and news and store them on disk for reading them
2016 later when you're offline. It kind of mimics offline
2017 newsreaders like e.g. Forte Agent. If you want to use
2018 the Agent place the following in ~/.gnus.el if you are
2019 still using 5.8.8 or 5.9 (it's the default since 5.10):
2026 Now you've got to select the servers whose groups can be
2027 stored locally. To do this, open the server buffer
2028 (that is press @samp{^} while in the
2029 group buffer). Now select a server by moving point to
2030 the line naming that server. Finally, agentize the
2031 server by typing @samp{J a}. If you
2032 make a mistake, or change your mind, you can undo this
2033 action by typing @samp{J r}. When
2034 you're done, type 'q' to return to the group buffer.
2035 Now the next time you enter a group on a agentized
2036 server, the headers will be stored on disk and read from
2037 there the next time you enter the group.
2040 @subsubheading Question 7.3
2042 I want to store article bodies on disk, too. How to do it?
2044 @subsubheading Answer
2046 You can tell the agent to automatically fetch the bodies
2047 of articles which fulfill certain predicates, this is
2048 done in a special buffer which can be reached by
2049 saying @samp{J c} in group
2050 buffer. Please refer to the documentation for
2051 information which predicates are possible and how
2054 Further on you can tell the agent manually which
2055 articles to store on disk. There are two ways to do
2056 this: Number one: In the summary buffer, process mark a
2057 set of articles that shall be stored in the agent by
2058 saying @samp{#} with point over the
2059 article and then type @samp{J s}. The
2060 other possibility is to set, again in the summary
2061 buffer, downloadable (%) marks for the articles you
2062 want by typing @samp{@@} with point over
2063 the article and then typing @samp{J u}.
2064 What's the difference? Well, process marks are erased as
2065 soon as you exit the summary buffer while downloadable
2066 marks are permanent. You can actually set downloadable
2067 marks in several groups then use fetch session ('J s' in
2068 the GROUP buffer) to fetch all of those articles. The
2069 only downside is that fetch session also fetches all of
2070 the headers for every selected group on an agentized
2071 server. Depending on the volume of headers, the initial
2072 fetch session could take hours.
2075 @subsubheading Question 7.4
2077 How to tell Gnus not to try to send mails / postings
2080 @subsubheading Answer
2082 All you've got to do is to tell Gnus when you are online
2083 (plugged) and when you are offline (unplugged), the rest
2084 works automatically. You can toggle plugged/unplugged
2085 state by saying @samp{J j} in group
2086 buffer. To start Gnus unplugged say @samp{M-x
2087 gnus-unplugged} instead of
2088 @samp{M-x gnus}. Note that for this to
2089 work, the agent must be active.
2091 @node FAQ 8 - Getting help
2092 @subsection Getting help
2095 * FAQ 8-1:: How to find information and help inside Emacs?
2096 * FAQ 8-2:: I can't find anything in the Gnus manual about X (e.g.
2097 attachments, PGP, MIME...), is it not documented?
2098 * FAQ 8-3:: Which websites should I know?
2099 * FAQ 8-4:: Which mailing lists and newsgroups are there?
2100 * FAQ 8-5:: Where to report bugs?
2101 * FAQ 8-6:: I need real-time help, where to find it?
2105 @subsubheading Question 8.1
2107 How to find information and help inside Emacs?
2109 @subsubheading Answer
2111 The first stop should be the Gnus manual (Say
2112 @samp{C-h i d m Gnus RET} to start the
2113 Gnus manual, then walk through the menus or do a
2114 full-text search with @samp{s}). Then
2115 there are the general Emacs help commands starting with
2116 C-h, type @samp{C-h ? ?} to get a list
2117 of all available help commands and their meaning. Finally
2118 @samp{M-x apropos-command} lets you
2119 search through all available functions and @samp{M-x
2120 apropos} searches the bound variables.
2123 @subsubheading Question 8.2
2125 I can't find anything in the Gnus manual about X
2126 (e.g. attachments, PGP, MIME...), is it not documented?
2128 @subsubheading Answer
2130 There's not only the Gnus manual but also the manuals
2131 for message, emacs-mime, sieve and pgg. Those packages
2132 are distributed with Gnus and used by Gnus but aren't
2133 really part of core Gnus, so they are documented in
2134 different info files, you should have a look in those
2138 @subsubheading Question 8.3
2140 Which websites should I know?
2142 @subsubheading Answer
2144 The two most important ones are the
2145 @uref{http://www.gnus.org, official Gnus website}.
2146 and it's sister site
2147 @uref{http://my.gnus.org, my.gnus.org (MGO)},
2148 hosting an archive of lisp snippets, howtos, a (not
2149 really finished) tutorial and this FAQ.
2151 Tell me about other sites which are interesting.
2154 @subsubheading Question 8.4
2156 Which mailing lists and newsgroups are there?
2158 @subsubheading Answer
2160 There's the newsgroup gnu.emacs.gnus (also available as
2161 @uref{http://dir.gmane.org/gmane.emacs.gnus.user,
2162 gmane.emacs.gnus.user}) which deals with general Gnus
2163 questions. If you have questions about development versions of
2164 Gnus, you should better ask on the ding mailing list, see below.
2166 If you want to stay in the big8,
2167 news.software.readers is also read by some Gnus
2168 users (but chances for qualified help are much better in
2169 the above groups). If you speak German, there's
2170 de.comm.software.gnus.
2172 The ding mailing list (ding@@gnus.org) deals with development of
2173 Gnus. You can read the ding list via NNTP, too under the name
2174 @uref{http://dir.gmane.org/gmane.emacs.gnus.general,
2175 gmane.emacs.gnus.general} from news.gmane.org.
2178 @subsubheading Question 8.5
2180 Where to report bugs?
2182 @subsubheading Answer
2184 Say @samp{M-x gnus-bug}, this will start
2186 @email{bugs@@gnus.org, gnus bug mailing list}
2187 including information about your environment which make
2188 it easier to help you.
2191 @subsubheading Question 8.6
2193 I need real-time help, where to find it?
2195 @subsubheading Answer
2197 Point your IRC client to irc.freenode.net, channel #gnus.
2199 @node FAQ 9 - Tuning Gnus
2200 @subsection Tuning Gnus
2203 * FAQ 9-1:: Starting Gnus is really slow, how to speed it up?
2204 * FAQ 9-2:: How to speed up the process of entering a group?
2205 * FAQ 9-3:: Sending mail becomes slower and slower, what's up?
2209 @subsubheading Question 9.1
2211 Starting Gnus is really slow, how to speed it up?
2213 @subsubheading Answer
2215 The reason for this could be the way Gnus reads it's
2216 active file, see the node "The Active File" in the Gnus
2217 manual for things you might try to speed the process up.
2218 An other idea would be to byte compile your ~/.gnus.el (say
2219 @samp{M-x byte-compile-file RET ~/.gnus.el
2220 RET} to do it). Finally, if you have require
2221 statements in your .gnus, you could replace them with
2222 eval-after-load, which loads the stuff not at startup
2223 time, but when it's needed. Say you've got this in your
2228 (add-to-list 'message-syntax-checks '(sender . disabled))
2232 then as soon as you start Gnus, message.el is loaded. If
2236 (eval-after-load "message"
2237 '(add-to-list 'message-syntax-checks '(sender . disabled)))
2241 it's loaded when it's needed.
2244 @subsubheading Question 9.2
2246 How to speed up the process of entering a group?
2248 @subsubheading Answer
2250 A speed killer is setting the variable
2251 gnus-fetch-old-headers to anything different from nil,
2252 so don't do this if speed is an issue. To speed up
2253 building of summary say
2260 at the bottom of your ~/.gnus.el, this will make gnus
2261 byte-compile things like
2262 gnus-summary-line-format.
2263 then you could increase the value of gc-cons-threshold
2264 by saying something like
2267 (setq gc-cons-threshold 3500000)
2271 in ~/.emacs. If you don't care about width of CJK
2272 characters or use Gnus 5.10 or younger together with a
2273 recent GNU Emacs, you should say
2276 (setq gnus-use-correct-string-widths nil)
2280 in ~/.gnus.el (thanks to Jesper harder for the last
2281 two suggestions). Finally if you are still using 5.8.8
2282 or 5.9 and experience speed problems with summary
2283 buffer generation, you definitely should update to
2284 5.10 since there quite some work on improving it has
2288 @subsubheading Question 9.3
2290 Sending mail becomes slower and slower, what's up?
2292 @subsubheading Answer
2294 The reason could be that you told Gnus to archive the
2295 messages you wrote by setting
2296 gnus-message-archive-group. Try to use a nnml group
2297 instead of an archive group, this should bring you back
2300 @node FAQ - Glossary
2301 @subsection Glossary
2306 When the term ~/.gnus.el is used it just means your Gnus
2307 configuration file. You might as well call it ~/.gnus or
2308 specify another name.
2311 In Gnus terminology a back end is a virtual server, a layer
2312 between core Gnus and the real NNTP-, POP3-, IMAP- or
2313 whatever-server which offers Gnus a standardized interface
2314 to functions like "get message", "get Headers" etc.
2317 When the term Emacs is used in this FAQ, it means either GNU
2321 In this FAQ message means a either a mail or a posting to a
2322 Usenet Newsgroup or to some other fancy back end, no matter
2323 of which kind it is.
2326 MUA is an acronym for Mail User Agent, it's the program you
2327 use to read and write e-mails.
2330 NUA is an acronym for News User Agent, it's the program you
2331 use to read and write Usenet news.
2336 arch-tag: 64dc5692-edb4-4848-a965-7aa0181acbb8