Package: a2ps Version: 1:4.13b-4.3 Severity: minor Tags: patch The mail.ssh style sheet gets confused when it sees a Received: header that has a time zone offset with a leading 1, like "+1000" (australia for example). as timezone offsets go from -1100 to +1100, the regex that only matches the "closers"
/(DST|EDT|GMT).*\n$/, /[+-]0[0-9]00.*\n$/, is incomplete. the trouble is that the received line is not detected as finished, and a2ps then eats all subsequent headers and prints out the mail without any of the nifty title/author niceties. the trivial patch follows; ideally, however, the stylesheet should implement proper header continuation (as in "a line starting with a whitespace belongs to the previous line") for all headers. regards az --- mail.ssh.orig 2005-09-29 14:46:48.000000000 +1000 +++ /usr/share/a2ps/sheets/mail.ssh 2005-09-29 14:45:13.000000000 +1000 @@ -246,7 +246,7 @@ /^Phone: / Comment, /^Received: / Comment closers are - /(DST|EDT|GMT).*\n$/, /[+-]0[0-9]00.*\n$/, + /(DST|EDT|GMT).*\n$/, /[+-][01][0-9]00.*\n$/, # As a security, if there is a white line, then we've # been skipping too much yet... /^\n$/ -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (980, 'testing'), (970, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.4.30 Locale: LANG=C, LC_CTYPE=de_AT (charmap=ISO-8859-1) Versions of packages a2ps depends on: ii emacsen-common 1.4.16 Common facilities for all emacsen ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libpaper1 1.1.14-3 Library for handling paper charact -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]