Gnus development mailing list
 help / color / mirror / Atom feed
* [patch]: fix goto article error when nnml-use-compressed-files is t
@ 2010-12-21  9:46 Wang Diancheng
  0 siblings, 0 replies; only message in thread
From: Wang Diancheng @ 2010-12-21  9:46 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]


Hi, 

backend: nnml
nnml-use-compressed-files: t

when calling function:

(gnus-summary-goto-article
         "<201012201809341712361@163.com>")

will print error message:

Couldn't fetch article <201012201809341712361@163.com>


the attached patch for fix it.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix-goto-article.patch --]
[-- Type: text/x-diff, Size: 588 bytes --]

--- nnml.el~	2010-12-21 17:33:07.000000000 +0800
+++ nnml.el	2010-12-21 17:33:09.000000000 +0800
@@ -235,7 +235,11 @@
 			  (nnheader-article-to-file-alist
 			   (setq gpath (nnml-group-pathname (car group-num)
 							    nil server))))))
-	  (setq path (concat gpath (int-to-string (cdr group-num)))))
+	  (nnml-update-file-alist)
+	  (setq path (concat gpath  (if nnml-use-compressed-files
+					(cdr (assq (cdr group-num)
+						   nnml-article-file-alist))
+				      (number-to-string (cdr group-num))))))
       (setq path (nnml-article-to-file id)))
     (cond
      ((not path)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-21  9:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-21  9:46 [patch]: fix goto article error when nnml-use-compressed-files is t Wang Diancheng

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).