Package: python2.5 Version: 2.5.2-15 Severity: normal Hello,
thanks for packaging Python. While trying to scan a mbox mail file, I noticed that sometimes I got some strangely truncated messages. Upon investigation, mailbox.mbox is too trigger-happy in recognising From lines as message delimiters: for example, this From line has made mailbox.mbox start a new message: "From all of us at AIRLINE: Have a wonderful Christmas and a Happy New Year!" Perl's Mail::Box::Parser looks for at least a year to be there: next if $sep eq 'From ' && $line !~ m/ 19[789]\d| 20[012]\d/; Mutt is even stricter, and looks for: From [ <return-path> ] <weekday> <month> <day> <time> [ <timezone> ] <year> (see http://dev.mutt.org/hg/mutt/file/ddf48761aacf/from.c) This not-strict-enough behaviour is unfortunately at risk of making mailbox.mbox unsuitable for some tasks, like managing mail archives (it did corrupt some of my mail, for example). I hope it can be improved. Ciao, Enrico -- System Information: Debian Release: 5.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python2.5 depends on: ii libbz2-1.0 1.0.5-1 high-quality block-sorting file co ii libc6 2.7-18 GNU C Library: Shared libraries ii libdb4.5 4.5.20-13 Berkeley v4.5 Database Libraries [ ii libncursesw5 5.7+20081213-1 shared libraries for terminal hand ii libreadline5 5.2-3 GNU readline and history libraries ii libsqlite3-0 3.5.9-5 SQLite 3 shared library ii libssl0.9.8 0.9.8g-15 SSL shared libraries ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap ii python2.5-minimal 2.5.2-15 A minimal subset of the Python lan python2.5 recommends no packages. Versions of packages python2.5 suggests: pn python-profiler <none> (no description available) ii python2.5-doc 2.5.2-2 Documentation for the high-level o -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org