[Gambas-user] Issue 540 in gambas: gb.net.smtp doesn't work with e.g. smtp.gmail.com, responses aren't handled properly (timing issue)

gambas at ...2524... gambas at ...2524...
Thu Jul 24 19:44:22 CEST 2014


Status: New
Owner: ----
Labels: Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any  
GUI-Any

New issue 540 by uAle... at ...626...: gb.net.smtp doesn't work with e.g.  
smtp.gmail.com, responses aren't handled properly (timing issue)
http://code.google.com/p/gambas/issues/detail?id=540

1) Describe the problem.

The SmtpClient can send smtp messages plain or via tls/ssl, only there is a  
timing issue with handling the response.

When manual testing, the output look as follows:
220 mx.google.com ESMTP au7sm17535101wjc.41 - gsmtp
ehlo x
250-mx.google.com at your service, [178.85.1.1]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN
250-ENHANCEDSTATUSCODES
250 CHUNKING

When running the test application in debug mode, it is visible that the  
FIRST read "250-mx.google.com at your service, [178.85.1.1]" is the only  
thing read at that moment and the rest of the 250s are coming afterwards  
and cause the failure.

$ ./TestApp.gambas
DEBUG in read: 220 mx.google.com ESMTP v17sm17504821wjr.33 - gsmtp

-> ehlo ubuntu1404

DEBUG in read: 250-mx.google.com at your service, [178.85.1.1]

-> auth plain AG1lQGdtYWlsLmNvbQBwYXNzd29yZA0K

DEBUG in read: 250-SIZE 35882577

-> quit

Failed

The smtpclient should wait on the (last) "250 CHUNKING" before continueing  
with the rest.

2) Give information about your system. Use the 'System information' menu in
the Gambas IDE, and paste the result there.

[System]
Gambas=3.5.4
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Ubuntu 14.04 LTS
Desktop=GNOME
Theme=QGtk
Language=en_US.UTF-8
Memory=987M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

3) Provide a little project that reproduces the bug or the crash.
Attached.

4) If your project needs a database, try to provide it, or part of it.

5) Explain clearly how to reproduce the bug or the crash.

6) By doing that carefully, you have done 50% of the bug fix job!

IMPORTANT NOTE: If you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!

ANOTHER NOTE: Don't create an issue if you have a compilation problem on
the development version. Send a mail to the mailing-list instead, thanks.


Attachments:
	TestApp.tar.gz  5.5 KB

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings




More information about the User mailing list