9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] store 9p session-only values using lib9p
Date: Thu, 12 Jun 2008 08:25:03 -0400	[thread overview]
Message-ID: <6dbea45b0e4c8e2941b0bf5bcb371eb4@quanstro.net> (raw)
In-Reply-To: <d97886578e87be4b6a4d3fde41932e4b@lsub.org>

> Funny, I've done the same in a different way.
> see mail2fs in contrib/nemo.
> Also, I have some proposal, skip to the end of the mail and let me know
> what you think :)
>
> In any case, I'd love to see/try your version of upas/fs et al.

/n/sources/contrib/quanstro/src/nupas.  cavet emptor.

nupas/fs is fully compatable with upas/*.

i have been using the mdir format for about 18 months.  but i have
just recently added the bits to reduce memory footprint.

i'm currently spending quite a bit of time on this so details may change.

i would appreciate any feedback.

> Instead of adapting upas/fs, I use a mail2fs program that uses
> upas to convert mail into an "unpacked" form. Each mail is a directory.
> A "text" file contains the message text right as you would see it in a mail
> reader (including relative paths for attachments). Each attach is decoded
> and kept in the mail's directory ready to be copied, printed, etc.; if possible,
> using the same file name reported by the attachment.

it's hard denying that this is some allure to this idea and i definately
considered it.  however, we get quite a bit of three-part email containing
the mime parent a 150 byte message and the 400 (with headers) byte
replyed-to message.  depending on the details of your format, this
could require 3 directories + 3 files or 6 blocks of storage for a
smaller-than 1 block message.  (assuming 8kb blocks.)  it also could
result in quite a bit more seeking when scanning a number of messages.

in addition, this format is not compatable with any of the existing
tools.  in mdir format, each file looks like a mailbox of exactly one
message.  in addition, in mdir format each message is self-contained.
i can just cp it.

finally, a number of email security standards (so-called spf2.0 and
s/mime) require the original email.  it's not clear to me that one can
reconstruct an original mime message from processed parts without
leaving some breadcrumbs behind.  there's no requirement not to
base64-encode us-ascii, for example.

- erik




  parent reply	other threads:[~2008-06-12 12:25 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11 20:06 gdiaz
2008-06-11 20:48 ` Russ Cox
2008-06-11 20:58   ` gdiaz
2008-06-11 23:44 ` erik quanstrom
2008-06-12  0:01   ` [9fans] upas/fs Russ Cox
2008-06-12  2:31     ` erik quanstrom
2008-06-12  2:59       ` Lyndon Nerenberg
2008-06-12  8:34   ` [9fans] store 9p session-only values using lib9p gdiaz
2008-06-12 10:04     ` erik quanstrom
2008-06-12 10:24       ` Fco. J. Ballesteros
2008-06-12 10:28         ` Fco. J. Ballesteros
2008-06-12 10:39         ` gdiaz
2008-06-12 10:43           ` Francisco J Ballesteros
2008-06-12 10:55             ` gdiaz
2008-06-12 11:04               ` Francisco J Ballesteros
2008-06-12 11:11                 ` gdiaz
2008-06-12 17:16                 ` lucio
2008-06-12 12:25         ` erik quanstrom [this message]
2008-06-12 12:32           ` erik quanstrom
2008-06-12 14:03           ` Francisco J Ballesteros
2008-06-12 14:25             ` erik quanstrom
2008-06-12 14:49               ` Fco. J. Ballesteros
2008-06-12 14:55                 ` Fco. J. Ballesteros
2008-06-12 15:06                 ` erik quanstrom
2008-06-12 17:12         ` lucio
2008-06-12 10:26       ` gdiaz
2008-06-12 11:09         ` erik quanstrom
2008-06-12 13:29           ` gdiaz
2008-06-12 14:10           ` Russ Cox
2008-06-12 14:10             ` erik quanstrom

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=6dbea45b0e4c8e2941b0bf5bcb371eb4@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /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).