From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John Newsgroups: gmane.emacs.bugs Subject: bug#34252: 27.0.50; rmail-get-new-mail fails Date: Tue, 29 Jan 2019 20:57:19 +0000 Message-ID: <8106-Tue29Jan2019205719+0000-jpff@codemist.co.uk> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152845"; mail-complaints-to="usenet@blaine.gmane.org" To: 34252@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 29 22:24:25 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goaro-000dfx-BW for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2019 22:24:24 +0100 Original-Received: from localhost ([127.0.0.1]:55777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goarn-0008D5-BI for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2019 16:24:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goarX-0008BR-Tf for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:24:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goarW-0006Vx-Jz for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:24:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51613) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goarU-0006U3-J0 for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:24:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goarS-0007cb-AE for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:24:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Jan 2019 21:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34252 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154879699129228 (code B ref -1); Tue, 29 Jan 2019 21:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jan 2019 21:23:11 +0000 Original-Received: from localhost ([127.0.0.1]:50894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goaqa-0007bK-QT for submit@debbugs.gnu.org; Tue, 29 Jan 2019 16:23:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goaqX-0007aT-Uu for submit@debbugs.gnu.org; Tue, 29 Jan 2019 16:23:06 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:49116) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1goaqS-0005uy-NO for submit@debbugs.gnu.org; Tue, 29 Jan 2019 16:23:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goaqR-0007Qv-GF for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:23:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goaqQ-0005uO-Ez for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:22:59 -0500 Original-Received: from [217.155.197.248] (port=37978 helo=codemist.co.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goaqQ-0005iH-8V for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:22:58 -0500 Original-Received: from [172.16.4.16] (helo=xenakis.codemist.co.uk) by codemist.co.uk with esmtp (Exim 4.91) (envelope-from ) id 1goaS0-0008IB-TT; Tue, 29 Jan 2019 20:57:44 +0000 Original-Received: from jpff by xenakis.codemist.co.uk with local (Exim 4.88) (envelope-from ) id 1goaRb-0001td-P7; Tue, 29 Jan 2019 20:57:19 +0000 X-Mailer: emacs 27.0.50 (via feedmail 11-beta-1 I) X-ACL-Warn: No reverse lookup X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154873 Archived-At: in case of reading a mail box on a nfs-mounted disk There are two problems; first there are a number of calls to string-match and the like with argument proto which is nil. This crashes Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("^\\(imap\\|pop\\)s?$" nil nil) rmail-remote-proto-p(nil) rmail-insert-inbox-text(("/var/spool/mail/jpff" "/mnt/snout/home/jpff/mbox") t) rmail-get-new-mail-1(nil ("/var/spool/mail/jpff" "/mnt/snout/home/jpff/mbox") nil) rmail-get-new-mail(nil) funcall-interactively(rmail-get-new-mail nil) call-interactively(rmail-get-new-mail nil nil) command-execute(rmail-get-new-mail) The patch below improves things --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -1902,7 +1902,7 @@ rmail-parse-url (host (substring file (or (match-end 2) (+ 3 (match-end 1)))))) - (if (rmail-remote-proto-p proto) + (if (and proto (rmail-remote-proto-p proto)) (if (not pass) (when rmail-remote-password-required (setq got-password (not (rmail-have-password))) @@ -1913,7 +1913,7 @@ rmail-parse-url ;; does not really like it, in spite of the movemail spec. (setq file (concat proto "://" user "@" host)))) - (if (rmail-movemail-variant-p 'emacs) + (if (and proto (rmail-movemail-variant-p 'emacs)) (if (string-equal proto "pop") (list (concat "po:" user ":" host) proto @@ -2072,7 +2072,7 @@ rmail-insert-inbox-text ;; If we just read the password, most likely it is ;; wrong. Otherwise, see if there is a specific ;; reason to think that the problem is a wrong passwd. - (if (and (rmail-remote-proto-p proto) + (if (and proto (rmail-remote-proto-p proto) (or got-password (re-search-forward rmail-remote-password-error nil t))) but still fails. It reports it is reading the mailbox and there is a long delay before it returns with a blank buffer looking at RMAIL file and not reading the mail In GNU Emacs 27.0.50 (build 77, x86_64-pc-linux-gnu, GTK+ Version 2.24.32) of 2019-01-29 built on xenakis Repository revision: 7a10db87a1ff9a36ff09fcda15cd32f3e719e1b3 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: openSUSE Leap 15.0 Recent messages: File RMAIL is large (86.8M), really open? (y)es or (n)o or (l)iterally y Loading dired-add...done Counting messages...done Getting mail from /mnt/snout/home/jpff/mbox... movemail: No locks available for /mnt/snout/home/jpff/mbox (No new mail has arrived) 0 new messages read You can run the command ‘rmail-get-new-mail’ with g 0 new messages read Making completion list... Configured using: 'configure --without-gnutls' Configured features: XPM JPEG TIFF GIF PNG SOUND GSETTINGS GLIB NOTIFY INOTIFY LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 XDBE XIM THREADS CANNOT_DUMP GMP Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix Major mode: RMAIL Minor modes in effect: auto-image-file-mode: t show-paren-mode: t display-time-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow emacsbug mime-compose mail-alias-menu url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs json map url-vars shr-color color shr text-property-search svg xml dom browse-url qp rmailmm message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util time-date mm-decode mm-bodies mm-encode gmm-utils mailheader cl-loaddefs cl-lib mail-parse rfc2231 rmail rmail-loaddefs mailabbrev flyspell mailalias mailcrypt mail-extr comint ansi-color ring ispell sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils find-file misearch multi-isearch elec-pair cal-julian delsel cus-start cus-load image-file crypt crypt++ crypt+pgp-pub paren view cal-china cal-bahai cal-islam cal-hebrew lunar solar cal-dst appt diary-lib diary-loaddefs holidays hol-loaddefs cal-menu easymenu calendar cal-loaddefs time mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 117963 9850) (symbols 48 10775 1) (strings 32 31121 1305) (string-bytes 1 1014103) (vectors 16 34578) (vector-slots 8 400927 23720) (floats 8 737 382) (intervals 56 841 0) (buffers 992 17)) ==John ffitch