Joel Uckelman on Thu, 2 Dec 2004 16:07:51 -0600 (CST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [nimh-dev] sequence definition


Thus spake Tom Plagge:
> This seems to cover it.  How are you going to represent a sequence?  I can 
> imagine it as an object, dictionary, or list.  Are you writing "pick" as a 
> part of this?  Have you committed any code?
> -t 

No, no code committed yet. I still need to send Jon a key and install 
subversion. I'll commit some code tonight, if things go well.

And I'm not writing anything which you'd run from the command line right 
now. I'm writing some functions which are going to be ubiquitous in 
handling sequences.

The two important functions will be sequence_to_list(seq, folder) which 
maps arbitrary sequences to lists of message numbers, and msg_path(msg, 
folder), which maps message numbers (optionally with a folder name) to 
their paths.

If you had a sequence from the command line, you'd call sequence_to_list() 
on it, and when you're ready to twiddle a message file, you can get the 
path for it using msg_path().

-- 
J.


_______________________________________________
nimh-dev mailing list
nimh-dev@xxxxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/nimh-dev