Your message dated Fri, 9 Sep 2005 10:13:40 +0200
with message-id <[EMAIL PROTECTED]>
and subject line python2.3: No way to get rid of "unixfrom" in `email' module.
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 8 Sep 2005 20:40:54 +0000
>From [EMAIL PROTECTED] Thu Sep 08 13:40:54 2005
Return-path: <[EMAIL PROTECTED]>
Received: from silence.lateralis.org (tortoise.lateralis.org) [81.56.5.120] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1EDTCY-0002H9-00; Thu, 08 Sep 2005 13:40:54 -0700
Received: from laurent by tortoise.lateralis.org with local (Exim 4.52)
        id 1EDTCV-0001Ru-Iz; Thu, 08 Sep 2005 22:40:51 +0200
Date: Thu, 8 Sep 2005 22:40:51 +0200
From: Laurent Fousse <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: python2.3: No way to get rid of "unixfrom" in `email' module.
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7"
Content-Disposition: inline
X-Reportbug-Version: 3.15
Organization: =?iso-8859-1?Q?KomiT=EA?=
User-Agent: Mutt/1.5.9i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02


--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 =3D 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
=66rom 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=3DC, LC_CTYPE=3Dfr_FR.UTF-8 (charmap=3DUTF-8)

Versions of packages python2.3 depends on:
ii  libbz2-1.0                    1.0.2-7    high-quality block-sorting fil=
e co
ii  libc6                         2.3.5-3    GNU C Library: Shared librarie=
s an
ii  libdb4.3                      4.3.28-2   Berkeley v4.3 Database Librari=
es [
ii  libncurses5                   5.4-9      Shared libraries for terminal =
hand
ii  libreadline5                  5.0-10     GNU readline and history libra=
ries
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)

--fdj2RfSjLxBAspz7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDIKHTTUld8sb4OVwRAiCOAJ9cegslIky79iSFaJRX63xFwuehYgCdHkpw
b7m43nWAzocB5D7EG+1HKj4=
=tTdx
-----END PGP SIGNATURE-----

--fdj2RfSjLxBAspz7--

---------------------------------------
Received: (at 327267-done) by bugs.debian.org; 9 Sep 2005 08:13:42 +0000
>From [EMAIL PROTECTED] Fri Sep 09 01:13:42 2005
Return-path: <[EMAIL PROTECTED]>
Received: from tortoise.loria.fr (tortoise.lateralis.org) [152.81.15.241] 
(Debian-exim)
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1EDe10-0001Ed-00; Fri, 09 Sep 2005 01:13:42 -0700
Received: from laurent by tortoise with local (Exim 4.52)
        id 1EDe0y-00013L-Hv
        for [EMAIL PROTECTED]; Fri, 09 Sep 2005 10:13:40 +0200
Date: Fri, 9 Sep 2005 10:13:40 +0200
From: Laurent Fousse <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: python2.3: No way to get rid of "unixfrom" in `email' module.
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM"
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
Organization: =?iso-8859-1?Q?KomiT=EA?=
User-Agent: Mutt/1.5.9i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02


--cWoXeonUoKmBZSoM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

* Laurent Fousse [2005-09-08]:
> If there's a way to remove the "unixfrom" line I would be glad to hear
> from it.

Indeed there is, I should use as_string instead of str(), and read the
doc more closely. Sorry to waste your time.

--cWoXeonUoKmBZSoM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDIUQ0TUld8sb4OVwRAmgpAJ9j/hlKZxt4rp/lcVpeyAXu4fY38ACgqRUO
5Jwo85FOMmV0e1AJLv0AqqE=
=CmZi
-----END PGP SIGNATURE-----

--cWoXeonUoKmBZSoM--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to