Autor: Chris Lightfoot Data: Para: Kjetil Torgrim Homme CC: exim-users, Marcus Barczak Assunto: Re: [exim] slightly OT - reconstructing mbox files?
On Thu, Aug 24, 2006 at 07:13:37PM +0200, Kjetil Torgrim Homme wrote: > On Thu, 2006-08-24 at 08:54 +0100, Chris Lightfoot wrote:
> > You need a heuristic to detect a block of message headers,
> > and you need to be sure that you don't mistake lines in
> > message bodies for headers (e.g. quoted headers in a
> > bounce) or the headers of a MIME part for the headers of a
> > message.
>
> [snipped lots of good points]
>
> one suggestion for heuristic is to consider each block of candidate
> headers: is the _first_ Received header something which your archiving
> server would make? if so, it's a new message. any bounces and
> forwarded messages should have a different host in their first
> Received-line.
... unless it's a bounce from the same host (you may not
see these in your environment though). Of course then you
know what MTA generated it and you can detect it properly.
--
``[American] football combines the
two worst features of American life:
violence and committee meetings.'' (George Will)