+2005-03-24 22:24 Jochen Striepe
+
+ * t-prot: Release as v1.99.
+
+2005-03-22 16:10 Jochen Striepe
+
+ * t-prot: Fix false positive for kammquote condition.
+
+2005-03-21 19:30 Jochen Striepe
+
+ * t-prot: Fix missing range check when From: is the last header.
+ Thanks to Norbert Tretkowski for reporting.
+
2005-03-01 15:20 Jochen Striepe
* t-prot: Release as v1.98.
Please note that Getopt::Mixed now is mandatory to run t-prot - you
can get it at CPAN. The trade-off seems worthy IMHO - please drop
an email to <t-prot@tolot.escape.de> if you do not think so, so the
- matter can be diskussed. :)
+ matter can be discussed. :)
Updated manpage.
2002-01-29 14:57 Jochen Striepe
- * t-prot: Remove goto. Patch by Gerfried Fuchs <alfie@ist.org>.
+ * t-prot: Remove goto. Patch by Gerfried Fuchs.
2002-01-28 20:34 Jochen Striepe
Known Bugs (more severe ones come first)
========================================
- * In raw multipart messages we snip MS-like TOFU even if there
-is no relevant text above -- we will have to detect Boundaries and
-Content-Type lines as for "$mua eq mutt" in t-prot, l.671.
+
+(none)
Wishlist
t-prot's responsibility to make *everything* look good and readable.
-
Known Bugs for t-prot.sl (more severe ones come first)
======================================================
* Mailing list footers seem not always to be snipped correctly
#!/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';
# 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),
($$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)) &&
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;
}
}