Gnus development mailing list
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: (provide 'nnmaildir)
Date: Mon, 31 Jul 2000 12:42:12 -0400	[thread overview]
Message-ID: <m3lmyiqmjf.fsf@multivac.student.cwru.edu> (raw)
In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Sat, 29 Jul 2000 19:15:35 +0200"

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) writes:
> Don't all the nnchoke-* functions accept a server parameter which
> contains the necessary information?

The server parameter is just the name - the second element of the
select method.  The optional defs parameter of the -open-server
function is the cddr of the select method, which contains all the
server parameters.  Gnus will first call the backend's -open-server
function, and it will pass the server parameters in defs.  The
-open-server function (typically) then relays the defs to
nnoo-change-server, which remembers them for later.  If you call
nnoo-change-server again with the same server but with defs being nil,
it will remember the old server parameters and do the appropriate setq
assignments.  So all is well for me.

> On 24 Jul 2000, Paul Jarc wrote:
> > - For moving articles between groups in nnmaildir, it makes sense to
> >   simply rename a message file and/or tweak some per-server
> >   persistent state data - in particular, *not* to copy a message
> >   from one file to another.

I've redesigned my multiple-groups approach, so this is no longer an
issue.  A new version is here, and I think it's (almost) ready for
general use.  Important things still to be done: expiration, moving
articles between groups.
<URL:http://multivac.cwru.edu/prj/nnmaildir.el>
bugfix: new mail is now incorporated by nnmaildir-request-list
        instead of nnmaildir-retrieve-headers
feature: headers and articles can be fetched by Message-ID
feature: nnmaildir-retrieve-headers handles numeric fetch-old
feature: multiple groups per server; one group per maildir
feature: nnmaildir-directory is gone; nnmaildir-groups maps
         group names to maildirs

Having only one group per maildir simplifies things greatly in
nnmaildir; .qmail files can be used to filter messages into the
appropriate places.  A select method now looks like this:
'(nnmaildir "whatever"
            (nnmaildir-groups (("groupname1" "/path/to/maildir1")
                               ("groupname2" "/path/to/maildir2"))))
If there is only one group, it doesn't need to be put in a list.  The
select method is destructively modified behind your back by
nnmaildir-open-server - I don't think this will cause problems, will
it?  I think nntp.el does it too.

If you were using the old version, migration will be mildly painful.
(But it shouldn't be in the future.)  First, kill (not just
unsubscribe) all your nnmaildir groups.  Now, in the cur/ directory in
each of the maildirs you're using, execute this command:
bash -c 'for i in *; do mv "$i" ../new/"${i%%:*}"; done'
That will make all messages appear as new again.  Now set up your new
select method, fire up Gnus, and resubscribe to your groups.

nnmaildir-retrieve-headers doesn't look outside the specified group,
whereas nnmaildir-request-article does.  Will this cause problems?

The summary buffer will show some articles as having zero lines.  I
just now figured out how to fix this.


paul



  parent reply	other threads:[~2000-07-31 16:42 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-14 23:10 Paul Jarc
2000-07-14 23:47 ` Steve Harris
2000-07-15  0:56   ` Paul Jarc
2000-07-16  1:14     ` Steve Harris
2000-07-16 12:44       ` Simon Josefsson
2000-07-17  2:43         ` Steve Harris
2000-07-17 18:28           ` Paul Jarc
2000-07-18  9:04             ` Kai Großjohann
2000-07-18 10:16             ` Simon Josefsson
2000-07-18 15:34               ` Steve Harris
2000-07-18 16:34                 ` Simon Josefsson
2000-07-18 16:48                   ` Kai Großjohann
2000-07-19 15:36                   ` Steve Harris
2000-07-20 14:19                     ` Paul Jarc
2000-07-24 20:10                       ` Paul Jarc
     [not found]                         ` <vafittodfig.fsf@lucy.cs.uni-dortmund.de>
2000-07-31 16:42                           ` Paul Jarc [this message]
2000-08-01 16:03                             ` Paul Jarc
2000-08-02 14:51                               ` Paul Jarc
2000-08-03 14:58                                 ` Paul Jarc
2000-08-04 15:44                                   ` Paul Jarc
2000-08-07 22:35                                     ` Paul Jarc
2000-08-11 15:01                                     ` Paul Jarc
2000-08-11 21:07                                       ` Kai Großjohann
2000-08-11 21:34                                         ` Paul Jarc
2000-08-13 16:08                                           ` Kai Großjohann
2000-09-04  3:51                                       ` Paul Jarc
2000-09-04  4:20                                         ` Paul Jarc
2000-09-04  8:26                                         ` Simon Josefsson
2000-09-05 18:49                                           ` Paul Jarc
2000-09-21 17:30                                         ` Paul Jarc
2000-09-21 21:30                                           ` Kai Großjohann
2000-09-21 22:43                                             ` Paul Jarc
2000-07-15  0:15 ` Simon Josefsson
2000-07-15  0:51   ` Paul Jarc
2000-07-15  1:21     ` Simon Josefsson
2000-07-15  1:24     ` Russ Allbery
2000-07-15 11:45     ` Kai Großjohann
2000-07-15 13:12       ` Simon Josefsson
2000-07-15 11:43 ` Kai Großjohann
2000-07-16 21:34   ` Paul Jarc
2000-07-16 21:47     ` Kai Großjohann
2000-07-17 18:17       ` Paul Jarc
2000-09-28 16:05 ` Paul Jarc
2000-09-28 18:46   ` Paul Jarc
2000-10-04 18:06 ` Paul Jarc
2000-10-04 18:21   ` Paul Jarc
2000-10-04 19:31     ` Simon Josefsson
2000-10-04 19:34       ` Paul Jarc
2000-10-04 19:52         ` Simon Josefsson
2000-10-04 20:32           ` Paul Jarc
2000-10-05  8:57             ` Simon Josefsson
2001-04-11 16:10 ` Paul Jarc
2001-04-15  3:57 ` Paul Jarc
2001-04-17  0:55 ` Paul Jarc
2001-04-24 15:11 ` Paul Jarc
2001-04-25 13:42   ` Paul Jarc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3lmyiqmjf.fsf@multivac.student.cwru.edu \
    --to=prj@po.cwru.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).