When I was trying to use the gmailsmtp.py that is included with libgmail i got the following error: error: uncaptured python exception, closing channel <__main__.ESMTPChannel connected 127.0.0.1:33604 at 0x4062270c> (exceptions.ValueError:unpack list of wrong size [/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|158] [gmailsmtp.py|smtp_AUTH|104]) I was using KMail to send the e-mail with the following settings: Server: 127.0.0.1 Port: 8025 Login: login Password: passwd Encryption: NONE Authentication Method: PLAIN Reproducible: Always Steps to Reproduce: 1.python gmailsmtp.py 2.Send Mail 3. Actual Results: error: uncaptured python exception, closing channel <__main__.ESMTPChannel connected 127.0.0.1:33604 at 0x4062270c> (exceptions.ValueError:unpack list of wrong size [/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|158] [gmailsmtp.py|smtp_AUTH|104]) Expected Results: Portage 2.0.51_rc7 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.6-love4 i686) ================================================================= System uname: 2.6.6-love4 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2 Headers: sys-kernel/linux-headers-2.4.19,sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.ccccom.com http://128.213.5.34/gentoo/ ftp://gentoo.llarian.net/pub/gentoo http://mirrors.tds.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://mirror.tucdemonic.org/gentoo/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage-overlay" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="X aalib acpi alsa arts avi berkdb bitmap-fonts cdr crypt cups directfb dvd encode esd f77 foomaticdb gdbm gif gpm gtk imap imlib jack jpeg kde libg++ libwww mad maildir mikmod mmx motif mozilla mpeg mysql nas ncurses nls nowin oggvorbis opengl oss pam pcmcia pda pdflib perl png pnp python qt quicktime readline sdl slang spell sse sse2 ssl svga tcltk tcpd tetex tiff truetype trusted usb videos wmf x86 xinerama xml xml2 xmms xprint xv zlib"
Could you please edit the file `gmailsmtp.py` and add the following line (marked "***": def smtp_AUTH(self, arg): """ """ print arg # **** kind, data = arg.split(" ") Then post the output here. I'm guessing KMail is sending the authentication information in a form I'm not expecting, so I'd like to see what it's sending. Thanks, Phil. (libgmail Author)
Here is the output as requested above. WARNING:root:Note: Using currently installed `libgmail` version. PLAIN error: uncaptured python exception, closing channel <__main__.ESMTPChannel connected 127.0.0.1:33320 at 0x405fc64c> (exceptions.ValueError:unpack list of wrongsize [/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|158] [./gmailsmtp.py|smtp_AUTH|105]) The only thing that has changed is the addition of 'PLAIN'
Re-assign a stale bug. If this is no longer an issue, please close.
Outdated & No longer an issue