X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?a=blobdiff_plain;f=stump%2Fbin%2Fsubmission.pl;fp=stump%2Fbin%2Fsubmission.pl;h=27718d657d9bc211c3aa8c5c3dbce54abbe9e85b;hb=733f2cc69cfc634363c5f5a3cb448d8f17056686;hp=fdd5acc2ec4c088acba73cdfb770a2cd4569426f;hpb=1b14f264cc8896b57265ad843d275f762943c5c5;p=modbot-urcm.git diff --git a/stump/bin/submission.pl b/stump/bin/submission.pl index fdd5acc..27718d6 100755 --- a/stump/bin/submission.pl +++ b/stump/bin/submission.pl @@ -348,13 +348,15 @@ sub readMessage { # In these cases, keep that in $readahead for now, # and process the previous header, which is in $_. # But, first, a wrinkle ... - push @unfolded, (m/^[^:]+:/ ? $& : '????') + if (!m/^(?:References):/i) { + push @unfolded, (m/^[^:]+:/ ? $& : '????') if s/\n(?=.)/ /g; - if (length $_ > 505) { #wtf - $_ = substr($_, 0, 500); - $_ =~ s/\n?$/\n/; - $readahead = $_; - $_ = $warning->("Next header truncated!"); + if (length $_ > 505) { #wtf + $_ = substr($_, 0, 500); + $_ =~ s/\n?$/\n/; + $readahead = $_; + $_ = $warning->("Next header truncated!"); + } } } else { # $_ is empty line at end of headers