Difference between revisions of "Gnus"

From WikEmacs
Jump to navigation Jump to search
Line 3: Line 3:
  
 
==Using Gnus with Gmail
 
==Using Gnus with Gmail
0 Make sure [[starttls]] package in installed on your system
+
# Make sure [[starttls]] package in installed on your system
1 Create a Gmail account
+
# Create a Gmail account
2 Enable IMAP in Gmail accout, by settings->forwarding POP/IMAP
+
# Enable IMAP in Gmail accout, by settings->forwarding POP/IMAP
3 Use Gmail’s IMAP as a (secondary) select method
+
# Use Gmail’s IMAP as a (secondary) select method
 
(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")
Line 16: Line 16:
 
  (nnimap-server-port 993)
 
  (nnimap-server-port 993)
 
  (nnimap-stream ssl)))
 
  (nnimap-stream ssl)))
4 Put following line  in your ~/.authinfo
+
# Put following line  in your ~/.authinfo
 
machine imap.gmail.com login username@gmail.com password secret port 993
 
machine imap.gmail.com login username@gmail.com password secret port 993
5 Enable using gmail’s SMTP server by put following line in ./gnus.el
+
# Enable using gmail’s SMTP server by put following line in ./gnus.el
 
(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))

Revision as of 05:45, 27 March 2012

Gnus is a program running in Emacs for reading and editing e-mails and Usernet News


==Using Gnus with Gmail

  1. Make sure starttls package in 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

(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)))

  1. Put following line in your ~/.authinfo

machine imap.gmail.com login username@gmail.com password secret port 993

  1. 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")


For managing your address book, see Contact Management.