Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: recommended storage format for email messages?

by JavaFan (Canon)
on Jul 14, 2009 at 16:04 UTC ( [id://779968]=note: print w/replies, xml ) Need Help??


in reply to recommended storage format for email messages?

Well, I was going to suggest the 'mbox' format - which is 'plain text', and has a battery of Perl modules able to parse it, but it seems you want to dismiss that format.
  • Comment on Re: recommended storage format for email messages?

Replies are listed 'Best First'.
Re^2: recommended storage format for email messages?
by perl5ever (Pilgrim) on Jul 14, 2009 at 17:36 UTC
    The main reason I don't like the mbox format is that it does not support an efficient way to skip over messages in the file.

    All I'm looking for is a storage format that is line-based and has a header before each message indicating the message's size.

    I could invent such a format, but I was wondering if one already existed.

      Sounds like you just need to generate an index, then, with the starting line of each of the messages. If you kept it separate, then normal mbox-reading programs could use it, and you'd have your alternate way of skipping to messages.

        I think many mail clients already do this in fact. If there is one that is likely to be used in your install, see if you can use/duplicate it's index file. (I think every client has it's own system, if they have one at all.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://779968]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2025-04-25 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.