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 4577 Sep 22, 2004, 1:32 AM
Thread Re: [HyperTherm] View Header and SA Report Formatting
brewt 4503 Sep 22, 2004, 1:48 AM
Thread Re: [brewt] View Header and SA Report Formatting
HyperTherm 4494 Oct 2, 2004, 4:15 AM
Post Re: [HyperTherm] View Header and SA Report Formatting
HyperTherm 4475 Oct 11, 2004, 4:16 AM
Thread Re: [HyperTherm] View Header and SA Report Formatting
brewt 4453 Oct 13, 2004, 12:47 PM
Thread Re: [brewt] View Header and SA Report Formatting
HyperTherm 4450 Oct 13, 2004, 6:48 PM
Thread Re: [HyperTherm] View Header and SA Report Formatting
brewt 4447 Oct 13, 2004, 8:19 PM
Post Re: [brewt] View Header and SA Report Formatting
HyperTherm 4455 Oct 13, 2004, 8:53 PM
Thread Re: [brewt] View Header and SA Report Formatting
HyperTherm 4424 Oct 16, 2004, 10:26 PM
Thread Re: [HyperTherm] View Header and SA Report Formatting
brewt 4424 Oct 16, 2004, 11:13 PM
Thread Re: [brewt] View Header and SA Report Formatting
HyperTherm 4406 Oct 21, 2004, 7:27 AM
Post Re: [HyperTherm] View Header and SA Report Formatting
brewt 4401 Oct 26, 2004, 5:15 PM