B
Bart Van der Donck
Hello,
I'm reading an email inbox file in Perl like /usr/boxes/mydomain.com/
info. This file consists of 1 or more mails that are waiting to be
delivered. Which mechanism is safe enough to split this file in order
to know the number of waiting emails ?
The format looks like this:
From (e-mail address removed) Wed Mar 12 19:14:17 2008
[headers]
[blanc line]
[body]
[blanc line]
From (e-mail address removed) Wed Mar 12 19:50:11 2008
[headers]
[blanc line]
[body]
[blanc line]
From (e-mail address removed) Wed Mar 12 21:47:07 2008
[headers]
[blanc line]
[body]
I don't understand how Perl can split this input reliably, so that it
knows where a next mail starts. I mean, every message could also
contain blanc lines or "From (e-mail address removed)" itself.
Thanks,
I'm reading an email inbox file in Perl like /usr/boxes/mydomain.com/
info. This file consists of 1 or more mails that are waiting to be
delivered. Which mechanism is safe enough to split this file in order
to know the number of waiting emails ?
The format looks like this:
From (e-mail address removed) Wed Mar 12 19:14:17 2008
[headers]
[blanc line]
[body]
[blanc line]
From (e-mail address removed) Wed Mar 12 19:50:11 2008
[headers]
[blanc line]
[body]
[blanc line]
From (e-mail address removed) Wed Mar 12 21:47:07 2008
[headers]
[blanc line]
[body]
I don't understand how Perl can split this input reliably, so that it
knows where a next mail starts. I mean, every message could also
contain blanc lines or "From (e-mail address removed)" itself.
Thanks,