From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/40942 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: patch: nnmaildir commentary, etc. Date: Fri, 21 Dec 2001 17:43:58 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035176419 3619 80.91.224.250 (21 Oct 2002 05:00:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:00:19 +0000 (UTC) Return-Path: Original-Received: (qmail 23604 invoked from network); 21 Dec 2001 22:45:03 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 21 Dec 2001 22:45:03 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16HYOl-0001hH-00; Fri, 21 Dec 2001 16:44:15 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 21 Dec 2001 16:44:05 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA25353 for ; Fri, 21 Dec 2001 16:43:54 -0600 (CST) Original-Received: (qmail 23573 invoked by alias); 21 Dec 2001 22:43:59 -0000 Original-Received: (qmail 23568 invoked from network); 21 Dec 2001 22:43:58 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (qmail-remote@129.22.96.25) by gnus.org with SMTP; 21 Dec 2001 22:43:58 -0000 Original-Received: (qmail 2016 invoked by uid 500); 21 Dec 2001 22:44:20 -0000 Original-To: ding@gnus.org Mail-Copies-To: nobody Mail-Followup-To: ding@gnus.org Original-Lines: 10 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:40942 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:40942 --=-=-= Just some cleanups to make nnmaildir more at home in CVS. * gnus.el (gnus-valid-select-methods): Include nnmaildir. * nnmaildir.el (top-level): Add commentary. (nnmaildir-version): Indicate that nnmaildir is now a standard part of Gnus, not separately released. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=nnmaildir.diff Index: lisp/gnus.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus.el,v retrieving revision 6.67 diff -u -r6.67 gnus.el --- lisp/gnus.el 2001/12/19 14:35:02 6.67 +++ lisp/gnus.el 2001/12/21 22:46:24 @@ -1395,7 +1395,8 @@ ("nnwarchive" none) ("nnlistserv" none) ("nnagent" post-mail) - ("nnimap" post-mail address prompt-address physical-address)) + ("nnimap" post-mail address prompt-address physical-address) + ("nnmaildir" mail respool address)) "*An alist of valid select methods. The first element of each list lists should be a string with the name of the select method. The other elements may be the category of Index: lisp/nnmaildir.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnmaildir.el,v retrieving revision 6.2 diff -u -r6.2 nnmaildir.el --- lisp/nnmaildir.el 2001/12/20 20:40:32 6.2 +++ lisp/nnmaildir.el 2001/12/21 22:46:24 @@ -23,7 +23,30 @@ ;;; Commentary: -;;; +;; Maildir format is documented in the maildir(5) man page from qmail +;; and at . nnmaildir also +;; stores extra information in the .nnmaildir/ directory within a +;; maildir. +;; +;; Some goals of nnmaildir: +;; * Everything Just Works, and correctly. E.g., stale NOV data is +;; ignored when articles have been edited; no need for +;; -generate-nov-databases. +;; * Perfect reliability: [C-g] will never corrupt its data in memory, +;; and SIGKILL will never corrupt its data in the filesystem. +;; * We make it easy to manipulate marks, etc., from outside Gnus. +;; * All information about a group is stored in the maildir, for easy +;; backup and restoring. +;; * Use the filesystem as a database. +;; +;; Todo: +;; * Ignore old NOV data when gnus-extra-headers has changed. +;; * Don't force article renumbering, so nnmaildir can be used with +;; the cache and agent. Alternatively, completely rewrite the Gnus +;; backend interface, which would have other advantages. +;; +;; See also until that +;; information is added to the Gnus manual. ;;; Code: @@ -39,8 +62,7 @@ (require 'cl) (require 'nnmail)) -(gnus-declare-backend "nnmaildir" 'mail 'respool 'address) -(defconst nnmaildir-version "2001.12.19") +(defconst nnmaildir-version "Gnus") (defvar nnmaildir-article-file-name nil "*The filename of the most recently requested article. This variable is set --=-=-= paul --=-=-=--