Mercurial > emacs
comparison lisp/gnus/nnmail.el @ 45321:f767f3bf5f86
*** empty log message ***
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 16 May 2002 12:01:57 +0000 |
parents | 0f4506820432 |
children | 52d99cc2e9e3 |
comparison
equal
deleted
inserted
replaced
45320:886037f6f545 | 45321:f767f3bf5f86 |
---|---|
649 (goto-char end)) | 649 (goto-char end)) |
650 count)) | 650 count)) |
651 | 651 |
652 (defsubst nnmail-search-unix-mail-delim () | 652 (defsubst nnmail-search-unix-mail-delim () |
653 "Put point at the beginning of the next Unix mbox message." | 653 "Put point at the beginning of the next Unix mbox message." |
654 ;; Algorithm used to find the the next article in the | 654 ;; Algorithm used to find the next article in the |
655 ;; brain-dead Unix mbox format: | 655 ;; brain-dead Unix mbox format: |
656 ;; | 656 ;; |
657 ;; 1) Search for "^From ". | 657 ;; 1) Search for "^From ". |
658 ;; 2) If we find it, then see whether the previous | 658 ;; 2) If we find it, then see whether the previous |
659 ;; line is blank and the next line looks like a header. | 659 ;; line is blank and the next line looks like a header. |
678 (beginning-of-line) | 678 (beginning-of-line) |
679 (eq found 'yes))) | 679 (eq found 'yes))) |
680 | 680 |
681 (defun nnmail-search-unix-mail-delim-backward () | 681 (defun nnmail-search-unix-mail-delim-backward () |
682 "Put point at the beginning of the current Unix mbox message." | 682 "Put point at the beginning of the current Unix mbox message." |
683 ;; Algorithm used to find the the next article in the | 683 ;; Algorithm used to find the next article in the |
684 ;; brain-dead Unix mbox format: | 684 ;; brain-dead Unix mbox format: |
685 ;; | 685 ;; |
686 ;; 1) Search for "^From ". | 686 ;; 1) Search for "^From ". |
687 ;; 2) If we find it, then see whether the previous | 687 ;; 2) If we find it, then see whether the previous |
688 ;; line is blank and the next line looks like a header. | 688 ;; line is blank and the next line looks like a header. |
1186 (when nnmail-split-tracing | 1186 (when nnmail-split-tracing |
1187 (push (cdr cached-pair) nnmail-split-trace)) | 1187 (push (cdr cached-pair) nnmail-split-trace)) |
1188 (let ((split-rest (cddr split)) | 1188 (let ((split-rest (cddr split)) |
1189 (end (match-end 0)) | 1189 (end (match-end 0)) |
1190 ;; The searched regexp is \(\(FIELD\).*\)\(VALUE\). So, | 1190 ;; The searched regexp is \(\(FIELD\).*\)\(VALUE\). So, |
1191 ;; start-of-value is the the point just before the | 1191 ;; start-of-value is the point just before the |
1192 ;; beginning of the value, whereas after-header-name is | 1192 ;; beginning of the value, whereas after-header-name is |
1193 ;; the point just after the field name. | 1193 ;; the point just after the field name. |
1194 (start-of-value (match-end 1)) | 1194 (start-of-value (match-end 1)) |
1195 (after-header-name (match-end 2))) | 1195 (after-header-name (match-end 2))) |
1196 ;; Start the next search just before the beginning of the | 1196 ;; Start the next search just before the beginning of the |