* nnimap-demule shouldn't be called with nil
@ 2008-12-12 3:11 Naohiro Aota
0 siblings, 0 replies; only message in thread
From: Naohiro Aota @ 2008-12-12 3:11 UTC (permalink / raw)
To: ding
[-- Attachment #1: Type: text/plain, Size: 418 bytes --]
Hi, list.
In some situations, Gnus call `nnimap-demule' with nil, and cause an
error: "insert: Wrong type argument: stringp, nil". This makes
`gnus-summary-prev-article' stop working in the situations.
Anyway, I wrote a patch for this. Please find the patch below.
2008-12-12 Naohiro Aota <nao.aota@gmail.com>
* nnimap.el (nnimap-request-article-part): Call nnimap-demule with
empty string, when data is nil.
[-- Attachment #2: Type: text/plain, Size: 727 bytes --]
Index: lisp/nnimap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v
retrieving revision 7.55
diff -u -r7.55 nnimap.el
--- lisp/nnimap.el 3 Dec 2008 20:33:34 -0000 7.55
+++ lisp/nnimap.el 12 Dec 2008 02:11:50 -0000
@@ -950,9 +950,10 @@
(erase-buffer)
(let ((data (imap-fetch article part prop nil
nnimap-server-buffer)))
- (insert (nnimap-demule (if detail
- (nth 2 (car data))
- data))))
+ (insert (nnimap-demule (or (if detail
+ (nth 2 (car data))
+ data)
+ ""))))
(nnheader-ms-strip-cr)
(gnus-message
10 "nnimap: Fetching (part of) article %d from %s...done"
[-- Attachment #3: Type: text/plain, Size: 10 bytes --]
Regards,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-12 3:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-12 3:11 nnimap-demule shouldn't be called with nil Naohiro Aota
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).