On February 4, 2000 at 20:26, Gerry Hickman wrote:
The message separator is similar to
---------- End of Message ----------
Yes there is. I'm not at the server right now, but as far as I know it's
a carriage return then a line feed then the "F" of "From:".
MSGSEP only deals with a single line.
What you can do is use a simple preprocessor to strip out the blank
line. Take the following source:
#!/usr/local/bin/perl
while (<>) {
print;
<> if /^---------- End of Message ----------/;
}
and say it is in a file called mailfix.pl. You can then do
the something like the following:
shell> perl mailfix.pl mailbox | mhonarc -- -
The "--" is to terminate command-line option parsing and the single "-"
tells mhonarc to read mailbox data from standard input.
Note, this is untested.
--ewh