projects
/
gnus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(gmm-tool-bar-from-list): Fix typos in doc string. Remove debug
[gnus]
/
lisp
/
nnagent.el
diff --git
a/lisp/nnagent.el
b/lisp/nnagent.el
index
a65bbfd
..
677d754
100644
(file)
--- a/
lisp/nnagent.el
+++ b/
lisp/nnagent.el
@@
-1,7
+1,7
@@
;;; nnagent.el --- offline backend for Gnus
;;; nnagent.el --- offline backend for Gnus
-;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
-;;
Free Software Foundation, Inc.
+;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
, 2003, 2004,
+;;
2005
Free Software Foundation, Inc.
;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
;; Keywords: news, mail
;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
;; Keywords: news, mail
@@
-20,8
+20,8
@@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
-;; Boston, MA 0211
1-1307
, USA.
+;; Free Software Foundation, Inc., 5
1 Franklin Street, Fifth Floor
,
+;; Boston, MA 0211
0-1301
, USA.
;;; Commentary:
;;; Commentary:
@@
-103,7
+103,7
@@
(defun nnagent-request-type (group article)
(unless (stringp article)
(defun nnagent-request-type (group article)
(unless (stringp article)
- (let ((gnus-
plugged t
))
+ (let ((gnus-
agent nil
))
(if (not (gnus-check-backend-function
'request-type (car gnus-command-method)))
'unknown
(if (not (gnus-check-backend-function
'request-type (car gnus-command-method)))
'unknown
@@
-122,19
+122,30
@@
(deffoo nnagent-request-set-mark (group action server)
(with-temp-buffer
(deffoo nnagent-request-set-mark (group action server)
(with-temp-buffer
- (insert (format "(%s-request-set-mark \"%s\" '%s \"%s\")\n"
- (nth 0 gnus-command-method) group action
- (or server (nth 1 gnus-command-method))))
+ (insert "(gnus-agent-synchronize-group-flags \""
+ group
+ "\" '")
+ (gnus-pp action)
+ (insert " \""
+ (gnus-method-to-server gnus-command-method)
+ "\"")
+ (insert ")\n")
(append-to-file (point-min) (point-max) (gnus-agent-lib-file "flags")))
nil)
(deffoo nnagent-retrieve-headers (articles &optional group server fetch-old)
(let ((file (gnus-agent-article-name ".overview" group))
(append-to-file (point-min) (point-max) (gnus-agent-lib-file "flags")))
nil)
(deffoo nnagent-retrieve-headers (articles &optional group server fetch-old)
(let ((file (gnus-agent-article-name ".overview" group))
- arts n)
+ arts n
first
)
(save-excursion
(gnus-agent-load-alist group)
(save-excursion
(gnus-agent-load-alist group)
- (setq arts (gnus-sorted-difference
+ (setq arts (gnus-sorted-difference
articles (mapcar 'car gnus-agent-article-alist)))
articles (mapcar 'car gnus-agent-article-alist)))
+ ;; Assume that articles with smaller numbers than the first one
+ ;; Agent knows are gone.
+ (setq first (caar gnus-agent-article-alist))
+ (when first
+ (while (and arts (< (car arts) first))
+ (pop arts)))
(set-buffer nntp-server-buffer)
(erase-buffer)
(nnheader-insert-nov-file file (car articles))
(set-buffer nntp-server-buffer)
(erase-buffer)
(nnheader-insert-nov-file file (car articles))
@@
-145,7
+156,7
@@
(when (> n (car arts))
(beginning-of-line))
(while (and arts (> n (car arts)))
(when (> n (car arts))
(beginning-of-line))
(while (and arts (> n (car arts)))
- (insert (format
+ (insert (format
"%d\t[Undownloaded article %d]\tGnus Agent\t\t\t\n"
(car arts) (car arts)))
(pop arts))
"%d\t[Undownloaded article %d]\tGnus Agent\t\t\t\n"
(car arts) (car arts)))
(pop arts))
@@
-203,10
+214,10
@@
(list (nnagent-server server))))
(deffoo nnagent-request-move-article
(list (nnagent-server server))))
(deffoo nnagent-request-move-article
- (article group server accept-form &optional last)
+ (article group server accept-form &optional last
move-is-internal
)
(nnoo-parent-function 'nnagent 'nnml-request-move-article
(list article group (nnagent-server server)
(nnoo-parent-function 'nnagent 'nnml-request-move-article
(list article group (nnagent-server server)
- accept-form last)))
+ accept-form last
move-is-internal
)))
(deffoo nnagent-request-rename-group (group new-name &optional server)
(nnoo-parent-function 'nnagent 'nnml-request-rename-group
(deffoo nnagent-request-rename-group (group new-name &optional server)
(nnoo-parent-function 'nnagent 'nnml-request-rename-group
@@
-241,4
+252,5
@@
(provide 'nnagent)
(provide 'nnagent)
+;;; arch-tag: af710b77-f816-4969-af31-6fd94fb42245
;;; nnagent.el ends here
;;; nnagent.el ends here