Gnus development mailing list
 help / color / mirror / Atom feed
From: Drew Hess <drew.hess@gmail.com>
To: ding@gnus.org
Subject: Some issues with new nnimap
Date: Sat, 25 Sep 2010 22:53:25 -0700	[thread overview]
Message-ID: <AANLkTi=7ceB3C=TQyjk0MpiMGL0Q5ZMBLngJrMPCH72v@mail.gmail.com> (raw)

Hi Lars,

I'm really happy to see you working on Gnus again. Thanks for a great
mail reader!

I'm having a few issues with the new nnimap backend. Here's my server
definition:

(setq gnus-select-method '(nnnil ""))
(setq gnus-secondary-select-methods
      '(
        (nnimap "imap.bothan.net"
         (nnir-search-engine imap))))

Without a .authinfo file, I'm unable to login. The login process
appears to hang after the IMAP server sends its greeting. Here are the
contents of my *nnimap.. buffer:

---
Resolving 'imap.bothan.net'...
Connecting to '69.36.241.48:993'...
- Ephemeral Diffie-Hellman parameters
 - Using prime: 1024 bits
 - Secret key: 1023 bits
 - Peer's public key: 1021 bits
- Certificate type: X.509
 - Got a certificate list of 1 certificates.
 - Certificate[0] info:
  - subject `C=US,ST=California,L=San Francisco,O=Bothan Spy
Network,OU=Server,CN=imap.bothan.net', issuer
`C=US,ST=California,L=San Francisco,O=Bothan Spy
Network,OU=Certificate Authority,CN=Bothan Spy Network Certificate
Authority', RSA key 2048 bits, signed using RSA-SHA1, activated
`2010-06-25 00:29:42 UTC', expires `2011-06-25 00:29:42 UTC', SHA-1
fingerprint `5cb747fecd4e1a74928bd40deb307b7e92669c58'
- The hostname in the certificate matches 'imap.bothan.net'.
- Peer's certificate issuer is unknown
- Peer's certificate is NOT trusted
- Version: TLS1.0
- Key Exchange: DHE-RSA
- Cipher: AES-128-CBC
- MAC: SHA1
- Compression: NULL
- Handshake was completed

- Simple Client Mode:

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
AUTH=PLAIN] Dovecot ready.
---

Here are the contents of the *Messages* buffer:

---
Loading /Users/dhess/elisp/gnus/lisp/gnus-load.el (source)...done
Reading /Users/dhess/gnus/.newsrc.eld...
Reading active file via nnnil...done
Reading active file from imap.bothan.net via nnimap...
Opening nnimap server on imap.bothan.net...
Opening TLS connection to `imap.bothan.net'...
Opening TLS connection with `gnutls-cli -p imaps imap.bothan.net'...done
Opening TLS connection to `imap.bothan.net'...done
Opening nnimap server on imap.bothan.net...failed:
Reading active file from archive via nnfolder...
Opening nnfolder server on archive...done
Reading active file from archive via nnfolder...done
Opening nnimap server on imap.bothan.net...
Denied server nnimap+imap.bothan.net
Opening nnimap server on imap.bothan.net...failed:
No new newsgroups
Checking new news...
Reading active file from gnus-help via nndoc...
Cannot read active file from nndoc server
Reading active file via nndraft...done
Checking new news...done
No Gnus is good news
No more unread newsgroups
Mark set
---

I looked through the mailing list and this appears to be similar to a
problem someone else was having, which you chalked up to a race
condition and fixed with commit
3a31df78354f7ddba9a08aed8f1a5e180f1ab032, I believe.

So then I created a .authinfo.gpg file. I'm using EasyPG with
(epa-file-enable) in my .emacs, and I'm able to open this file in a
new buffer seamlessly, but when I try to connect to my IMAP server,
I'm just repeatedly asked for my GPG passphrase. I'm certain I'm
typing it correctly. Here's what my *Messages* buffer looks like when
this happens:

---
Loading /Users/dhess/elisp/gnus/lisp/gnus-load.el (source)...done
Reading /Users/dhess/gnus/.newsrc.eld...
Reading active file via nnnil...done
Reading active file from imap.bothan.net via nnimap...
Opening nnimap server on imap.bothan.net...
Opening TLS connection to `imap.bothan.net'...
Opening TLS connection with `gnutls-cli -p imaps imap.bothan.net'...done
Opening TLS connection to `imap.bothan.net'...done
/Users/dhess/.authin: 0% (0/655)
/Users/dhess/.authin: 100% (655/655)
/Users/dhess/.authin: 0% (0/655)
/Users/dhess/.authin: 100% (655/655)
/Users/dhess/.authin: 0% (0/655)
---

This continues until I hit C-g to abort, at which time Gnus gives up
trying to connect.

Finally, if I just create an unencrypted .authinfo file, everything
works fine:

---
Loading /Users/dhess/elisp/gnus/lisp/gnus-load.el (source)...done
Reading /Users/dhess/gnus/.newsrc.eld...
Reading active file via nnnil...done
Reading active file from imap.bothan.net via nnimap...
Opening nnimap server on imap.bothan.net...
Opening TLS connection to `imap.bothan.net'...
Opening TLS connection with `gnutls-cli -p imaps imap.bothan.net'...done
Opening TLS connection to `imap.bothan.net'...done
Opening nnimap server on imap.bothan.net...done
Reading active file from imap.bothan.net via nnimap...done
Reading active file from archive via nnfolder...
Opening nnfolder server on archive...done
Reading active file from archive via nnfolder...done
No new newsgroups
Checking new news...
Reading active file from gnus-help via nndoc...
Cannot read active file from nndoc server
Reading active file via nndraft...done
Checking new news...done
---

There's only one catch: every time I hit 'g', Emacs beeps at me. All I
get in the *Messages* buffer is this:

---
Checking new news...
Reading active file from gnus-help via nndoc...
Cannot read active file from nndoc server
Reading active file via nndraft...done
Checking new news...done
---

The groups are refreshing properly, etc., so it's not strictly a
problem, it's just annoying. I didn't have this issue with bundled
Gnus.

FYI, I'm running Emacs 23.2 with YAMAMOTO Mitsuharu's Mac patches. I'm
willing to try this with stock Emacs 23.2 if you think it might be
related.

thanks again!
d



             reply	other threads:[~2010-09-26  5:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-26  5:53 Drew Hess [this message]
2010-09-26 12:22 ` Lars Magne Ingebrigtsen
2010-09-26 12:50   ` Lars Magne Ingebrigtsen
2010-09-26 21:00     ` Drew Hess
2010-09-26 21:02       ` Lars Magne Ingebrigtsen
2010-09-26 21:37       ` Drew Hess
2010-09-27 17:38         ` Lars Magne Ingebrigtsen
2010-09-26 19:57 ` nndoc groups beeping (was: Some issues with new nnimap) Andreas Seltenreich
2010-09-26 20:09   ` Drew Hess
     [not found]   ` <AANLkTi=jMSdPR=up4gW_b2m_QrRghXCLCcjxU9oPd1w_@mail.gmail.com>
2010-09-26 20:11     ` nndoc groups beeping Andreas Seltenreich
2010-09-26 20:40       ` Drew Hess
2010-09-26 21:13   ` Lars Magne Ingebrigtsen
2010-09-29 22:25   ` Lars Magne Ingebrigtsen
2010-09-26 21:12 ` Some issues with new nnimap Lars Magne Ingebrigtsen

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='AANLkTi=7ceB3C=TQyjk0MpiMGL0Q5ZMBLngJrMPCH72v@mail.gmail.com' \
    --to=drew.hess@gmail.com \
    --cc=ding@gnus.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).