Index: kdelibs/kdesu/su.cpp
===================================================================
--- kdelibs/kdesu/su.cpp	(revision 1193299)
+++ kdelibs/kdesu/su.cpp	(working copy)
@@ -333,10 +333,13 @@
             //////////////////////////////////////////////////////////////////////////
             case HandleStub:
                 if (!line.isEmpty ()) {
-                    // if we read anything but the stub response, we assume it's
-                    // sorry, wrong password.
-                    // FIXME in reality, this may be lack of permission to
-                    // execute kdesu_stub via sudo.
+		  if (line == "You have new mail.") {
+		    break;
+		  }
+		  QRegExp rxlastlogin("^Last login:");
+		  if (rxlastlogin.indexIn(line) >=0) {
+		    break;
+		  }
                     return notauthorized;
                 }
                 break;
