Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Sharon Kimble <boudiccas@talktalk.net>
To: info-gnus-english@gnu.org
Subject: Setting up gmail
Date: Mon, 24 Mar 2014 19:19:57 +0000	[thread overview]
Message-ID: <87a9cf4d5u.fsf@talktalk.net> (raw)

Following on from my recent email "Positioning of items" I have all my
gmail-related coding in 'gnus-gmail.el' which is called from '.gnus.el' at the
very end with '(require 'gnus-gmail)'.

'gnus-gmail' contains this -

,----
| (setq gnus-select-method '(nnimap "imap.gmail.com"
|          '(nnimap "gmail"
|                  (nnimap-stream ssl)
|                  ;(nnir-search-engine imap)
|                  (nnimap-inbox "Inbox")
| 				 (nnimap-authinfo-file "~/.authinfo")
| 				  (nnmail-expiry-target "nnimap+gmail:[Gmail]/Trash")
|                       (nnmail-expiry-wait 90))
|  '(nnimap "imap.gmail.com"
|              (nnimap-inbox "INBOX")
|              (nnimap-split-methods default)
|              (nnimap-expunge t)
|              (nnimap-stream ssl))))
| 
| (add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
| 						     (nnimap-address "imap.gmail.com")
| 						     (nnimap-server-port 993)
| 						     (nnimap-stream ssl)
| 						     (nnir-search-engine imap)
| 						     (nnimap-authinfo-file "~/.authinfo")
| 						     (nnmail-expiry-target "nnimap+gmail:[Gmail]/Trash")
| 						     (nnmail-expiry-wait 90)))
| (setq message-send-mail-function 'smtpmail-send-it
|       smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
|       smtpmail-auth-credentials '(("smtp.gmail.com" 587 "boudiccas@talktalk.net" nil))
|       smtpmail-default-smtp-server "smtp.gmail.com"
|       smtpmail-smtp-server "smtp.gmail.com"
|       smtpmail-smtp-service 587 )
`----

When I start off gnus the following shows in my 'message' buffer -

,----
| gnutls.c: [1] (Emacs) allocating credentials
| gnutls.c: [2] (Emacs) allocating x509 credentials
| gnutls.c: [2] (Emacs) using default verification flags
| gnutls.c: [1] (Emacs) setting the trustfile:  /etc/ssl/certs/ca-certificates.crt
| gnutls.c: [1] (Emacs) gnutls callbacks
| gnutls.c: [1] (Emacs) gnutls_init
| gnutls.c: [1] (Emacs) got non-default priority string: NORMAL
| gnutls.c: [1] (Emacs) setting the priority string
| gnutls.c: [2] ASSERT: gnutls_constate.c:695
`----

Which is then followed with lots of -

,----
| gnutls.c: [1] (Emacs) non-fatal error: Resource temporarily unavailable, try again.
| gnutls.c: [2] ASSERT: gnutls_handshake.c:2933
| 
| gnutls.c: [1] (Emacs) non-fatal error: Resource temporarily unavailable, try again.
| gnutls.c: [2] ASSERT: gnutls_handshake.c:2933
`----

I don't know if the above is relevant, but I include it just in case it is.

When I send an email from my talktalk account, this shows in the message buffer

,----
| Opening connection to gmail via tls...
| open-network-stream: gmail/993 Name or service not known
`----

When I try to connect with gmail this shows in the message buffer

,----
| Connecting to imap.gmail.com...
| Opening nnimap server on imap.gmail.com...
| Server nnimap+imap.gmail.com previously determined to be down; not retrying
| Opening nnimap server on imap.gmail.com...failed: NO (AUTHENTICATIONFAILED) Invalid credentials (Failure)
| Unable to contact server imap.gmail.com: NO (AUTHENTICATIONFAILED) Invalid credentials (Failure)
`----

This is the relevant line relating to authinfo -

,----
|  (nnimap-authinfo-file "~/.authinfo")
`----

How then should it be written and where within the codebase please?

I've looked at the 'gnus.info' and searched for various things but have been
unable to find a working example. Its a very good document which fails because
of a lack of a working script that would help new people too. Ah well!

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, emacs 24.3.1
Registered Linux user 561944


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

                 reply	other threads:[~2014-03-24 19:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a9cf4d5u.fsf@talktalk.net \
    --to=boudiccas@talktalk.net \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).