Your message dated Sun, 8 May 2005 15:47:28 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#308149: uncaptured python exception sending mail using 
gmailsmtp
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 May 2005 10:08:24 +0000
>From [EMAIL PROTECTED] Sun May 08 03:08:24 2005
Return-path: <[EMAIL PROTECTED]>
Received: from amsfep13-int.chello.nl [213.46.243.23] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DUihv-0008Jv-00; Sun, 08 May 2005 03:08:19 -0700
Received: from localhost.localdomain ([213.132.129.93])
          by amsfep13-int.chello.nl
          (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP
          id <[EMAIL PROTECTED]>
          for <[EMAIL PROTECTED]>; Sun, 8 May 2005 12:07:42 +0200
Received: from frederik by localhost.localdomain with local (Exim 4.50)
        id 1DUihi-00087k-P0
        for [EMAIL PROTECTED]; Sun, 08 May 2005 12:08:06 +0200
Date: Sun, 8 May 2005 12:08:06 +0200
To: [EMAIL PROTECTED]
Subject: uncaptured python exception sending mail using gmailsmtp
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE"
Content-Disposition: inline
X-Uptime: 12:02:06 up 3 days, 17:04,  1 user,  load average: 0.06, 0.12, 0.16
User-Agent: Mutt/1.5.9i
From: Frederik Vanrenterghem <[EMAIL PROTECTED]>
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-Status: No, hits=-5.5 required=4.0 tests=BAYES_00,BIZ_TLD,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: python-libgmail
Version: 0.0.8+cvs20050208-1

Using the built-in example SMTP server as follows:
/usr/share/doc/python-libgmail/examples$ python ./gmailsmtp.py running.

When sending an email to the configured localhost:8025 SMTP server,
following error message appears on the console running gmailsmtp:

WARNING:root:Note: Using currently installed `libgmail` version.
error: uncaptured python exception, closing channel
<__main__.ESMTPChannel connected 127.0.0.1:44003 at 0x2a96dd9680>
(exceptions.AttributeError:'NoneType' object has no attribute
'sendMessage' [/usr/lib/python2.3/asyncore.py|read|69]
[/usr/lib/python2.3/asyncore.py|handle_read_event|390]
[/usr/lib/python2.3/asynchat.py|handle_read|136]
[/usr/lib/python2.3/smtpd.py|found_terminator|176]
[./gmailsmtp.py|process_message|70])

The mail isn't sent.

System:

Linux kauai 2.6.8-11-amd64-k8 #1 Sat Mar 26 04:07:08 CET 2005 x86_64
GNU/Linux

lrwxrwxrwx  1 root root 13 2005-04-20 21:24 /lib/libc.so.6 ->
libc-2.3.2.so

[EMAIL PROTECTED]:/usr/share/doc/python-libgmail/examples$ /usr/bin/python
-v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.3/site.pyc matches /usr/lib/python2.3/site.py
import site # precompiled from /usr/lib/python2.3/site.pyc
# /usr/lib/python2.3/os.pyc matches /usr/lib/python2.3/os.py
import os # precompiled from /usr/lib/python2.3/os.pyc
import posix # builtin
# /usr/lib/python2.3/posixpath.pyc matches
# /usr/lib/python2.3/posixpath.py
import posixpath # precompiled from /usr/lib/python2.3/posixpath.pyc
# /usr/lib/python2.3/stat.pyc matches /usr/lib/python2.3/stat.py
import stat # precompiled from /usr/lib/python2.3/stat.pyc
# /usr/lib/python2.3/UserDict.pyc matches /usr/lib/python2.3/UserDict.py
import UserDict # precompiled from /usr/lib/python2.3/UserDict.pyc
# /usr/lib/python2.3/copy_reg.pyc matches /usr/lib/python2.3/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.3/copy_reg.pyc
# /usr/lib/python2.3/types.pyc matches /usr/lib/python2.3/types.py
import types # precompiled from /usr/lib/python2.3/types.pyc
# /usr/lib/python2.3/warnings.pyc matches /usr/lib/python2.3/warnings.py
import warnings # precompiled from /usr/lib/python2.3/warnings.pyc
# /usr/lib/python2.3/linecache.pyc matches
# /usr/lib/python2.3/linecache.py
import linecache # precompiled from /usr/lib/python2.3/linecache.pyc
import encodings # directory /usr/lib/python2.3/encodings
# /usr/lib/python2.3/encodings/__init__.pyc matches
# /usr/lib/python2.3/encodings/__init__.py
import encodings # precompiled from
/usr/lib/python2.3/encodings/__init__.pyc
# /usr/lib/python2.3/codecs.pyc matches /usr/lib/python2.3/codecs.py
import codecs # precompiled from /usr/lib/python2.3/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.3/encodings/aliases.pyc matches
# /usr/lib/python2.3/encodings/aliases.py
import encodings.aliases # precompiled from
/usr/lib/python2.3/encodings/aliases.pyc
# /usr/lib/python2.3/encodings/iso8859_15.pyc matches
# /usr/lib/python2.3/encodings/iso8859_15.py
import encodings.iso8859_15 # precompiled from
/usr/lib/python2.3/encodings/iso8859_15.pyc
Python 2.3.5 (#2, Mar 27 2005, 09:43:31)
[GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.3/lib-dynload/readline.so", 2);
import readline # dynamically loaded from
/usr/lib/python2.3/lib-dynload/readline.so

--=20
   Frederik Vanrenterghem       |    What makes us so bitter against people
   [EMAIL PROTECTED]   |    who outwit us is that they think
   http://vanrenterghem.biz     |    themselves cleverer than we are.
   GPG Fingerprint:             |
   966B 0E4B 25C1 CC04 E2CB     |
   8D4C 117F 6469 8925 BDE0     |

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

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

iD8DBQFCfeUGEX9kaYklveARArvKAKCYBi0nM1UaxZs/qugxOYRG/1EZSgCeNXRu
iibpK/y4hyLrJHe8CZPEjIU=
=sUWa
-----END PGP SIGNATURE-----

--Kj7319i9nmIyA2yE--

---------------------------------------
Received: (at 308149-done) by bugs.debian.org; 8 May 2005 22:48:03 +0000
>From [EMAIL PROTECTED] Sun May 08 15:48:03 2005
Return-path: <[EMAIL PROTECTED]>
Received: from imap.gmx.net (mail.gmx.net) [213.165.64.20] 
        by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
        id 1DUuZ8-0004g6-00; Sun, 08 May 2005 15:48:03 -0700
Received: (qmail invoked by alias); 08 May 2005 22:47:31 -0000
Received: from adsl-63-206-95-12.dsl.snfc21.pacbell.net (EHLO localhost) 
[63.206.95.12]
  by mail.gmx.net (mp014) with SMTP; 09 May 2005 00:47:31 +0200
X-Authenticated: #18275278
Received: from foo.befour.org ([10.0.0.6])
        by localhost with esmtp (Exim 3.36 #1 )
        id 1DUuYa-0001Qe-00; Sun, 08 May 2005 15:47:28 -0700
Received: from seb by foo.befour.org with local (Exim 3.36 #1 (Debian))
        id 1DUuYa-0004K1-00; Sun, 08 May 2005 15:47:28 -0700
Date: Sun, 8 May 2005 15:47:28 -0700
From: Sebastien Delafond <[EMAIL PROTECTED]>
To: Frederik Vanrenterghem <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Bug#308149: uncaptured python exception sending mail using 
gmailsmtp
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.9i
Sender: Seb <[EMAIL PROTECTED]>
X-Y-GMX-Trusted: 0
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-Status: No, hits=-5.5 required=4.0 tests=BAYES_00,BIZ_TLD,
        HAS_BUG_NUMBER,VALID_BTS_CONTROL autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

tag 308149 + wontfix 
thanks

This is not a bug; before sending an email you need to authentify
(using a somewhat wobbly version of SMTP AUTH). Something like the
following works fine:

  ~ # telnet localhost 8025
  Trying 127.0.0.1...
  Connected to localhost.
  Escape character is '^]'.
  220 foo.befour.org Python SMTP proxy version 0.2
  helo localhost
  250 localhost
  AUTH PLAIN <auth-token>
  235 Ok
  ...
        
Where <auth-token> is the result of:

  ~ # python -c 'import base64 ; print base64.encodestring(" 
username\\0password")'
  YmVmb3VyQGdtYWlsLmNvbQBpZDFnNG1haWw=

In this case <auth-token> would be
"YmVmb3VyQGdtYWlsLmNvbQBpZDFnNG1haWw=", without the quotes.

Cheers,

--Seb

On Sun, May 08, 2005 at 12:08:06PM +0200, Frederik Vanrenterghem wrote:
> Package: python-libgmail
> Version: 0.0.8+cvs20050208-1
> 
> Using the built-in example SMTP server as follows:
> /usr/share/doc/python-libgmail/examples$ python ./gmailsmtp.py running.
> 
> When sending an email to the configured localhost:8025 SMTP server,
> following error message appears on the console running gmailsmtp:
> 
> WARNING:root:Note: Using currently installed `libgmail` version.
> error: uncaptured python exception, closing channel
> <__main__.ESMTPChannel connected 127.0.0.1:44003 at 0x2a96dd9680>
> (exceptions.AttributeError:'NoneType' object has no attribute
> 'sendMessage' [/usr/lib/python2.3/asyncore.py|read|69]
> [/usr/lib/python2.3/asyncore.py|handle_read_event|390]
> [/usr/lib/python2.3/asynchat.py|handle_read|136]
> [/usr/lib/python2.3/smtpd.py|found_terminator|176]
> [./gmailsmtp.py|process_message|70])
> 
> The mail isn't sent.
> 
> System:
> 
> Linux kauai 2.6.8-11-amd64-k8 #1 Sat Mar 26 04:07:08 CET 2005 x86_64
> GNU/Linux
> 
> lrwxrwxrwx  1 root root 13 2005-04-20 21:24 /lib/libc.so.6 ->
> libc-2.3.2.so
> 
> [EMAIL PROTECTED]:/usr/share/doc/python-libgmail/examples$ /usr/bin/python
> -v
> # installing zipimport hook
> import zipimport # builtin
> # installed zipimport hook
> # /usr/lib/python2.3/site.pyc matches /usr/lib/python2.3/site.py
> import site # precompiled from /usr/lib/python2.3/site.pyc
> # /usr/lib/python2.3/os.pyc matches /usr/lib/python2.3/os.py
> import os # precompiled from /usr/lib/python2.3/os.pyc
> import posix # builtin
> # /usr/lib/python2.3/posixpath.pyc matches
> # /usr/lib/python2.3/posixpath.py
> import posixpath # precompiled from /usr/lib/python2.3/posixpath.pyc
> # /usr/lib/python2.3/stat.pyc matches /usr/lib/python2.3/stat.py
> import stat # precompiled from /usr/lib/python2.3/stat.pyc
> # /usr/lib/python2.3/UserDict.pyc matches /usr/lib/python2.3/UserDict.py
> import UserDict # precompiled from /usr/lib/python2.3/UserDict.pyc
> # /usr/lib/python2.3/copy_reg.pyc matches /usr/lib/python2.3/copy_reg.py
> import copy_reg # precompiled from /usr/lib/python2.3/copy_reg.pyc
> # /usr/lib/python2.3/types.pyc matches /usr/lib/python2.3/types.py
> import types # precompiled from /usr/lib/python2.3/types.pyc
> # /usr/lib/python2.3/warnings.pyc matches /usr/lib/python2.3/warnings.py
> import warnings # precompiled from /usr/lib/python2.3/warnings.pyc
> # /usr/lib/python2.3/linecache.pyc matches
> # /usr/lib/python2.3/linecache.py
> import linecache # precompiled from /usr/lib/python2.3/linecache.pyc
> import encodings # directory /usr/lib/python2.3/encodings
> # /usr/lib/python2.3/encodings/__init__.pyc matches
> # /usr/lib/python2.3/encodings/__init__.py
> import encodings # precompiled from
> /usr/lib/python2.3/encodings/__init__.pyc
> # /usr/lib/python2.3/codecs.pyc matches /usr/lib/python2.3/codecs.py
> import codecs # precompiled from /usr/lib/python2.3/codecs.pyc
> import _codecs # builtin
> # /usr/lib/python2.3/encodings/aliases.pyc matches
> # /usr/lib/python2.3/encodings/aliases.py
> import encodings.aliases # precompiled from
> /usr/lib/python2.3/encodings/aliases.pyc
> # /usr/lib/python2.3/encodings/iso8859_15.pyc matches
> # /usr/lib/python2.3/encodings/iso8859_15.py
> import encodings.iso8859_15 # precompiled from
> /usr/lib/python2.3/encodings/iso8859_15.pyc
> Python 2.3.5 (#2, Mar 27 2005, 09:43:31)
> [GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> dlopen("/usr/lib/python2.3/lib-dynload/readline.so", 2);
> import readline # dynamically loaded from
> /usr/lib/python2.3/lib-dynload/readline.so
> 
> -- 
>    Frederik Vanrenterghem       |    What makes us so bitter against people
>    [EMAIL PROTECTED]   |    who outwit us is that they think
>    http://vanrenterghem.biz     |    themselves cleverer than we are.
>    GPG Fingerprint:             |
>    966B 0E4B 25C1 CC04 E2CB     |
>    8D4C 117F 6469 8925 BDE0     |



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

Reply via email to