: After the 'how do we read/store mail on Plan 9' a couple of months ago,
: has anyone done anything to improve the situation, e.g. memory footprint?
I have done something.
In the Plan B distrib I copied to sources, there's a program that
should work also for Plan 9. It should be at
/n/sources/contrib/nemo/sys/src/cmd/mail2fs/ IIRC
The idea is that mail2fs converts from mbox format to a file tree.
For example, my current inbox (listed from its root), is:
200605/6679/text [EMAIL PROTECTED] Re: [9fans] 3 questions
200605/6678/text [EMAIL PROTECTED] Re: [9fans] 3 questions
200605/6677/text [EMAIL PROTECTED] Re: [9fans] 3 questions
200605/6676/text [EMAIL PROTECTED] Re: [9fans] 3 questions
200605/6675/text [EMAIL PROTECTED] Re: [9fans] 3 questions
200605/6674/text [EMAIL PROTECTED] Re: programa en canal historia
....
Then, to read mail, I use mails (which merely pretty-prints */[0-9]*/text)
or one for the wrappers. Indeed, cat */[0-9]*/text works well enough.
Would this suffice?
I remember complaints about the speed of using grep to search within this,
but in practice, I manage. If that's a problem, maybe what we need is a
generic file search a-la google for our files.