Add outlook mailbox.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 14 Jul 2000 22:30:42 +0000 (22:30 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 14 Jul 2000 22:30:42 +0000 (22:30 +0000)
lisp/ChangeLog
lisp/nndoc.el

index c302fa7..ef6e461 100644 (file)
@@ -1,3 +1,9 @@
+2000-07-16 18:25:07  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * nndoc.el (nndoc-type-alist): Add outlook.
+       (nndoc-outlook-type-p): New function.
+       (nndoc-outlook-article-begin): Ditto.
+
 2000-07-16  Daiki Ueno  <ueno@unixuser.org>
 
        * gnus-sum.el (gnus-restore-hidden-threads-configuration): Save
index 374b565..2e6ff8e 100644 (file)
@@ -125,6 +125,9 @@ from the document.")
     (rfc822-forward
      (article-begin . "^\n")
      (body-end-function . nndoc-rfc822-forward-body-end-function))
+    (outlook
+     (article-begin-function . nndoc-outlook-article-begin)
+     (body-end .  "\0"))
     (guess
      (guess . t)
      (subtype nil))
@@ -589,6 +592,14 @@ from the document.")
   (when (looking-at "From - ")
     t))
 
+(defun nndoc-outlook-article-begin ()
+  (prog1 (re-search-forward "From:\\|Received:" nil t)
+    (goto-char (match-beginning 0))))
+
+(defun nndoc-outlook-type-p ()
+  ;; FIXME: Is JMF the magic of outlook mailbox? -- ShengHuo.
+  (looking-at "JMF"))
+
 (deffoo nndoc-request-accept-article (group &optional server last)
   nil)