Source: emacs
Severity: important

Dear Maintainer,

   * What led up to the situation?

Was on stretch, upgraded to buster, this broke my Gnus configuration, and could 
no longer fetch mail from a dovecot pop3s server.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Reverting to stretch (which uses emacs-24) fixed it.

With a .gnus.el file:

   (require 'cl)
   (require 'tramp)
   (require 'gnutls)

   (setq gnus-select-method '(nnml "" (nnml-inhibit-expiry t)))
   (setq mail-sources '((pop :server "mail.foo.com" :port 995 :user 
"username")))


On buster:

$ dpkg -l emacs-nox
||/ Name           Version      Architecture Description
+++-==============-============-============-======================================
ii  emacs-nox      1:26.1+1-3.2 amd64        GNU Emacs editor (without GUI 
support)

On the dovecot server side, I see:

   Jul 22 13:00:06 dodson dovecot[24176]: pop3-login: Disconnected (no auth 
attempts in 0 secs): user=<>, rip=192.168.x.y, lip=192.168.x.z, TLS: 
read(size=429) failed: Connection reset by peer, session=<4ry/hUqO4qnAqFAE>

On the emacs side, I see a message:

   Mail source (pop :server mail.foo.com :port 995 :user russell) error 
(Process POP not running).  Continue? (yes or no)

Tracing the emacs executable with strace, I never see an execve of gnutls-cli.

8828  13:00:54 execve("/usr/bin/emacs", ["emacs"], 0x7fff802bd1c8 /* 19 vars 
*/) = 0
8829  13:01:00 execve("/usr/bin/movemail", ["/usr/bin/movemail", "--version"], 
0x7ffd990890c0 /* 19 vars */ <unfinished ...>
8830  13:01:01 execve("/usr/bin/openssl", ["/usr/bin/openssl", "version"], 
0x7ffd99087890 /* 19 vars */ <unfinished ...>


On stretch (it works):

$ dpkg -l emacs-nox
||/ Name                                           Version                      
Architecture                 Description
+++-==============================================-============================-============================-==================================================================================================
ii  emacs-nox                                      46.1                         
all                          GNU Emacs editor (metapackage, without X support)

On the dovecot server side, I see:

   Jul 24 23:50:59 server dovecot[24176]: pop3-login: Login: user=<russell>, 
method=PLAIN, rip=192.168.x.y, lip=192.168.x.z, mpid=622, TLS, 
session=<wXcv2XuOxuLAqFAE>

Tracing the emacs executable with strace, I see execve's:

2961  12:56:55 execve("/usr/bin/emacs", ["emacs"], [/* 17 vars */]) = 0
2963  12:56:59 execve("/usr/bin/openssl", ["/usr/bin/openssl", "version"], [/* 
17 vars */] <unfinished ...>
2964  12:56:59 execve("/usr/bin/gpg", ["/usr/bin/gpg", "--with-colons", 
"--list-config"], [/* 17 vars */] <unfinished ...>
2965  12:57:05 execve("/bin/bash", ["/bin/bash", "-c", "gnutls-cli --x509cafile 
/etc/ssl/certs/ca-certificates.crt -p 995 mail.foo.com"], [/* 18 vars */] 
<unfinished ...>
2965  12:57:05 execve("/usr/bin/gnutls-cli", ["gnutls-cli", "--x509cafile", 
"/etc/ssl/certs/ca-certificates.crt", "-p", "995", "mail.foo.com"], [/* 18 vars 
*/]) = 0


-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to