On Saturday 30 August 2003 21:01, Jason Stubbs wrote:
> BTW is there any tool I can use to extract plain text body of a message?
I've found that formail is capable of doing that too. This, however, has
brought another problem. I've taken the grep line out of the loop and read
the entire message into a variable as follows:
message=""
while read msg_line
do
message="${message}${msg_line}\n"
done
I figured I'd then be able to use the whole message with formail as Yorkshire
Dave suggested (and it increases performance too). However, the whitespace at
the beginning of multiline headers is being truncated so formail cannot
interpret the mail correctly. The only references to whitespace are with
regard to IFS but that doesn't seem to have any effect. Is there any other
way to turn off this behaviour?
Regards,
Jason
--
[EMAIL PROTECTED] mailing list