From kmail-devel Wed Dec 13 17:43:25 2000 From: Mathias Waack Date: Wed, 13 Dec 2000 17:43:25 +0000 To: kmail-devel Subject: RE: Bug#17022: problems with pgp X-MARC-Message: https://marc.info/?l=kmail-devel&m=97672946305279 On 13-Dec-2000 Daniel Messelken wrote: > hello, > trying to send pgp-encryptet messages i always get the on-screen-message that there has been a problem (not more specified :- ( ). > there are no problems with pgp-signing or using pgp on the command-line. > ok, i hope you've understood what i mean, if not its due to my lousy english ;-) > thanks for your fine work on kmail, kde and so ! Very funny, the knode developers just pointed me to a similar problem: they tested the pgp integration by running pdiff as the pgp-executable. So I've changed the code to return immediatly if running the pgp-program gives a nonzero return value. And I'm returning the stderr output of the program in errMsg. I always changed the last lines of all run-methods to something like: rc = waitpid(0/*child_pid*/, &status, 0); if (rc==-1) printf("waitpid: %s\n", strerror(errno)); if (status) { status = ERROR; errMsg.sprintf(info.latin1()); } return status; And in all methods calling run() I've changed the code to return if run() returns a value other then OK. That works for me (we only use signing and verifying). Mathias _______________________________________________ Kmail Developers mailing list Kmail@master.kde.org http://master.kde.org/mailman/listinfo/kmail