Here is a tool I use to unfold long lines in LDAP outputs.
It also works on mailboxes that have the Received: lines
or Content-*: lines folded.
#!/usr/bin/perl
#syntax: unfold.pl filename > newfilename
if ($ARGV[0]) {
local $/ = '';
open(FILE, "<$ARGV[0]") or die "can't open $ARGV[0]: $!\
Daniel Liston wrote:
Here is a tool I use to unfold long lines in LDAP outputs. It
also works on mailboxes that have the Received: lines or
Content-*: lines folded.
There are two things in your code that may cause a problem.
#!/usr/bin/perl
#syntax: unfold.pl filename > newfilename