> My application needs to be able to receive, store and forward arbitrary emails
> from arbitrary email clients. Yet the excerpt I quoted from the Email::Simple
> manpage (below) seemed to me to suggest that Email::Simple isn't capable of
> handling all emails from all clients, only RFC2822 formatted emails - and that
> there is another RFC standard for email formats that Email::Simple doesn't
> handle, but that Email::Filter does. That was why I was asking whether
> Email::Mime suffered from the same limitations as Email::Simple.

All emails that get sent have to be in RFC822 format otherwise MTAs like 
Sendmail and Exim etc etc wouldn't be able to handle them.

So, yes, Email::MIME (which @ISA Email::Simple) has this 'limitation' 
but in reality it's no more of a limitation than saying "I'll open Jpegs 
aslong as they're in the JPEG Groups's format".

How you get the mails into Email::Simple is another matter - if you're 
just piping them from procmail then they'll be in RFC822 although I 
often do something like

        my $data = join '', <>;
        # because there are some norty, norty MTAs
        $data =~ s/^From .+$//m;
        my $simple  = Email::Simple->new($data);

HTH,
Simon

Reply via email to