[mew-dist 29214] Re: lost fist one message via nntp access when updating summary

Kazu Yamamoto (山本和彦) <[email protected]>
Newsgroups gmane.mail.mew.general.japanese
Message-ID <[email protected]>
> summary mode 
>     s last:10
> 
>     s update
> update 
> 2

IMAP 


--

diff --git a/mew-nntp.el b/mew-nntp.el
index c55f817..0c59dde 100644
--- a/mew-nntp.el
+++ b/mew-nntp.el
@@ -124,18 +124,18 @@
 	    (setq last (string-to-number (mew-match-string 2)))
 	    (cond
 	     ((stringp max)
-	      (setq max (1+ (string-to-number max))))
+	      (setq max (string-to-number max)))
 	     (max ;; backward compatibility
 	      ;; reversed
 	      (setq max (car max))
-	      (setq max (1+ (string-to-number max))))
+	      (setq max (string-to-number max)))
 	     ((and (eq directive 'scan) (integerp range))
-	      (setq max (1+ (- last range)))
-	      (if (< max first) (setq max first)))
+	      (setq max (- last range))
+	      (if (< max first) (setq max (1- first))))
 	     (t
-	      (setq max first)))
+	      (setq max (1- first))))
 	    (mew-nntp-set-max pnm max)
-	    (mew-nntp-process-send-string pro "XOVER %d-" max))
+	    (mew-nntp-process-send-string pro "XOVER %d-" (1+ max)))
 	(mew-nntp-set-status pnm "quit")
 	(mew-nntp-command-quit pro pnm)))))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.