Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nntp and nimap in use together.
@ 2011-12-11  7:53 Petro Khoroshyy
  2011-12-15 12:51 ` Tassilo Horn
  2011-12-16  1:54 ` Dan Christensen
  0 siblings, 2 replies; 3+ messages in thread
From: Petro Khoroshyy @ 2011-12-11  7:53 UTC (permalink / raw)
  To: info-gnus-english

Hi all
I have been using offlineimap and dovecot to read emails from my gmail
account. Now I want to use gmail to read some mailing lists from gmane
server. But, after I have added (add-to-list
'gnus-secondary-select-methods '(nntp "news.gmane.org")) into .gnus
file, I cannot see the imap account.

What am I doing wrong?
Here is my onfiguration file:

_____________________
(add-to-list 'gnus-secondary-select-methods
             '(nntp "news.gmane.org"))
(setq gnus-select-method
      '(nnimap "Mail"
	       (nnimap-address "localhost")
	       (nnimap-stream network)
	       (nnimap-authenticator login)))
 
(setq user-mail-address "name@gmail.com")
(setq gnus-ignored-from-addresses "youruser")

(setq gnus-thread-sort-functions
      '((not gnus-thread-sort-by-number)
      gnus-thread-sort-by-score))

(setq
 ;; html things
 mm-text-html-renderer 'w3m
 )

(setq gnus-select-method '(nntp "news.gmane.org"))


(setq send-mail-function 'smtpmail-send-it)
(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 "name@gmail.com" nil)))
(setq smtpmail-default-smtp-server "smtp.gmail.com")
(setq smtpmail-smtp-server "smtp.gmail.com")
(setq smtpmail-smtp-service 587)


;; Don't hide read email
(setq gnus-fetch-old-headers t)

;; Sort by date, newest first.
(setq gnus-thread-sort-functions
       '(gnus-thread-sort-by-number
         gnus-thread-sort-by-most-recent-date))


(setq message-alternative-emails
      (regexp-opt '("name2@gmail.com" "x.name2@gmail.com")))

(add-to-list 'gnus-secondary-select-methods
             '(nntp "news.gmane.org"))
_________________________________
Thanks in advance.
-- 
Petro

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

* Re: nntp and nimap in use together.
  2011-12-11  7:53 nntp and nimap in use together Petro Khoroshyy
@ 2011-12-15 12:51 ` Tassilo Horn
  2011-12-16  1:54 ` Dan Christensen
  1 sibling, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2011-12-15 12:51 UTC (permalink / raw)
  To: info-gnus-english

Petro Khoroshyy <khoroshyy@gmail.com> writes:

Hi Petro,

> I have been using offlineimap and dovecot to read emails from my gmail
> account. Now I want to use gmail to read some mailing lists from gmane
> server.

Huh?  You want to use Gmail for Gmane?

> But, after I have added (add-to-list 'gnus-secondary-select-methods
> '(nntp "news.gmane.org")) into .gnus file, I cannot see the imap
> account.

Looks ok, except that you do it twice in your config below: as first and
as last statement.  But that shouldn't be the source of the issue.

> What am I doing wrong?

What's the value of `gnus-select-method' (C-h v gnus-select-method RET)
after starting gnus.  And what's the value of
`gnus-secondary-select-methods'?

Bye,
Tassilo

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

* Re: nntp and nimap in use together.
  2011-12-11  7:53 nntp and nimap in use together Petro Khoroshyy
  2011-12-15 12:51 ` Tassilo Horn
@ 2011-12-16  1:54 ` Dan Christensen
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Christensen @ 2011-12-16  1:54 UTC (permalink / raw)
  To: info-gnus-english

Petro Khoroshyy <khoroshyy@gmail.com> writes:

> server. But, after I have added (add-to-list
> 'gnus-secondary-select-methods '(nntp "news.gmane.org")) into .gnus
> file, I cannot see the imap account.
>
> What am I doing wrong?

> (setq gnus-select-method
>       '(nnimap "Mail"
> 	       (nnimap-address "localhost")
> 	       (nnimap-stream network)
> 	       (nnimap-authenticator login)))

The setting below overwrites the setting above.

> (setq gnus-select-method '(nntp "news.gmane.org"))

Dan

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

end of thread, other threads:[~2011-12-16  1:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-11  7:53 nntp and nimap in use together Petro Khoroshyy
2011-12-15 12:51 ` Tassilo Horn
2011-12-16  1:54 ` Dan Christensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).