Package: python2.3 Version: 2.3.5-6 Severity: wishlist Tags: upstream Hi,
The `email' module is according to the documentation the preferred method to parse/generate a "rfc822-style" text file. It has however the following bad behaviour which the `rfc822' module did not have : >>> import email.Message as em >>> foo = em.Message() >>> str(foo) 'From nobody Thu Sep 8 22:28:02 2005\n\n' >>> foo.set_unixfrom("") >>> str(foo) 'From nobody Thu Sep 8 22:28:02 2005\n\n' If there's a way to remove the "unixfrom" line I would be glad to hear from it. Blindly removing the first line from the generated string is not a solution, as the documentation states that : There *may* also be a single envelope header, also known as the Unix-From header or the From_ header. Emphasis is mine. Cheers, Laurent. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12.4-bar Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages python2.3 depends on: ii libbz2-1.0 1.0.2-7 high-quality block-sorting file co ii libc6 2.3.5-3 GNU C Library: Shared libraries an ii libdb4.3 4.3.28-2 Berkeley v4.3 Database Libraries [ ii libncurses5 5.4-9 Shared libraries for terminal hand ii libreadline5 5.0-10 GNU readline and history libraries ii libssl0.9.7 0.9.7g-1 SSL shared libraries ii zlib1g 1:1.2.3-1 compression library - runtime Versions of packages python2.3 recommends: pn python2.3-cjkcodecs | python2 <none> (no description available) pn python2.3-cjkcodecs | python2 <none> (no description available)
signature.asc
Description: Digital signature