Subject: bug#16611: Gnus: (wrong-type-argument stringp nil) when referring parent in IMAP group

From: Tassilo Horn <[email-masked]>
Date: Sat, 01 Feb 2014 09:18:53 +0100

Hi all,

when referring the parent article of some message in some IMAP group, I
get the following error:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("^[^:]+:" nil)
  gnus-request-update-mark(nil nil 82)
  nnir-request-update-mark("INBOX.GNU" -1 82)
  gnus-request-update-mark("nnimap+Fastmail:INBOX.GNU" -1 82)
  gnus-summary-mark-article(-1 82)
  gnus-summary-mark-read-and-unread-as-read()
  run-hooks(gnus-mark-article-hook)
  apply(run-hooks gnus-mark-article-hook)
  gnus-run-hooks(gnus-mark-article-hook)
  gnus-article-prepare(-1 nil)
  gnus-summary-display-article(-1 nil)
  gnus-summary-select-article(nil nil nil -1)
  byte-code("\304 \305.\211.\203-.	@.\306!\203&.\307\n!\211.\203&.\310\305\211\211$\210\311\312\313\"\210	A\211.\204	.*\314\315\316\n#\207" [gnus-override-method --dolist-tail-- message-id number gnus-refer-article-methods nil gnus-check-server gnus-summary-insert-subject gnus-summary-select-article throw found t gnus-message 3 "Couldn't fetch article %s"] 6)
  gnus-summary-refer-article("<[email-masked]>")
  gnus-summary-refer-parent-article(1)
  call-interactively(gnus-summary-refer-parent-article nil nil)
  command-execute(gnus-summary-refer-parent-article)

As you can see, nnir is used because I have

(setq gnus-refer-article-method
      '(current	(nnregistry) (nnir)))

This seems to happen reproducible, so I can provide any specifics if needed.

Ma Gnus v0.10
GNU Emacs 24.3.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7)
 of 2014-02-01 on thinkpad-t61
200 news.gmane.org InterNetNews NNRP server INN 2.5.1 ready (posting ok)
100 Legal commands
  ARTICLE [message-ID|number]
  AUTHINFO USER name|PASS password|GENERIC program [argument ...]
  BODY [message-ID|number]
  CAPABILITIES [keyword]
  DATE
  GROUP newsgroup
  HDR header [message-ID|range]
  HEAD [message-ID|number]
  HELP
  IHAVE message-ID
  LAST
  LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUBSCRIPTIONS]
  LISTGROUP [newsgroup [range]]
  MODE READER
  NEWGROUPS [yy]yymmdd hhmmss [GMT]
  NEWNEWS wildmat [yy]yymmdd hhmmss [GMT]
  NEXT
  OVER [range]
  POST
  QUIT
  STARTTLS
  STAT [message-ID|number]
  XGTITLE [wildmat]
  XHDR header [message-ID|range]
  XOVER [range]
  XPAT header message-ID|range pattern [pattern ...]
Report problems to <[email-masked]>.
.
382 Begin TLS negotiation now
100 Legal commands
  ARTICLE [message-ID|number]
  AUTHINFO USER name|PASS password|GENERIC program [argument ...]
  BODY [message-ID|number]
  CAPABILITIES [keyword]
  DATE
  GROUP newsgroup
  HDR header [message-ID|range]
  HEAD [message-ID|number]
  HELP
  IHAVE message-ID
  LAST
  LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUBSCRIPTIONS]
  LISTGROUP [newsgroup [range]]
  MODE READER
  NEWGROUPS [yy]yymmdd hhmmss [GMT]
  NEWNEWS wildmat [yy]yymmdd hhmmss [GMT]
  NEXT
  OVER [range]
  POST
  QUIT
  STARTTLS
  STAT [message-ID|number]
  XGTITLE [wildmat]
  XHDR header [message-ID|range]
  XOVER [range]
  XPAT header message-ID|range pattern [pattern ...]
Report problems to <[email-masked]>.
.