nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] multiple folders to rcvstore

2005-11-08 09:17:45
Nicholas M. Kirsch <nick@kirsch.org> wrote:

You'll have to privilege one of the locations on the rcvstore command
line to make this work. It gets the message from stdin by default.
You could always have it be an error to use -link without -file, but
I think the whole idea is breaking the paradigm of rcvstore. In fact,
this is why rcvstore and refile are different programs, IMHO. You
*can* specify multiple locations with refile.

I don't understand why you need to privilege any of the locations. I imagine
that rcvstore will simply take the list of folders, create a message in the
any arbitrary one, and create links in any additional folders. None of the
locations are privileged. (Let's ignore how sequences would be specified, for
now). To the filesystem, all links are identical; there is no preferred link.

The fact that rcvstore is obtaining the message from stdin is not relevant
here. (It will use that data to initially write the message to disk, but
which folder it chooses to write to is unimportant as long as it creates
links in the other folders before exiting). 

Currently rcvstore takes the file from stdin and puts it in a tempfile.
Then it calls folder_addmeg() with that tempfile.  For the first message
it would continue to do the same thing.  For subsequent messages it
would have to refer to the first message.  Easy enough to do.

Thanks.

Jeff

-- 
Jeffrey C. Honig <jch@honig.net>
http://www.honig.net/jch
GnuPG ID:14E29E13 <http://www.honig.net/jch/key.shtml>


_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>