;; The following macros and functions were written by Felix Lee
;; <flee@cse.psu.edu>.
-(defmacro gnus-nov-read-integer ()
- '(prog1
- (if (= (following-char) ?\t)
- 0
- (let ((num (ignore-errors (read buffer))))
- (if (numberp num) num 0)))
- (unless (eobp)
- (search-forward "\t" eol 'move))))
+;; (defmacro gnus-nov-read-integer ()
+;; '(prog1
+;; (if (= (following-char) ?\t)
+;; 0
+;; (let ((num (ignore-errors (read buffer))))
+;; (if (numberp num) num 0)))
+;; (unless (eobp)
+;; (search-forward "\t" eol 'move))))
-(defmacro gnus-nov-skip-field ()
- '(search-forward "\t" eol 'move))
+;; (defmacro gnus-nov-skip-field ()
+;; '(search-forward "\t" eol 'move))
-(defmacro gnus-nov-field ()
- '(buffer-substring (point) (if (gnus-nov-skip-field) (1- (point)) eol)))
+;; (defmacro gnus-nov-field ()
+;; '(buffer-substring (point) (if (gnus-nov-skip-field) (1- (point)) eol)))
;; This function has to be called with point after the article number
;; on the beginning of the line.
header)
;; overview: [num subject from date id refs chars lines misc]
- (unwind-protect
- (progn
- (narrow-to-region (point) eol)
- (unless (eobp)
- (forward-char))
-
- (setq header
- (make-full-mail-header
- number ; number
- (gnus-nov-field) ; subject
- (gnus-nov-field) ; from
- (gnus-nov-field) ; date
- (or (gnus-nov-field)
- (nnheader-generate-fake-message-id)) ; id
- (gnus-nov-field) ; refs
- (gnus-nov-read-integer) ; chars
- (gnus-nov-read-integer) ; lines
- (unless (= (following-char) ?\n)
- (gnus-nov-field))))) ; misc
-
- (widen))
+ ;;(unwind-protect
+ ;;(progn
+ ;;(narrow-to-region (point) eol)
+ (unless (eobp)
+ (forward-char))
+
+ (setq header
+ (make-full-mail-header
+ number ; number
+ (nnheader-nov-field) ; subject
+ (nnheader-nov-field) ; from
+ (nnheader-nov-field) ; date
+ (or (nnheader-nov-field) ; id
+ (nnheader-generate-fake-message-id))
+ (nnheader-nov-field) ; refs
+ (nnheader-nov-read-integer) ; chars
+ (nnheader-nov-read-integer) ; lines
+ (unless (= (following-char) ?\n)
+ (nnheader-nov-field)))) ; misc
+ ;;)
+ ;;(widen))
(when gnus-alter-header-function
(funcall gnus-alter-header-function header))
(let ((gnus-nov-is-evil t))
(nconc
(nreverse headers)
- (when (gnus-retrieve-headers sequence group)
- (gnus-get-newsgroup-headers))))))))
+ (gnus-retrieve-parsed-headers sequence group)
+ ))))))
(defun gnus-article-get-xrefs ()
"Fill in the Xref value in `gnus-current-headers', if necessary.