;ELC   
;;; compiled by gsstark@lola-granola.MIT.EDU on Tue Jul 23 13:36:34 1996
;;; from file /afs/sipb.mit.edu/contrib/emacs/packages/gnus-5.2.37/lisp/nnmh.el
;;; emacs version 19.30.1.
;;; bytecomp version FSF 2.10
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs 18.

(if (and (boundp 'emacs-version)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`nnmh.el' was compiled for Emacs 19.29 or later"))


(byte-code "ÀÁ!ˆÀÂ!ˆÀÃ!ˆÀÄ!ˆÀÅ!ˆÆÇÈÉ\"É‰F\nB\nÉ‡" [require nnheader nnmail gnus nnoo cl nnmh mapcar #[(p) "C‡" [p] 1] nil nnoo-definition-alist] 4)
#@24 *Mail spool directory.
(defvar nnmh-directory message-directory (#$ . -654))
(nnoo-define (quote nnmh-directory) nil)
#@73 *If non-nil, nnmh will check the incoming mail file and split the mail.
(defvar nnmh-get-new-mail t (#$ . -778))
(nnoo-define (quote nnmh-get-new-mail) nil)
#@49 *Hook run narrowed to an article before saving.
(defvar nnmh-prepare-save-mail-hook nil (#$ . -941))
(nnoo-define (quote nnmh-prepare-save-mail-hook) nil)
#@85 *If non-nil, nnmh will check all articles to make sure whether they are new or not.
(defvar nnmh-be-safe nil (#$ . -1102))
(nnoo-define (quote nnmh-be-safe) nil)
#@15 nnmh version.
(defconst nnmh-version "nnmh 1.0" (#$ . 1270))
#@31 Current news group directory.
(defvar nnmh-current-directory nil (#$ . 1337))
(byte-code "ÀÁÂ\"ˆÃÄ!„ ÅÄBÀÄÂ\"ˆÃÇ!„! ÂÇBÀÇÂ\"ˆÈÉ!‡" [nnoo-define nnmh-current-directory nil boundp nnmh-status-string "" current-load-list nnmh-group-alist nnoo-define-basics-1 nnmh] 3)
(defalias 'nnmh-retrieve-headers #[(articles &optional newsgroup server fetch-old) "ŠqˆÁ ˆÂ\fG§… VÈ	Â\nÂÌ\"ˆ\f@;ƒ2 Ï‚¬ \fƒŸ ÐÑ!Ó\f‰A@‰!P‰!ƒ Ô!„ ÕÖ\"cˆ`\n×!ˆ\nbˆØÙÂÚ#ƒr Ûuˆ‚x dbˆÙcˆÜcˆ`d|ˆ	T	ƒ2 	Ý¦ÈUƒ2 Þß	à_¥\"ˆ‚2 ƒ¨ Þá!ˆâ ˆÏ.‡" [nntp-server-buffer erase-buffer nil file articles number nnmail-large-newsgroup large 0 count beg article nnmh-possibly-change-directory newsgroup server headers file-exists-p file-name-as-directory nnmh-current-directory int-to-string file-directory-p format "221 %d Article retrieved.\n" nnheader-insert-head search-forward "\n\n" t -1 ".\n" 20 message "nnmh: Receiving headers... %d%%" 100 "nnmh: Receiving headers...done" nnheader-fold-continuation-lines] 5])
(nnoo-register-function (quote nnmh-retrieve-headers))
(defalias 'nnmh-open-server #[(server &optional defs) "ÀÁ\n#ˆÄ!„ ÆÇÈ�ˆÄ!„  É ˆÊÁË#‡ÌÍ!!„1 É ˆÊÁÎ#‡ÊÁÏ\n$ˆÐ‡" [nnoo-change-server nnmh server defs file-exists-p nnmh-directory nil (make-directory nnmh-directory t) ((error)) nnmh-close-server nnheader-report "Couldn't create directory: %s" file-directory-p file-truename "Not a directory: %s" "Opened server %s using directory %s" t] 5])
(nnoo-register-function (quote nnmh-open-server))
(defalias 'nnmh-request-article #[(id &optional newsgroup server buffer) "À	\n\"ˆ;?… \fÅ!P† ‰;…> É!…> Ê!?…> ŠË!)…> ÌÍ!!*‡" [nnmh-possibly-change-directory newsgroup server id nnmh-current-directory int-to-string buffer nntp-server-buffer file file-exists-p file-directory-p nnmail-find-file string-to-int file-name-nondirectory] 4])
(nnoo-register-function (quote nnmh-request-article))
(defalias 'nnmh-request-group #[(group &optional server dont-check) "À	\n\"ÃÆ!„ ÇÈÉ	#‚u \nƒ& \fƒ& Í	!ˆƒ5 ÇÈÏ	#ˆÐ‚u Ñ!ˆÒÓÔÕÃÖÐ$\"×\"‰ƒi ÇÈÏ	#ˆØÙ\fG\f@\fAƒb \fA‰‚W \f@	%‚u ÇÈÚ	#ˆØÛÜ	\"!*‡" [nnmail-group-pathname group nnmh-directory nil dir pathname file-directory-p nnheader-report nnmh "Can't select group (no such directory): %s" nnmh-current-directory nnmh-get-new-mail nnmh-be-safe nnmh-update-gnus-unreads dont-check "Selected group %s" t nnheader-re-read-dir sort mapcar #[(name) "À	!‡" [string-to-int name] 2] directory-files "^[0-9]+$" < nnheader-insert "211 %d %d %d %s\n" "Empty group %s" format "211 0 1 0 %s\n"] 9])
(nnoo-register-function (quote nnmh-request-group))
(defalias 'nnmh-request-scan #[(&optional group server) "ÀÁÂ\f$‡" [nnmail-get-new-mail nnmh nil nnmh-directory group] 5])
(nnoo-register-function (quote nnmh-request-scan))
(defalias 'nnmh-request-list #[(&optional server dir) "ÀÁ!ˆ\n† ÃÄ!!Ç!ˆ)È 	Ê‡" [nnheader-insert "" dir file-truename file-name-as-directory nnmh-directory nnmh-toplev nnmh-request-list-1 nnmail-get-active nnmh-group-alist t] 3])
(byte-code "ÀÁ!ˆÂBÀ‡" [nnoo-register-function nnmh-request-list nnmh-toplev current-load-list] 2)
(defalias 'nnmh-request-list-1 #[(dir) "À	!Â	!… ÃÄ	!!A@ÅV… Æ	ÇÈÇ$È		‰A	@‰ƒG Ê	!Ë�„  Ì	!ƒ  Â	!ƒ  Í	!ˆ‚  *À!	˜„� ÏÐÆ	ÈÑÇ$\"‰ƒ� ŠqˆdbˆÔÕÖ×ØÙÀ!!!!	\"ˆÚ	Û•ÈOÜÝ#Þß\"Þà\"$cˆ))Ç‡" [expand-file-name dir file-readable-p file-attributes file-chase-links 2 directory-files t nil dirs file-name-nondirectory ("." "..") file-directory-p nnmh-request-list-1 nnmh-toplev mapcar #[(name) "À	!‡" [string-to-int name] 2] "^[0-9]+$" files nntp-server-buffer format "%s %d %d y\n" string-match regexp-quote file-truename file-name-as-directory nnheader-replace-chars-in-string 0 47 46 apply max min] 9])
(defalias 'nnmh-request-newgroups #[(date &optional server) "À	!‡" [nnmh-request-list server] 2])
(nnoo-register-function (quote nnmh-request-newgroups))
(defalias 'nnmh-request-expire-articles #[(articles newsgroup &optional server force) "À	\n\"ˆÃÄÅÇÈÉ$\"\nÉÇ\fÇÇÏÐ!ˆƒx ƒx Ò@!P\fÓÔ\f!8‰ƒo Õ	@\"ƒg Ö	#‰ƒg ØÓÙ\f	$ˆÇÚÛ�ˆ‚o @BA‰„& ÜÝ!ˆ¤-‡" [nnmh-possibly-change-directory newsgroup server mapcar #[(name) "À	!‡" [string-to-int name] 2] directory-files nnmh-current-directory nil "^[0-9]+$" t active-articles is-old article rest mod-time nnmail-activate nnmh articles int-to-string 5 file-attributes nnmh-deletable-article-p nnmail-expired-article-p force nnheader-message "Deleting article %s in %s..." (funcall nnmail-delete-file-function article) ((file-error (byte-code "ÀÁÂ\f$ˆ@BÀ‡" [nnheader-message 1 "Couldn't delete article %s in %s" article newsgroup articles rest] 5))) message ""] 8])
(nnoo-register-function (quote nnmh-request-expire-articles))
(defalias 'nnmh-close-group #[(group &optional server) "À‡" [t] 1])
(nnoo-register-function (quote nnmh-close-group))
(defalias 'nnmh-request-move-article #[(article group server accept-form &optional last) "ÀÁ!ÂÅ\"ƒ= È	#ƒ= Š\fqˆÊ!ˆÌ!Îp!ˆ)ƒ= Ï	\"ˆÂÐÑ�ˆ*‡" [get-buffer-create " *nnmh move*" nil result buf nnmh-deletable-article-p group article nnmh-request-article server insert-buffer-substring nntp-server-buffer eval accept-form kill-buffer nnmh-possibly-change-directory (byte-code "	Â!P!‡" [nnmail-delete-file-function nnmh-current-directory int-to-string article] 4) ((file-error))] 4])
(nnoo-register-function (quote nnmh-request-move-article))
(defalias 'nnmh-request-accept-article #[(group &optional server last noinsert) "À	\n\"ˆÃ ˆ	;ƒ  ÄÅ!…+ 	ÆDCÈ	!@)‡ÄÅ!…+ È	!@‡" [nnmh-possibly-change-directory group server nnmail-check-syntax nnmail-activate nnmh "" nnmail-split-methods nnmh-save-mail noinsert] 3])
(nnoo-register-function (quote nnmh-request-accept-article))
(defalias 'nnmh-request-replace-article #[(article group buffer) "À	!ˆŠ\nqˆÃ	!ˆÄÅÆ�)‡" [nnmh-possibly-change-directory group buffer nnmh-possibly-create-directory nil (byte-code "Àed	Â!PÄÅÆ!?… Ç%ˆÈ‡" [write-region nnmh-current-directory int-to-string article nil nnheader-be-verbose 5 nomesg t] 7) ((error))] 3])
(nnoo-register-function (quote nnmh-request-replace-article))
(defalias 'nnmh-request-create-group #[(group &optional server) "ÀÁ!ˆÂ\f\"„E ÅÇÈB‰D\fBÉ!ˆÊ\"ˆÌÍÎÅÐ#\"‰ƒD ÒÓ\" ˆÒÔ\"¡ˆ*Õ‡" [nnmail-activate nnmh assoc group nnmh-group-alist nil active 1 0 nnmh-possibly-create-directory nnmh-possibly-change-directory server mapcar #[(file) "À	!‡" [string-to-int file] 2] directory-files nnmh-current-directory "^[0-9]+$" articles apply min max t] 7])
(nnoo-register-function (quote nnmh-request-create-group))
(defalias 'nnmh-request-delete-group #[(group &optional force server) "À	\n\"ˆƒ; ÄÆÇ#‰ƒ5 É@!ƒ, ÊËÌ@	$ˆ@!ˆA‰„ )ÎÏÐ�ˆÑÒ	\"\"ÎÆ‡" [nnmh-possibly-change-directory group server force directory-files nnmh-current-directory t "^[0-9]+$" articles file-writable-p nnheader-message 5 "Deleting article %s in %s..." nnmail-delete-file-function nil (delete-directory nnmh-current-directory) ((error)) delq assoc nnmh-group-alist] 6])
(nnoo-register-function (quote nnmh-request-delete-group))
(defalias 'nnmh-request-rename-group #[(group new-name &optional server) "À	\n\"ˆÃ\f!…' ÅÆÇ�…' È		\"‰\nƒ# \n ˆÅ)Ì‡" [nnmh-possibly-change-directory group server file-writable-p nnmh-current-directory nil (byte-code "ÀÁ\n!ÁÃ\f\"!\"ˆÆ‡" [rename-file directory-file-name nnmh-current-directory nnmail-group-pathname new-name nnmh-directory t] 6) ((error)) assoc nnmh-group-alist entry new-name t] 4])
(nnoo-register-function (quote nnmh-request-rename-group))
(defalias 'nnmh-possibly-change-directory #[(newsgroup &optional server) "ƒ Á!„ Â!ˆ…, Ä\"Ç!ƒ' ‰‚+ ÉÊ\")‡" [server nnmh-server-opened nnmh-open-server newsgroup nnmail-group-pathname nnmh-directory pathname file-directory-p nnmh-current-directory error "No such newsgroup: %s"] 3])
(defalias 'nnmh-possibly-create-directory #[(group) "À‰Ã\f\"Æ\n!„ \n	BÇÈ\n!!‚	 	…> ÉÈ	@!!ƒ/ ÊË	@\"ˆÌÍÎ	@#ˆ	A‰„  À*‡" [nil dirs dir nnmail-group-pathname group nnmh-directory file-directory-p file-name-directory directory-file-name make-directory error "Could not create directory %s" nnheader-message 5 "Creating mail directory %s"] 5])
#@32 Called narrowed to an article.
(defalias 'nnmh-save-mail #[(&optional noinsert) "ÀÁ!Ÿ„ Ä ˆÅ\n!ˆÆÇ!ˆÆÈ!ˆebˆÉÊ!ƒ+ ËÌ!ˆÍyˆ‚ \nÎ‰ƒu Ñ@@!ˆÒ@@\"Ô@A!Pƒ^ ×#ˆ‚k ØedÎ‰%ˆ)A‰„5 *\n)‡" [nnmail-article-group nnmh-active-number group-art noinsert nnmail-insert-lines nnmail-insert-xref run-hooks nnmail-prepare-save-mail-hook nnmh-prepare-save-mail-hook looking-at "From " replace-match "X-From-Line: " 1 nil first ga nnmh-possibly-create-directory nnmail-group-pathname nnmh-directory int-to-string file nnmail-crosspost-link-function t write-region] 7 (#$ . 9535)])
#@43 Compute the next article number in GROUP.
(defalias 'nnmh-active-number #[(group) "À	\n\"A@‰„ ÄÅB	D\nB‰AT¡ˆÆÇ	\"ÉA!P!ƒ3 ‰AT¡ˆ‚ A)‡" [assoc group nnmh-group-alist active 1 0 file-exists-p nnmail-group-pathname nnmh-directory int-to-string] 5 (#$ . 10130)])
(defalias 'nnmh-update-gnus-unreads #[(group) "ÂÃÄÅÆÇÈ$\"É\"\n	ËP\fÆÆÏ\f!ƒ/ ÆÆÑÒ�ˆ)\n‰ƒQ @ž„H @BA‰„7 )‰ƒv @@\n>„m Ô@\"A‰„Z )‰ƒ® ÕÖ	×@@!P!8@Aš„® Ô@\"@@BA‰„ )‰ƒÔ @ÕÖ	×@!P!8BBA‰„· )ÙG!„ï ÚÛÝÞD\"ÂÉ\"‰\"ˆÂß\"Šàá!qˆâã±ˆäcˆå!æ±ˆçed\fÆè%ˆép!.‡" [nnmh-current-directory dir sort mapcar #[(name) "À	!‡" [string-to-int name] 2] directory-files nil "^[0-9]+$" t < files ".nnmh-articles" nnmh-file new articles file-exists-p nnmh-newsgroup-articles (byte-code "À	ÂÃ‰$‡" [load nnmh-file nil t] 5) ((error)) art delq 5 file-attributes int-to-string n zerop gnus-make-articles-unread gnus-group-prefixed-name group nnmh "" #[(art1 art2) "@	@V‡" [art1 art2] 2] get-buffer-create "*nnmh out*" ";; Gnus article active file for " "\n\n" "(setq nnmh-newsgroup-articles '" prin1-to-string ")\n" write-region nomesg kill-buffer] 9])
#@46 Say whether ARTICLE in GROUP can be deleted.
(defalias 'nnmh-deletable-article-p #[(group article) "Á\n!PÄ!… ?† Æ\"A@A\n=?)‡" [nnmh-current-directory int-to-string article path file-writable-p nnmail-keep-last-article assoc group nnmh-group-alist] 3 (#$ . 11326)])
(provide (quote nnmh))
