M::B::DBI

Jamie Lawrence <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization clue inc
Message-ID <[email protected]>
Hi folks -

I'm writing an app that stores mail in a database, and am trying to
figure the best way to proceed with interfacing Mail::Box with it.

In the archives and elsewhere, there are various discussions about how
to implement a class, but that's about it...

I'm not familiar with the code base, and reading through M::B::Mbox
demonstrated to me that it will take a while for me to come up to speed
enough to write a class to handle this from scratch.

So, I suppose my question is, does anyone have a class they've used
to do this that I could work from that they wouldn't mind sharing? 

Failing that, is there any straightforward way to access the header 
parser if I have, say, the header in a scalar? What I'm hoping to do 
at the very least is something like:

[...]
my $message = Mail::Box::Message->new();
my $h = Mail::Box::Message::Head->read($head);
$message->new(head => $h);
$folder->addMessage($message);

Which obviously won't work, but illustrates intent, I think.

Or am I just thinking about this all wrong?

-j


-- 
Jamie Lawrence                                        [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.