Difference between revisions of "Gnus"

From WikEmacs
Jump to: navigation, search
(added some space next to the "<source.." tags in order for them to render correctly)
m (syntaxhighlight)
Line 20: Line 20:
 
# Use Gmail’s IMAP as a (secondary) select method, by add following line into ./gnus.el
 
# Use Gmail’s IMAP as a (secondary) select method, by add following line into ./gnus.el
  
<source lang="lisp">
+
<syntaxhighlight lang="lisp">
 
(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
 
(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
 
                                   (nnimap-address "imap.gmail.com")
 
                                   (nnimap-address "imap.gmail.com")
 
                                   (nnimap-server-port 993)
 
                                   (nnimap-server-port 993)
 
                                   (nnimap-stream ssl)))
 
                                   (nnimap-stream ssl)))
</source>
+
</syntaxhighlight>
  
 
or Using Gmail as primary select method  
 
or Using Gmail as primary select method  
  
<source lang="lisp">
+
<syntaxhighlight lang="lisp">
 
(setq gnus-select-method '(nnimap "gmail"
 
(setq gnus-select-method '(nnimap "gmail"
 
  (nnimap-address "imap.gmail.com")
 
  (nnimap-address "imap.gmail.com")
 
  (nnimap-server-port 993)
 
  (nnimap-server-port 993)
 
  (nnimap-stream ssl)))
 
  (nnimap-stream ssl)))
</source>
+
</syntaxhighlight>
  
 
5. Put following line  in your ~/.authinfo <br/>
 
5. Put following line  in your ~/.authinfo <br/>
Line 40: Line 40:
 
6. (optional) Enable using gmail’s SMTP server by put following line in ./gnus.el
 
6. (optional) Enable using gmail’s SMTP server by put following line in ./gnus.el
  
<source lang="lisp">
+
<syntaxhighlight lang="lisp">
 
(setq message-send-mail-function 'smtpmail-send-it
 
(setq message-send-mail-function 'smtpmail-send-it
 
       smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
 
       smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
Line 48: Line 48:
 
       smtpmail-smtp-service 587
 
       smtpmail-smtp-service 587
 
       smtpmail-local-domain "yourcompany.com")
 
       smtpmail-local-domain "yourcompany.com")
</source>
+
</syntaxhighlight>
  
 
=== Using Gnus with Gmane ===
 
=== Using Gnus with Gmane ===

Revision as of 13:27, 8 April 2012

Gnus
Description Gnus is an e-mail client, a news client and a feed aggregator.
Author name of author
Maintainer Lars Magne Ingebrigtsen
Source http://git.gnus.org/cgit/gnus.git/
Part of Emacs yes

Gnus with virtual servers

Gnus has unified interface to e-mail, feed, news, and others. virtual server are created for different source of information, and Gnus talks to this virtual server as if they are the same.

So, when someone want Gnus to work with particular source of information, he register a vertural server to Gnus as a select methods, for example:

Using Gnus with Gmail

  1. Make sure gnutls-bin or starttls package is installed on your system
  2. Create a Gmail account
  3. Enable IMAP in Gmail accout, by settings->forwarding POP/IMAP
  4. Use Gmail’s IMAP as a (secondary) select method, by add following line into ./gnus.el
(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
                                  (nnimap-address "imap.gmail.com")
                                  (nnimap-server-port 993)
                                  (nnimap-stream ssl)))

or Using Gmail as primary select method

(setq gnus-select-method '(nnimap "gmail"
				  (nnimap-address "imap.gmail.com")
				  (nnimap-server-port 993)
				  (nnimap-stream ssl)))

5. Put following line in your ~/.authinfo
machine imap.gmail.com login username@gmail.com password secret port 993
6. (optional) Enable using gmail’s SMTP server by put following line in ./gnus.el

(setq message-send-mail-function 'smtpmail-send-it
      smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
      smtpmail-auth-credentials '(("smtp.gmail.com" 587 "username@gmail.com" nil))
      smtpmail-default-smtp-server "smtp.gmail.com"
      smtpmail-smtp-server "smtp.gmail.com"
      smtpmail-smtp-service 587
      smtpmail-local-domain "yourcompany.com")

Using Gnus with Gmane

you can easily read news from Gmane with Gnus

  1. in group buffer , press B (browser foreign server)
  2. type "nntp" when asked "which back end"
  3. type web.gmane.org when asked "address"
  4. browse different groups, press u to subscribe

For managing your address book, see Contact Management.