Version: 1.9.50 (using KDE Devel) Installed from: Compiled sources Compiler: gcc 4.3-svn 131213 OS: Linux Messages sent with current kdepimlibs and kdepim SVN are ok in the outbox and sent-mail folders, but arrive as blank/bogus messages on the smtp server. kdelibs rev. 754673 kdepimlibs rev. 754919 kdepim rev. 754957 I've used a recent gcc 4.3 snapshot to compile; this might be a compiler specific issue - but given gcc 4.3 works pretty well by now (but, like any new gcc, barfs on many things older versions accepted) this is likely to be a hidden problem in kio_smtp. strace-ing the kio_smtp process shows: [...] read(4, "220 www.arklinux.org ESMTP Postfix\r\n", 36) = 36 uname({sys="Linux", node="localhost.localdomain", ...}) = 0 gettimeofday({1199121509, 479804}, NULL) = 0 gettimeofday({1199121509, 479830}, NULL) = 0 select(5, [4], [4], NULL, {0, 0}) = 1 (out [4], left {0, 0}) write(4, "EHLO localhost.localdomain\r\n", 28) = 28 gettimeofday({1199121509, 479958}, NULL) = 0 gettimeofday({1199121509, 479978}, NULL) = 0 select(5, [4], [], NULL, {600, 0}) = 1 (in [4], left {599, 683000}) ioctl(4, FIONREAD, [125]) = 0 read(4, "250-www.arklinux.org\r\n250-PIPELINING\r\n250-SIZE 20480000\r\n250-VRFY\r\n250-ETRN\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250 DSN\r\n", 125) = 125 gettimeofday({1199121509, 797444}, NULL) = 0 gettimeofday({1199121509, 797471}, NULL) = 0 select(5, [4], [4], NULL, {0, 0}) = 1 (out [4], left {0, 0}) write(4, "MAIL FROM:<bero@arklinux.org> SIZE=402\r\nRCPT TO:<bero@arklinux.org>\r\nDATA\r\n", 75) = 75 gettimeofday({1199121509, 797620}, NULL) = 0 gettimeofday({1199121509, 797640}, NULL) = 0 select(5, [4], [], NULL, {600, 0}) = 1 (in [4], left {599, 751000}) ioctl(4, FIONREAD, [65]) = 0 read(4, "250 2.1.0 Ok\r\n250 2.1.5 Ok\r\n354 End data with <CR><LF>.<CR><LF>\r\n", 65) = 65 gettimeofday({1199121510, 47422}, NULL) = 0 gettimeofday({1199121510, 47448}, NULL) = 0 select(4, [3], [3], NULL, NULL) = 1 (out [3]) write(3, " 8_6c_\0\0\0\0\0\0\0\0", 18) = 18 gettimeofday({1199121510, 47737}, NULL) = 0 gettimeofday({1199121510, 47759}, NULL) = 0 select(4, [3], [3], NULL, NULL) = 1 (out [3]) write(3, " 0_65_", 10) = 10 gettimeofday({1199121510, 47949}, NULL) = 0 gettimeofday({1199121510, 47969}, NULL) = 0 gettimeofday({1199121510, 47986}, NULL) = 0 select(4, [3], [], NULL, NULL) = 1 (in [3]) ioctl(3, FIONREAD, [10]) = 0 read(3, " 0_64_", 4106) = 10 gettimeofday({1199121510, 48100}, NULL) = 0 gettimeofday({1199121510, 48120}, NULL) = 0 select(5, [4], [4], NULL, {0, 0}) = 1 (out [4], left {0, 0}) write(4, ".\r\n", 3) = 3 gettimeofday({1199121510, 48236}, NULL) = 0 gettimeofday({1199121510, 48254}, NULL) = 0 select(5, [4], [], NULL, {600, 0}) = 1 (in [4], left {599, 759000}) ioctl(4, FIONREAD, [37]) = 0 read(4, "250 2.0.0 Ok: queued as 6426A7C0594\r\n", 37) = 37 gettimeofday({1199121510, 289322}, NULL) = 0 gettimeofday({1199121510, 289349}, NULL) = 0 select(4, [3], [3], NULL, NULL) = 1 (out [3]) [...] Anything sent after DATA is bogus - the message was simply Subject: test test test test
Created attachment 22783 [details] Full strace output
Created attachment 22784 [details] Message as it appears in the sent-mail folder
Can you also paste the debug output of the smtp kioslave, please? You might need to enable with kdebugdialog. Everything needs to be compiled in debug mode, so that the debug output is enabled.
Oh nevermind, I can confirm this myself. Happens only in release-builds it seems.
SVN commit 755431 by tmcguire: Don't put the code for opening the buffer inside an assert. This fixes mails being sent empty when compiled in release mode. BUG: 154911 M +2 -1 transportjob.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=755431