+2000-10-16 11:36:52 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * nnultimate.el (nnultimate-forum-table-p): Be a bit more
+ restrictive.
+ (nnultimate-table-regexp): New variable.
+ (nnultimate-forum-table-p): Use it.
+
+2000-10-30 Ed L Cashin <ecashin@coe.uga.edu>
+
+ * gnus-sum.el (gnus-summary-expire-articles): Save point.
+
+2000-10-30 08:52:50 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * mml-sec.el (mml-pgpmime-sign-buffer): Use mml2015-sign.
+ (mml-pgpmime-encrypt-buffer): Use mml2015-encrypt.
+
+2000-10-30 08:38:12 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * mml2015.el: Shut up.
+
+2000-10-30 08:17:46 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * gnus.el (gnus-server-browse-hashtb): Removed.
+ * gnus-group.el (gnus-group-prepare-flat-list-dead): Use gnus-active.
+ (gnus-group-insert-group-line-info): Use simplified method.
+ * gnus-srvr.el (gnus-browse-foreign-server): Use gnus-set-active.
+
2000-10-30 01:52:40 ShengHuo ZHU <zsh@cs.rochester.edu>
* gnus-util.el (gnus-union): Renamed from gnus-agent-union, and
;;; 'gnus-level level))
(gnus-group-insert-group-line
group level nil
- (if gnus-server-browse-hashtb
- (gnus-gethash group gnus-server-browse-hashtb) t)
+ (let ((active (gnus-active group)))
+ (if active
+ (if (zerop (cdr active))
+ 0
+ (- (1+ (cdr active)) (car active)))
+ nil))
(gnus-method-simplify (gnus-find-method-for-group group)))))))
(defun gnus-group-update-group-line ()
0
(- (1+ (cdr active)) (car active)))
nil)
- nil))))
+ (gnus-method-simplify (gnus-find-method-for-group group))))))
(defun gnus-group-insert-group-line (gnus-tmp-group gnus-tmp-level
gnus-tmp-marked number
(setq name (concat name (buffer-substring
p (point)))))
name))
- (max 0 (- (1+ (read cur)) (read cur))))
+ (let ((last (read cur)))
+ (cons (read cur) last)))
groups))
(forward-line))))
(setq groups (sort groups
(string< (car l1) (car l2)))))
(if gnus-server-browse-in-group-buffer
(let* ((gnus-select-method orig-select-method)
- (gnus-server-browse-hashtb
- (gnus-make-hashtable (length groups)))
(gnus-group-listed-groups
(mapcar (lambda (group)
(let ((name
(gnus-group-prefixed-name
(car group) method)))
- (gnus-sethash name (cdr group)
- gnus-server-browse-hashtb)
+ (gnus-set-active name (cdr group))
name))
groups)))
(gnus-configure-windows 'group)
((<= level gnus-level-unsubscribed) ?U)
((= level gnus-level-zombie) ?Z)
(t ?K)))
- (cdr group)
+ (max 0 (- (1+ (cddr group)) (cadr group)))
(gnus-group-name-decode (car group) charset))))
(list 'gnus-group (car group)))
(setq groups (cdr groups))))
(setq es (gnus-request-expire-articles
expirable gnus-newsgroup-name)))
(setq es (gnus-request-expire-articles
- expirable gnus-newsgroup-name))))
- (unless total
- (setq gnus-newsgroup-expirable es))
- ;; We go through the old list of expirable, and mark all
- ;; really expired articles as nonexistent.
- (unless (eq es expirable) ;If nothing was expired, we don't mark.
- (let ((gnus-use-cache nil))
- (while expirable
- (unless (memq (car expirable) es)
- (when (gnus-data-find (car expirable))
- (gnus-summary-mark-article
- (car expirable) gnus-canceled-mark)))
- (setq expirable (cdr expirable)))))
+ expirable gnus-newsgroup-name)))
+ (unless total
+ (setq gnus-newsgroup-expirable es))
+ ;; We go through the old list of expirable, and mark all
+ ;; really expired articles as nonexistent.
+ (unless (eq es expirable) ;If nothing was expired, we don't mark.
+ (let ((gnus-use-cache nil))
+ (while expirable
+ (unless (memq (car expirable) es)
+ (when (gnus-data-find (car expirable))
+ (gnus-summary-mark-article
+ (car expirable) gnus-canceled-mark)))
+ (setq expirable (cdr expirable))))))
(gnus-message 6 "Expiring articles...done")))))
(defun gnus-summary-expire-articles-now ()
(defvar gnus-moderated-hashtb nil
"Hashtable of moderated newsgroups.")
-(defvar gnus-server-browse-hashtb nil
- "Hashtable of existing articles.")
-
;; Save window configuration.
(defvar gnus-prev-winconf nil)
(error "Encryption failed... inspect message logs for errors"))))
(defun mml-pgpmime-sign-buffer (cont)
- (or (mml2015-mailcrypt-sign cont)
+ (or (mml2015-sign cont)
(error "Signing failed... inspect message logs for errors")))
(defun mml-pgpmime-encrypt-buffer (cont)
- (or (mml2015-mailcrypt-encrypt cont)
+ (or (mml2015-encrypt cont)
(error "Encryption failed... inspect message logs for errors")))
(defun mml-secure-part-smime-sign ()
;;; Code:
(eval-when-compile (require 'cl))
+(require 'mm-decode)
(defvar mml2015-decrypt-function 'mailcrypt-decrypt)
(defvar mml2015-verify-function 'mailcrypt-verify)
(unless (funcall mml2015-verify-function)
(error "Verify error.")))))
-(autoload 'mc-sign-generic "mc-toplev")
+(eval-and-compile
+ (autoload 'mc-encrypt-generic "mc-toplev")
+ (autoload 'mc-cleanup-recipient-headers "mc-toplev")
+ (autoload 'mc-sign-generic "mc-toplev"))
+
+(eval-when-compile
+ (defvar mc-default-scheme)
+ (defvar mc-schemes))
(defun mml2015-mailcrypt-sign (cont)
(mc-sign-generic (message-options-get 'message-sender)
(insert (format "--%s--\n" boundary))
(goto-char (point-max))))
-(autoload 'mc-encrypt-generic "mc-toplev")
(defun mml2015-mailcrypt-encrypt (cont)
(mc-encrypt-generic
(defvoo nnultimate-groups nil)
(defvoo nnultimate-headers nil)
(defvoo nnultimate-articles nil)
+(defvar nnultimate-table-regexp
+ "postings.*editpost\\|forumdisplay\\|Forum[0-9]+/HTML\\|getbio")
;;; Interface functions
(old-total (or (nth 6 entry) 1))
(furl "forumdisplay.cgi?action=topics&number=%d&DaysPrune=1000")
(furls (list (concat nnultimate-address (format furl sid))))
+ (nnultimate-table-regexp
+ "postings.*editpost\\|forumdisplay\\|getbio")
headers article subject score from date lines parent point
contents tinfo fetchers map elem a href garticles topic old-max
inc datel table string current-page total-contents pages
(nth 2 parse))))
(let ((href (cdr (assq 'href (nth 1 (nnweb-parse-find 'a parse 20)))))
case-fold-search)
- (when (and href (string-match
- "postings\\|forumdisplay\\|Forum[0-9]+/HTML\\|getbio"
- href))
+ (when (and href (string-match nnultimate-table-regexp href))
t))))
(provide 'nnultimate)