Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Re: [HyperTherm] View Header and SA Report Formatting

Quote Reply
Re: [HyperTherm] View Header and SA Report Formatting In reply to
It will make it into the next product release. In the meantime, here's a patch to GT::Mail::Parts (not that it's not a real patch, so you'll have to change it manually):
Code:
sub fold {
# --------------------------------------------------------------------------
my ( $tag, $line ) = @_;
+
+# Remove any newlines that shouldn't be in the header
+ $line =~ s/(?:\r?\n)+$//;
+ $line =~ s/(?:\r?\n)(?=[^\t ])/ /g;
+
+# Don't fold if we don't need to
+ my $fold = 0;
+ for (split /$CRLF/, $line) {
+ if (length $_ > 72) {
+ $fold = 1;
+ last;
+ }
+ }
+ return $line unless $fold;

return $line;
}

-# Line does not need wrapping
- if ( length( $line ) <= 72 ) {
- return $line;
- }

Adrian
Subject Author Views Date
Thread View Header and SA Report Formatting HyperTherm 6350 Sep 22, 2004, 1:32 AM
Thread Re: [HyperTherm] View Header and SA Report Formatting
brewt 6246 Sep 22, 2004, 1:48 AM
Thread Re: [brewt] View Header and SA Report Formatting
HyperTherm 6235 Oct 2, 2004, 4:15 AM
Post Re: [HyperTherm] View Header and SA Report Formatting
HyperTherm 6210 Oct 11, 2004, 4:16 AM
Thread Re: [HyperTherm] View Header and SA Report Formatting
brewt 6226 Oct 13, 2004, 12:47 PM
Thread Re: [brewt] View Header and SA Report Formatting
HyperTherm 6191 Oct 13, 2004, 6:48 PM
Thread Re: [HyperTherm] View Header and SA Report Formatting
brewt 6187 Oct 13, 2004, 8:19 PM
Post Re: [brewt] View Header and SA Report Formatting
HyperTherm 6187 Oct 13, 2004, 8:53 PM
Thread Re: [brewt] View Header and SA Report Formatting
HyperTherm 6173 Oct 16, 2004, 10:26 PM
Thread Re: [HyperTherm] View Header and SA Report Formatting
brewt 6163 Oct 16, 2004, 11:13 PM
Thread Re: [brewt] View Header and SA Report Formatting
HyperTherm 6146 Oct 21, 2004, 7:27 AM
Post Re: [HyperTherm] View Header and SA Report Formatting
brewt 6136 Oct 26, 2004, 5:15 PM