X-Git-Url: https://git.deb.at/w?p=pkg%2Ft-prot.git;a=blobdiff_plain;f=t-prot;fp=t-prot;h=936928c9a38720acaada34f0db0069d8317bc933;hp=446c0eb15c7e8151f668f69ebff319d676d16e40;hb=1011125442839e1dcca4fd04c64c4d0810f281c7;hpb=8af23c653bc27cbfa95c03fec9cba3032c660418 diff --git a/t-prot b/t-prot index 446c0eb..936928c 100755 --- a/t-prot +++ b/t-prot @@ -1,13 +1,13 @@ #!/usr/bin/perl -w -# $Id: t-prot,v 1.227 2005/03/01 15:20:49 jochen Exp $ +# $Id: t-prot,v 1.230 2005/03/24 22:24:29 jochen Exp $ require 5.006; use strict; use Fcntl qw(O_EXCL O_WRONLY O_CREAT); use Getopt::Mixed qw(nextOption); -use constant VER => '1.98'; +use constant VER => '1.99'; use constant REV => ''; -use constant REL => q$Revision: 1.227 $=~m/(\d+(?:\.\d+)+)/; +use constant REL => q$Revision: 1.230 $=~m/(\d+(?:\.\d+)+)/; # MTA expecting mail on STDIN # (you might have to adjust this if using a different MTA) use constant SENDMAIL => '/usr/sbin/sendmail -oi'; @@ -233,6 +233,7 @@ sub decomb { # underlining some part of the line above (using '^') # nor begin with a whitespace, # * the 1st line must not end with a hyphen, + # * the 2nd line must not indicate content was deleted, # * the 2nd line must not be some mutt(1) commentary, # * there must not be a valid word wrap to produce a longer # 1st line (if not quoted), @@ -248,6 +249,7 @@ sub decomb { ($$L[$x+1] !~ /^$/) && ($$L[$x+1] !~ /^[\s^]/) && ($$L[$x] !~ /-$/) && + ($$L[$x+1] !~ /^\Q[...]\E\s*$/) && ($mua ne 'mutt' || $$L[$x+1] !~ /^(?:\e.+?\a)?\[-- .* --]/) && (length($$L[$x])+index($$L[$x+1], ' ')>$max || (index($$L[$x+1], ' ')<0 && length($$L[$x])+length($$L[$x+1])>$max)) && @@ -336,7 +338,7 @@ sub pgp { if ($$H[$m] =~ /^From:/) { $from = $$H[$m]; $m++; - while ($$H[$m] =~ /^\s/) { $from .= $$H[$m]; $m++; } + while (exists($$H[$m]) && $$H[$m] =~ /^\s/) { $from .= $$H[$m]; $m++; } last; } }