all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to read mail(Gnus)?
@ 2007-05-11 15:14 sroh
  0 siblings, 0 replies; 3+ messages in thread
From: sroh @ 2007-05-11 15:14 UTC (permalink / raw)
  To: help-gnu-emacs

i did copy & paste gnus setting.
i don't know next step.

-----------------------------------------------------------------------------
my .emacs


 ;; The following line is needed when using pop3.el from T-gnus (m17n.org).
   (eval-after-load "mail-source" '(require 'pop3))


   (setq gnus-posting-styles
      '((".*"
	 (name "aaaa")
	 (address "aaaa@gmail.com"))
        ("^nnml.*gmail"
	 (address "aaaa@gmail.com"))))


   (setq mail-sources					
      '((file :path "/var/spool/mail/aaaa")
        (pop :server "pop.gmail.com"
	     :port 995
	     :user "aaaa"
	     :connection ssl
	     :leave t)
        (pop :server "pop.naver.com"
;             :port 995
             :user "aaaa"
             :connection ssl
             :leave t)))


  (defun fs-change-smtp ()
  "Change the SMTP server according to the current from line."
  (save-excursion
    (let ((from
           (save-restriction
             (message-narrow-to-headers)
             (message-fetch-field "from"))))
      (message "From is `%s', setting `smtpmail-smtp-server' to `%s'"
               from
               (cond
                ((string-match "aaaa@gmail.com" from)
		 ;; Use stmp-auth
		 (message "Using smtp-auth")
		 ;; Sending mail
		 (setq message-send-mail-function 'smtpmail-send-it)
		 (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)))
		 (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587 "aaaa" nil)))
		 (setq smtpmail-default-smtp-server "smtp.gmail.com")
		 (setq smtpmail-smtp-server "smtp.gmail.com")
		 (setq smtpmail-smtp-service 587))
		((string-match "aaaa@gmail.com" from)
		 ;; Use local sendmail
		 (message "Using local sendmail")
		 (setq message-send-mail-function `message-send-mail-with-sendmail))
		(t
		 (error 
		  (concat "Don't know which mail server to use for "
			  from))))))))

    (add-hook 'message-setup-hook 'fs-change-smtp)


(setq gnus-select-method '(nntp "news.xpeed.com"))
;(add-to-list 'gnus-secondary-select-methods '(nntp "news.gnus.org"))

;;; Main config

(setq gnus-home-score-file "/home/aaaa/Mail/gnus.SCORE"
      gnus-agent-directory "/home/aaaa/Mail/agent/"
      gnus-directory "/home/aaaa/Mail/News/"
      gnus-article-save-directory "/home/aaaa/Mail/News"
      gnus-cache-directory "/home/aaaa/Mail/News/cache"
      gnus-cache-active-file "/home/aaaa/Mail/News/cache/active"
      gnus-kill-files-direcotry "/home/aaaa/Mail/News"
      nndraft-directory "/home/aaaa/Mail/drafts/")


(defun my-message-mode-setup ()
  (setq fill-column 72)
  (turn-on-auto-fill))
(add-hook 'message-mode-hook 'my-message-mode-setup)

(setq gnus-thread-sort-functions
      '(gnus-thread-sort-by-date))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* how to read mail (Gnus)
@ 2007-05-11 15:21 sroh
  2007-05-11 19:01 ` Taylor Venable
  0 siblings, 1 reply; 3+ messages in thread
From: sroh @ 2007-05-11 15:21 UTC (permalink / raw)
  To: help-gnu-emacs


i did copy & paste. Gnus News is worked so good. but i don't know to
read mail. what is Next step for reading mail?

my .emacs

 ;; The following line is needed when using pop3.el from T-gnus (m17n.org).
   (eval-after-load "mail-source" '(require 'pop3))


   (setq gnus-posting-styles
      '((".*"
	 (name "aaaa")
	 (address "aaaa@gmail.com"))
        ("^nnml.*gmail"
	 (address "aaaa@gmail.com"))))


   (setq mail-sources					
      '((file :path "/var/spool/mail/aaaa")
        (pop :server "pop.gmail.com"
	     :port 995
	     :user "aaaa"
	     :connection ssl
	     :leave t)
        (pop :server "pop.naver.com"
;             :port 995
             :user "aaaa"
             :connection ssl
             :leave t)))


  (defun fs-change-smtp ()
  "Change the SMTP server according to the current from line."
  (save-excursion
    (let ((from
           (save-restriction
             (message-narrow-to-headers)
             (message-fetch-field "from"))))
      (message "From is `%s', setting `smtpmail-smtp-server' to `%s'"
               from
               (cond
                ((string-match "aaaa@gmail.com" from)
		 ;; Use stmp-auth
		 (message "Using smtp-auth")
		 ;; Sending mail
		 (setq message-send-mail-function 'smtpmail-send-it)
		 (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)))
		 (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587 "aaaa" nil)))
		 (setq smtpmail-default-smtp-server "smtp.gmail.com")
		 (setq smtpmail-smtp-server "smtp.gmail.com")
		 (setq smtpmail-smtp-service 587))
		((string-match "aaaa@gmail.com" from)
		 ;; Use local sendmail
		 (message "Using local sendmail")
		 (setq message-send-mail-function `message-send-mail-with-sendmail))
		(t
		 (error 
		  (concat "Don't know which mail server to use for "
			  from))))))))

    (add-hook 'message-setup-hook 'fs-change-smtp)


(setq gnus-select-method '(nntp "news.xpeed.com"))
;(add-to-list 'gnus-secondary-select-methods '(nntp "news.gnus.org"))

;;; Main config

(setq gnus-home-score-file "/home/aaaa/Mail/gnus.SCORE"
      gnus-agent-directory "/home/aaaa/Mail/agent/"
      gnus-directory "/home/aaaa/Mail/News/"
      gnus-article-save-directory "/home/aaaa/Mail/News"
      gnus-cache-directory "/home/aaaa/Mail/News/cache"
      gnus-cache-active-file "/home/aaaa/Mail/News/cache/active"
      gnus-kill-files-direcotry "/home/aaaa/Mail/News"
      nndraft-directory "/home/aaaa/Mail/drafts/")


(defun my-message-mode-setup ()
  (setq fill-column 72)
  (turn-on-auto-fill))
(add-hook 'message-mode-hook 'my-message-mode-setup)

(setq gnus-thread-sort-functions
      '(gnus-thread-sort-by-date))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to read mail (Gnus)
  2007-05-11 15:21 how to read mail (Gnus) sroh
@ 2007-05-11 19:01 ` Taylor Venable
  0 siblings, 0 replies; 3+ messages in thread
From: Taylor Venable @ 2007-05-11 19:01 UTC (permalink / raw)
  To: sroh; +Cc: help-gnu-emacs

sroh <rookie52@gmail.com> writes:

> what is Next step for reading mail?

You need to set your secondary select method to use whatever mail
backend you want.  For example, I use nnml because it stores each
message in an individual file, which makes access fast.

>From "C-h v gnus-secondary-select-methods":

,----
| If, for instance, you want to read your mail with the nnml back end,
| you could set this variable:
| 
| (setq gnus-secondary-select-methods '((nnml "")))
`----

Then you need to set the variable nnmail-split-methods so that the
mail is categorized correctly:

,----
| This variable is a list of lists, where the first element of each of
| these lists is the name of the mail group (they do not have to be
| called something beginning with `mail', by the way), and the second
| element is a regular expression used on the header of each mail to
| determine if it belongs in this mail group.
`----

And lastly, please make sure:

,----
| The last of these groups should always be a general one, and the
| regular expression should _always_ be `""' so that it matches any
| mails that haven't been matched by any of the other regexps.
`----

When you've got everything set up, M-x gnus and subscribe to some of
the groups that mail gets split into according to nnmail-split-methods.

If you get stuck, read the Gnus manual either online at
http://www.gnus.org/ or from an Info browser: C-h i.

-- 
Taylor Venable
taylor@metasyntax.net
http://www.metasyntax.net/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-11 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-11 15:14 how to read mail(Gnus)? sroh
  -- strict thread matches above, loose matches on Subject: below --
2007-05-11 15:21 how to read mail (Gnus) sroh
2007-05-11 19:01 ` Taylor Venable

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.